Skip to content

Instantly share code, notes, and snippets.

@craigw
Created July 20, 2009 19:20
Show Gist options
  • Select an option

  • Save craigw/150579 to your computer and use it in GitHub Desktop.

Select an option

Save craigw/150579 to your computer and use it in GitHub Desktop.
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere udp dpt:694
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:www
DROP all -- anywhere anywhere
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