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

Category: Self-Hosting

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

Restore iptables rules from a previously saved file

Loads iptables rules from a saved file — used on boot or after a reset to restore your firewall configuration.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.