LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   iptables save rules (http://www.linuxquestions.org/questions/debian-26/iptables-save-rules-144371/)

Osten 02-10-2004 05:21 AM

iptables save rules
 
I'm having trouble with my iptables.

When i try to save the current information i use:
Code:

/etc/init.d/iptables save active
But when i reboot my machine and list with "iptables -L" there are no rules saved :/

Any ideas how to solve this?

ac1980 02-10-2004 04:53 PM

use /sbin/iptables-save, with hyphen. You should pipe the output to a file and then use iptables-restore upon boot.
See iptables-save manpage. Or consider using an encapsulation for iptables, such as shorewall: it's much easier to manage.


All times are GMT -5. The time now is 10:57 AM.