Skip to content

Instantly share code, notes, and snippets.

Created June 18, 2014 19:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/eebba307f051a04c328e to your computer and use it in GitHub Desktop.
$ sudo iptables-restore
# Generated by iptables-save v1.4.8 on Wed Jun 18 15:42:29 2014
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [624:58816]
-A INPUT -s 127.0.0.1/32 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 161 -j ACCEPT
-A INPUT -p udp -m udp --dport 161 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 162 -j ACCEPT
-A INPUT -p udp -m udp --dport 162 -j ACCEPT
-A INPUT -s 10.1.10.36/32 -p tcp -m tcp --dport 4505 -j ACCEPT
-A INPUT -s 10.1.10.36/32 -p tcp -m tcp --dport 4506 -j ACCEPT
-A INPUT -p icmp -j ACCEPT
COMMIT
# Completed on Wed Jun 18 15:42:29 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment