iptables management problem
I have installed the Iptables 1.2.6a according to the netfilter's document, but It doesn't act as a service. Do I need to manually setup my firewall after each system boot up?
--afshin
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
Quoted 4 lines · Afshin Lamei
I have installed the Iptables 1.2.6a according to the netfilter's document, but It doesn't act as a service.
Do I need to manually setup my firewall after each system boot up? --afshin
In the default setup, yes. One solution is to create a script (name it firewall for convenience) in /etc/rc.d/init.d (well, at least with some distros, such as RedHat) and links to it as /etc/rc.d/rc5.d/Sxxfirewall and /etc/rc.d/rc3.d/Sxxfirewall (where xx is a number to start it at your chosen point in the starting sequence, relative to the other Sxx script links for each of those runlevels, again RedHat - your distro may differ). As long as you have a valid script named (ie) /etc/rc.d/init.d/firewall then "service firewall start" will start it. The links in rc5.d and rc3.d will cause it to be automatically started in each of those runlevels. If you want, you can write your script to support start, stop, and restart, the standard parameters most such scripts support, but that isn't necessary to building the firewall at system boot. If there are no parameters supported, then when it is invoked during boot with the 'start' parameter the script will simply ignore the parameter and execute anyway.
j
Quoted 8 lines
I have installed the Iptables 1.2.6a according to the netfilter's document,
but It doesn't act as a service.
Do I need to manually setup my firewall after each system boot up? --afshin
IPTABLES actually is a ruleset for the kernel regarding network traffic. In order to to enable the firewall at each boot you need to create a boot script that loads the rules on each boot.
Read the following link
http://www.e-infomax.com/ipmasq/