From 0e40ed44c423db9717493860da64ed216c47d0e6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 27 Sep 2013 14:52:26 -0300 Subject: Adding firewall::router::mumble --- manifests/router.pp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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', -- cgit v1.2.3