Created
November 10, 2014 15:14
-
-
Save ccapndave/0a588e7acc37f70f4587 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
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