-
-
Save anonymous/593b65ef47efc2b413ac to your computer and use it in GitHub Desktop.
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
# Generated by iptables-save v1.4.21 on Fri Feb 26 03:57:08 2016 | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:LOGGING - [0:0] | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -d 127.0.0.0/8 ! -i lo -j REJECT --reject-with icmp-port-unreachable | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT | |
-A INPUT -p tcp -m set --match-set whitelist src -m tcp --dport 80 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 80 -j DROP | |
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT | |
-A INPUT -p udp -m udp --dport 53 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 8071:8079 -j ACCEPT | |
-A INPUT -p udp -m udp --dport 6881 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 9001 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 9030 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 587 -j ACCEPT | |
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT | |
-A INPUT -p udp -m udp --dport 1194 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 1194 -j ACCEPT | |
-A INPUT -j REJECT --reject-with icmp-port-unreachable | |
-A INPUT -j LOGGING | |
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A FORWARD -s 10.8.0.0/24 -j ACCEPT | |
-A FORWARD -j REJECT --reject-with icmp-port-unreachable | |
-A OUTPUT -j ACCEPT | |
-A LOGGING -m limit --limit 2/sec -j LOG --log-prefix "IPTables-Dropped: " | |
-A LOGGING -j DROP | |
COMMIT | |
# Completed on Fri Feb 26 03:57:08 2016 | |
# Generated by iptables-save v1.4.21 on Fri Feb 26 03:57:08 2016 | |
*nat | |
:PREROUTING ACCEPT [18510:1049081] | |
:INPUT ACCEPT [2690:191748] | |
:OUTPUT ACCEPT [907:64580] | |
:POSTROUTING ACCEPT [907:64580] | |
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE | |
COMMIT | |
# Completed on Fri Feb 26 03:57:08 2016 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment