diff options
author | mh <mh@immerda.ch> | 2013-08-25 18:44:45 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2015-12-05 11:34:54 +0100 |
commit | 1d1a46aa9e16de851c88e76b033e1a1aa00e8c2c (patch) | |
tree | bf38f5069b5f32c1b3565a68c249564fac69b255 /manifests/rules/dns_rules.pp | |
parent | 3df8cae233b50bd836eeb347c13efe22f771573c (diff) | |
download | puppet-shorewall-1d1a46aa9e16de851c88e76b033e1a1aa00e8c2c.tar.gz puppet-shorewall-1d1a46aa9e16de851c88e76b033e1a1aa00e8c2c.tar.bz2 |
make it easier to override behaviour of the dns rules
Diffstat (limited to 'manifests/rules/dns_rules.pp')
-rw-r--r-- | manifests/rules/dns_rules.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/rules/dns_rules.pp b/manifests/rules/dns_rules.pp new file mode 100644 index 0000000..abe0eb5 --- /dev/null +++ b/manifests/rules/dns_rules.pp @@ -0,0 +1,22 @@ +# open dns port +define shorewall::rules::dns_rules( + $source = $name, + $action = 'ACCEPT', +) { + shorewall::rule { + "${source}-me-tcp_dns": + source => $source, + destination => '$FW', + proto => 'tcp', + destinationport => '53', + order => 240, + action => $action; + "${source}-me-udp_dns": + source => $source, + destination => '$FW', + proto => 'udp', + destinationport => '53', + order => 240, + action => $action; + } +} |