/gist:eebba307f051a04c328e Secret
Created
June 18, 2014 19:50
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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