Last active
October 13, 2015 22:07
-
-
Save terrywang/4262660 to your computer and use it in GitHub Desktop.
iptables rules for the Confluence wiki box
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
*filter | |
-P INPUT DROP | |
-P FORWARD ACCEPT | |
-P OUTPUT ACCEPT | |
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
# -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT | |
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT | |
# -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT | |
# -A INPUT -p tcp -m tcp --dport 4567 -j ACCEPT | |
COMMIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment