diff options
Diffstat (limited to 'manifests/virtual/mumble.pp')
-rw-r--r-- | manifests/virtual/mumble.pp | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/manifests/virtual/mumble.pp b/manifests/virtual/mumble.pp index b523dca..a091363 100644 --- a/manifests/virtual/mumble.pp +++ b/manifests/virtual/mumble.pp @@ -1,22 +1,9 @@ -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 => lookup('firewall::external_ip', undef, undef, $::ipaddress), - ratelimit => '-', - order => 2301, +class firewall::virtual::mumble( + $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'), + $destination, $zone = 'fw' +) { + class { "firewall::implementations::${implementation}::virtual::mumble": + destination => $destination, + zone => $zone, } } |