Skip to content

Instantly share code, notes, and snippets.

@stevenjshelby
Created May 16, 2017 15:22
Show Gist options
  • Save stevenjshelby/e9c3c2d675cf25416c82ce463753ae6c to your computer and use it in GitHub Desktop.
Save stevenjshelby/e9c3c2d675cf25416c82ce463753ae6c to your computer and use it in GitHub Desktop.
sudo iptables-save > /etc/iptables.conf
insert these lines in /etc/rc.local:
# Load iptables rules from this file
iptables-restore < /etc/iptables.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment