iptables-save

Dump iptables rules

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Prints current rules in restorable format — use to back up before changes.

Examples
iptables-save > /root/iptables.backupBack up rules · explain & risk-check →
Related
iptables iptables-restore
Open the full explainer →More in Networking

Reference text is hand-written and may be incomplete — check man iptables-save for your version. Test destructive commands on a non-production system first.