From 14ced49d32beab8b80c6499b3a02ed1523ab98ae Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 11 Sep 2015 21:56:50 -0300 Subject: Use firewall::virtual class names --- manifests/virtual/mumble.pp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 manifests/virtual/mumble.pp (limited to 'manifests/virtual/mumble.pp') diff --git a/manifests/virtual/mumble.pp b/manifests/virtual/mumble.pp new file mode 100644 index 0000000..45ab393 --- /dev/null +++ b/manifests/virtual/mumble.pp @@ -0,0 +1,22 @@ +class firewall::virtual::mumble($destination, $zone = 'fw') { + 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 => hiera('firewall::external_ip', $::ipaddress), + ratelimit => '-', + order => 2301, + } +} -- cgit v1.2.3