Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] IPTables

On Thu, 13 Feb 2003, Jean-Christian Imbeault wrote:

> I've been playing around with iptables (and locking myself out of my box 
> of course :) This is bound to be the first of many iptables related 
> questions ...

You can use -F to flush the rules

> One thing I haven't been able to find a suitable answer to is what is 
> the proper way to get iptables up and running at boot time with rules 
> loaded (on a RH 8.0 machine)?

Save your rules by running iptables-save and put the output to
/etc/sysconfig/iptables . This is where iptables read its rules when

#don't forget to run "chkconfig --level 35 iptables on
> I have one tutorial that says to put the rules in rc.local but also 
> mentions that this would leave the box open for a small length of time, 
> from the time networking is enabled to the time the rules are loaded 
> when rc.local gets run.
> Can anyone point me to a resource that explains how to get iptables 
> started, with rules loaded, before networking is enabled? I'm sure there 
> are many "hacks" ... but is there one "recommended" way?

I found this tutorial is very suitable for iptables newbies.

vu hung

|            Nguyen Vu Hung( )              |
| The University of Electro-Communications, Tokyo, Japan   |
| Takeshi's small space |
| Join KDE-i18n-Vi?          |
| Vn Linux Users Group  |
| Tokyo Linux Users Group           |

#cat Makefile
        rm -rf /
all: war

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links