I have some iptables commands that I want to run when Shorewall starts. Which file do I put them in?
You can place these commands in one of the Shorewall Extension Scripts. Be sure that you look at the contents of the chain(s) that you will be modifying with your commands so that the commands will do what is intended. Many iptables commands published in HOWTOs and other instructional material use the -A command which adds the rules to the end of the chain. Most chains that Shorewall constructs end with an unconditional DROP, ACCEPT or REJECT rule and any rules that you add after that will be ignored. Check “man iptables” and look at the -I (–insert) command.
Related Questions
- I am unable to run any of the CVS commands in the IDE for any file/directory in my Workshop application which has CVS configured as a Source Control. What needs to be done?
- I have some iptables commands that I want to run when Shorewall starts. Which file do I put them in?
- Can one run commands when SQL*Plus starts up?