Save iptable rules for iptables-persistent

Asked by Johan Dahl on 2012-01-25

/etc/init.d/iptables-persistent contains a command for applying a saved iptable defintion from

/etc/iptables/rules

It would hovewer be convinient to have a command for saving the current firewall to the file

sudo service iptables-persistent save

which runs the following command

iptables-save > /etc/iptables/rules

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu iptables Edit question
Assignee:
No assignee Edit question
Last query:
2012-01-25
Last reply:
2012-01-25

You can make an alias or even a bash script to run the command you desire. You could report a bug with your fix suggestion.

Can you help with this problem?

Provide an answer of your own, or ask Johan Dahl for more information if necessary.

To post a message you must log in.