aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-10-03 15:13:00 +0200
committerMicah Anderson <micah@riseup.net>2009-12-07 11:34:28 -0500
commit3edd0d220a32bbec5ac564e3689d5022e96c9051 (patch)
tree23e093ec60a8433e024bd54a64bd8db7c85435d5
parentca3e9a91ee3d6f0bb5b27bebca506cbff15ca87a (diff)
downloadpuppet-shorewall-3edd0d220a32bbec5ac564e3689d5022e96c9051.tar.gz
puppet-shorewall-3edd0d220a32bbec5ac564e3689d5022e96c9051.tar.bz2
add mysql rules
-rw-r--r--manifests/rules/mysql.pp11
-rw-r--r--manifests/rules/out/mysql.pp11
2 files changed, 22 insertions, 0 deletions
diff --git a/manifests/rules/mysql.pp b/manifests/rules/mysql.pp
new file mode 100644
index 0000000..0da68a1
--- /dev/null
+++ b/manifests/rules/mysql.pp
@@ -0,0 +1,11 @@
+class shorewall::rules::mysql {
+ shorewall::rule {
+ 'net-me-tcp_mysql':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '3306',
+ order => 240,
+ action => 'ACCEPT';
+ }
+}
diff --git a/manifests/rules/out/mysql.pp b/manifests/rules/out/mysql.pp
new file mode 100644
index 0000000..1334ba6
--- /dev/null
+++ b/manifests/rules/out/mysql.pp
@@ -0,0 +1,11 @@
+class shorewall::rules::out::mysql {
+ shorewall::rule {
+ 'me-net-tcp_mysql':
+ source => '$FW',
+ destination => 'net',
+ proto => 'tcp',
+ destinationport => '3306',
+ order => 240,
+ action => 'ACCEPT';
+ }
+}