LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Save iptables filters (https://www.linuxquestions.org/questions/red-hat-31/save-iptables-filters-343918/)

yhus 07-17-2005 02:02 AM

Save iptables filters
 
Hello,

I changed the filters using iptables, then save it by calling the iptables-save. But, after rebooting, the old filter came back. Does the iptables-save save the modified filter? If not how can I save the filter?

Also, is there anyway I can edit and save the iptables filter parameters to a text file, and invoke it during booting up?

I am using RH 9.0.

Thank you.

Kind Regards,

Jim

MS3FGX 07-17-2005 02:15 AM

Yes, you would place your iptables commands into a text file, make it executable, and have it run at boot up.

Or perhaps even easier, place the iptables commands into the /etc/rc.d/rc.local file.

misc 07-28-2005 06:43 PM

No.

Use the way iptables is integrated into Red Hat Linux. Run service iptables save, which calls iptables-save internally to save the firewall rules in the right place, where they are loaded at boot-time: /etc/sysconfig/iptables

aqoliveira 07-30-2005 04:01 AM

Howzit

Listen to misc he right

cheers


All times are GMT -5. The time now is 07:55 AM.