Hello

dircha (<[EMAIL PROTECTED]>) wrote:

> Umar Draz wrote:
>> i am new to debian! but have experience of redhat and freebsd,
>> solaris now in redhat when i use iptables in redhat a file create in
>  > /etc/sysconfig/iptables where all rules save now my question in
>> debian where iptables rules save?
> 
> [...]
> 
> Alternatively, if you are running stable/woody, there should be a
> script: /etc/init.d/iptables that provides for saving and restoring of
> tables to be automated at system startup and shutdown.

The script loads the saved rules at boot time, but it doesn't save them
automatically. Instead, you can do this yourself. Configure the rules
you wanto to use, and run "/etc/init.d/iptables save active". Running
/etc/init.d/iptables start will load the rules. You should also run
/etc/init.d/iptables save incative with no rules. The "no rules"
configuration will be loaded when "/etc/init.d/iptables stop" is run.
The configurations are saved in /var/lib/iptables.

best regards
        Andreas Janssen

-- 
Andreas Janssen <[EMAIL PROTECTED]>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to