Skip to content

Instantly share code, notes, and snippets.

@bkon
Last active December 24, 2015 07:09
Show Gist options
  • Save bkon/6762136 to your computer and use it in GitHub Desktop.
Save bkon/6762136 to your computer and use it in GitHub Desktop.
iptables config
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp -s localhost -j ACCEPT
iptables -A INPUT -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment