On Tue, 2003-10-21 at 11:34, Gideon N. Guillen wrote: > On Tue, 2003-10-21 at 11:21, smart penguin wrote: > > Is there a way or is there a directory where i can put the iptables > > rules, because it is tedious to execute the command everytime i would > > reboot. > > Under RedHat, you can do the following (as root): > iptables-save>/etc/sysconfig/iptables > Your iptables rules will be reloaded from that file every time you > reboot. > > Or if you like, you can put all you iptables command in a script and > execute that script from rc.sysinit or something. :)
You could also modify /etc/rc.d/init.d/iptables script completely, and use it to either flush everything (stop), or load your iptables script from somewhere (maybe as /etc/rc.d/rc.firewall) for starting. this way you can still use the "stop", "start", and "restart" style of redhat. > > > > -- > Philippine Linux Users' Group (PLUG) Mailing List > [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) > Official Website: http://plug.linux.org.ph > Searchable Archives: http://marc.free.net.ph > . > To leave, go to http://lists.q-linux.com/mailman/listinfo/plug > . > Are you a Linux newbie? To join the newbie list, go to > http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
