diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-09-27 14:52:26 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-09-27 14:52:26 -0300 |
commit | 0e40ed44c423db9717493860da64ed216c47d0e6 (patch) | |
tree | c1946032b8ebbb54a56d77ea9f5427533564a4e3 | |
parent | e7bc66295e08f443c504257463ffde6c381ddfe5 (diff) | |
download | puppet-firewall-0e40ed44c423db9717493860da64ed216c47d0e6.tar.gz puppet-firewall-0e40ed44c423db9717493860da64ed216c47d0e6.tar.bz2 |
Adding firewall::router::mumble
-rw-r--r-- | manifests/router.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/router.pp b/manifests/router.pp index 32f9359..e4b5795 100644 --- a/manifests/router.pp +++ b/manifests/router.pp @@ -414,6 +414,29 @@ class firewall::router::gobby($destination, $zone = 'loc', $originaldest = $ipad } } +class firewall::router::mumble($destination, $zone = 'loc', $originaldest = $::ipaddress) { + shorewall::rule { 'mumble-0': + action => 'DNAT', + source => 'net', + destination => "$zone:$destination:64738", + proto => 'tcp', + destinationport => '64738', + ratelimit => '-', + order => 2300, + } + + shorewall::rule { 'mumble-1': + action => 'DNAT', + source => '$FW', + destination => "$zone:$destination:64738", + proto => 'udp', + destinationport => '64738', + originaldest => "$originaldest", + ratelimit => '-', + order => 2301, + } +} + # See http://www.shorewall.net/FAQ.htm#faq2 define firewall::router::hairpinning($order = '5000', $proto = 'tcp', $port = 'www', $external_ip = '$ETH0_IP', $interface = 'eth1', |