Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
for some reason my iptables-save doesn't seem to save!
I have a script that I have been editing to change iptable rules which works well.
I make changes then run the script & then iptables-save, which then lists the rules etc. When I reboot my router however, all the changes I have made are lost and I have to run the script again.
is this normal?
when I first started using the script it seemed to save ok...
I would also be interested to see what people think of the firewall and how secure it is!
Hi. I think it is normal since iptable-save dumps the iptable rules to the screen. Use
iptable-save > your_file
to catch new settings to the file. The real name (and path) of 'your_file' should agree with the name of the file used in the init script (iptable-restore command parameter at /etc/rc.d/init.d/firewall script)
thanks for that, I must have know that at some stage, because having looked in the location where the file is I found some other copies of the file that I must have been messing with...
Good script but needs more commenting...
Where you set up logging, I am not sure if it's important but usually there are quotation marks around the log prefix "INPUT :"
Not sure if it matters, it just kind of stood out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.