iptables slackware questions
When I make iptable rules, I run "iptables-save" but when I log back on all the rules are gone. How do you save your iptables entry so it's there on startup?
Also, I remember RedHat having a file with all the rules in it. Does slackware have something like this? What if I want to delete a rule? Is there a way I can go into a file and delete it? |
Somewhere along your initscripts, you have to run iptables-restore. I'm not sure how Slack handles this, there should be a firewall specific initscript that you can add that line to, otherwise, add the command to your rc.local (or equivalent) file.
|
You save your iptables script in /etc/rc.d/rc.firewall. Search this site for 'Slackware' and 'rc.firewall'
|
Thanks
|
Bettter were to write functions (start, stop, restart) in the /etc/rc.d/rc.firewall script, so u can delete those rules in the function stop. This is the slackware way of doing thing ?!
Code:
#!/bin/sh |
All times are GMT -5. The time now is 09:28 PM. |