Skip to content

Instantly share code, notes, and snippets.

@paveljurca
Created December 8, 2017 16:33
Show Gist options
  • Save paveljurca/6dd74024604e251d961d78a2c791b6ee to your computer and use it in GitHub Desktop.
Save paveljurca/6dd74024604e251d961d78a2c791b6ee to your computer and use it in GitHub Desktop.
iptables
iptables-save > ~/firewall_ipv4.txt
iptables -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
# see also iptables-restore
#iptables-apply -t 10 ~/firewall_ipv4.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment