diff options
Diffstat (limited to 'manifests/vm/mumble.pp')
-rw-r--r-- | manifests/vm/mumble.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/vm/mumble.pp b/manifests/vm/mumble.pp new file mode 100644 index 0000000..321ab07 --- /dev/null +++ b/manifests/vm/mumble.pp @@ -0,0 +1,22 @@ +class firewall::vm::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, + } +} |