Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created November 11, 2013 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4ddd3144be89fd75a04d to your computer and use it in GitHub Desktop.
Save anonymous/4ddd3144be89fd75a04d to your computer and use it in GitHub Desktop.
mysql-server:
pkg:
- installed
require:
- pkg: mysql-server
iptables.append:
- table filter
- chain INPUT
- rule "-p tcp -s 10.0.0.0/24 -d {{ grains.ip_interfaces.eth1 }} --dport 3306 -j ACCEPT"
iptables.flush:
- table filter
iptables.save:
iptables.get_rules:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment