It’s good practice to backup iptables before making any changes.
iptables-save > ~/iptables.original.txt
And if you need to restore, you can use either….
cat ~/iptables.original.txt | iptables-restore
…or…
iptables-restore < ~/iptables.original.txt
Be the first to comment