Skip to content

Instantly share code, notes, and snippets.

@skorotkiewicz
Created December 8, 2016 15:08
Show Gist options
  • Save skorotkiewicz/5a07d448a7d68b0a798e3ff58481049b to your computer and use it in GitHub Desktop.
Save skorotkiewicz/5a07d448a7d68b0a798e3ff58481049b to your computer and use it in GitHub Desktop.
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -F -t nat
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment