Created
December 29, 2011 01:35
-
-
Save kohsuke/1531019 to your computer and use it in GitHub Desktop.
iptables
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
root@eggplant:/srv/jira/current/conf# iptables -nL | |
Chain INPUT (policy ACCEPT) | |
target prot opt source destination | |
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 /* 000 accept all icmp requests */ | |
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 22 /* 001 accept inbound ssh requests */ | |
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 8080 /* 002 accept local traffic */ | |
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 8081 /* 003 accept local traffic */ | |
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 80 /* 100 accept inbound HTTP requests */ | |
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 443 /* 101 accept inbound HTTPs requests */ | |
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 /* 999 drop all other requests */ | |
Chain FORWARD (policy ACCEPT) | |
target prot opt source destination | |
Chain OUTPUT (policy ACCEPT) | |
target prot opt source destination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment