diff options
Diffstat (limited to 'manifests/virtual/icecast.pp')
-rw-r--r-- | manifests/virtual/icecast.pp | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/manifests/virtual/icecast.pp b/manifests/virtual/icecast.pp index 3c392b6..684ce42 100644 --- a/manifests/virtual/icecast.pp +++ b/manifests/virtual/icecast.pp @@ -1,22 +1,9 @@ -class firewall::virtual::icecast($destination, $zone = 'fw') { - shorewall::rule { 'icecast-1': - action => 'DNAT', - source => 'net', - destination => "$zone:$destination:8000", - proto => 'tcp', - destinationport => '8000', - ratelimit => '-', - order => 900, - } - - shorewall::rule { 'icecast-2': - action => 'DNAT', - source => '$FW', - destination => "$zone:$destination:8000", - proto => 'tcp', - destinationport => '8000', - originaldest => lookup('firewall::external_ip', undef, undef, $::ipaddress), - ratelimit => '-', - order => 901, +class firewall::virtual::icecast( + $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'), + $destination, $zone = 'fw' +) { + class { "firewall::implementations::${implementation}::virtual::icecast": + destination => $destination, + zone => $zone, } } |