Backup & Restore Firewall Rules with iptables – Ubuntu

Save:

iptables-save

Backup :

iptables-save > firewall_backup.txt

Restore

iptables-restore -c < firewall_backup.txt

View Rules:

iptables -L

 

Leave a Reply

Your email address will not be published. Required fields are marked *