iptables-restore < /etc/iptables/rules.v4

Category: Networking

iptables-restore < /etc/iptables/rules.v4

Restore saved iptables rules from a file

Atomically replaces all current iptables rules with the saved set. 'Atomically' means it's all-or-nothing — if any rule is invalid, none are applied, preventing partial firewall states.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.