Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
Created August 25, 2013 14:55
Show Gist options
  • Select an option

  • Save ryaan-anthony/6334256 to your computer and use it in GitHub Desktop.

Select an option

Save ryaan-anthony/6334256 to your computer and use it in GitHub Desktop.
# Generated by iptables-save v1.4.7 on Mon Jan 7 16:20:09 2002
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [1:140]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -m state --state NEW -j ACCEPT
COMMIT
# Completed on Mon Jan 7 16:20:09 2002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment