-
28th June 2005, 08:47 AM
#1
not able to save iptable rules
I've got a strange problem. I defined some time ago some iptable rules and wrote them into a script. When I execute it, the the firewall is configured properly (like it should be).
I save now the configuration int a file for comparsion: iptables -L > before_boot.txt
After that, I save the configuratione: service iptables save
It says [OK]
after reboot I save my configuration again to compare it: iptables -L > after_reboot.txt
Big surprise: there are some rules missing.
Waht do I wrong in saving the rules? The /etc/sysconfig/iptables file is there and writeable:
-rw------- 1 root root 1514 28. Jun 08:25 /etc/sysconfig/iptables
Im really sad now to call the script after every boot manually....
Anybody any idea?
thanks a lot,
Andreas
-
29th June 2005, 01:18 AM
#2
Try using iptables-save and iptables-restore
-
29th June 2005, 09:35 AM
#3
problem solved
thanks, the problem is solved. it seems, I have changed the iptables script long time ago and the loading of the configuration at boottime did not work. de- and reinstalling the iptables package fixed the prolem.
Similar Threads
-
By Ivang in forum Security and Privacy
Replies: 4
Last Post: 21st July 2008, 04:03 PM
-
By rahul.tidke in forum Servers & Networking
Replies: 0
Last Post: 13th November 2007, 10:06 AM
-
By gctech in forum Using Fedora
Replies: 3
Last Post: 3rd October 2006, 05:35 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]