Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save craigw/150592 to your computer and use it in GitHub Desktop.
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- db-01 anywhere udp dpt:694
ACCEPT tcp -- db-01 anywhere udp dpt:mysql
ACCEPT tcp -- db-01 anywhere tcp dpt:mysql
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment