Skip to content

Instantly share code, notes, and snippets.

@kohsuke
Created December 29, 2011 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohsuke/1531019 to your computer and use it in GitHub Desktop.
Save kohsuke/1531019 to your computer and use it in GitHub Desktop.
iptables
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