Skip to content

Instantly share code, notes, and snippets.

@razlupercio
Created October 7, 2016 21:29
Show Gist options
  • Save razlupercio/cb6ec1a347fd4cc9fc3d498656c53df8 to your computer and use it in GitHub Desktop.
Save razlupercio/cb6ec1a347fd4cc9fc3d498656c53df8 to your computer and use it in GitHub Desktop.
you@yourlaptop:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
f2b-sshd tcp -- anywhere anywhere multiport dports ssh
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain f2b-sshd (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment