summaryrefslogtreecommitdiff
path: root/manifests/vm/icecast.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/vm/icecast.pp')
-rw-r--r--manifests/vm/icecast.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/vm/icecast.pp b/manifests/vm/icecast.pp
new file mode 100644
index 0000000..b7bc2fe
--- /dev/null
+++ b/manifests/vm/icecast.pp
@@ -0,0 +1,22 @@
+class firewall::vm::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 => hiera('firewall::external_ip', $::ipaddress),
+ ratelimit => '-',
+ order => 901,
+ }
+}