Save iptable rules for iptables-persistent

Asked by Johan Dahl

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


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

English Edit question
Ubuntu iptables Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

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.