Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created November 10, 2014 15:14
Show Gist options
  • Save ccapndave/0a588e7acc37f70f4587 to your computer and use it in GitHub Desktop.
Save ccapndave/0a588e7acc37f70f4587 to your computer and use it in GitHub Desktop.
sudo iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere /* 000 accept all icmp */
ACCEPT all -- anywhere anywhere /* 001 accept all to lo interface */
ACCEPT all -- anywhere anywhere /* 002 accept related established rules */ state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere multiport ports ssh /* 100 tcp/22 */
ACCEPT tcp -- anywhere anywhere multiport ports https /* 100 tcp/443 */
ACCEPT tcp -- anywhere anywhere multiport ports http /* 100 tcp/80 */
DROP all -- anywhere anywhere /* 999 drop all */
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