summaryrefslogtreecommitdiff
path: root/manifests/implementations/shorewall/virtual/yacy.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/implementations/shorewall/virtual/yacy.pp')
-rw-r--r--manifests/implementations/shorewall/virtual/yacy.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/implementations/shorewall/virtual/yacy.pp b/manifests/implementations/shorewall/virtual/yacy.pp
new file mode 100644
index 0000000..0a791f9
--- /dev/null
+++ b/manifests/implementations/shorewall/virtual/yacy.pp
@@ -0,0 +1,11 @@
+class firewall::implementations::shorewall::virtual::yacy($destination, $zone = 'fw') {
+ shorewall::rule { 'yacy-0':
+ action => 'DNAT',
+ source => 'net',
+ destination => "$zone:$destination:8090",
+ proto => 'tcp',
+ destinationport => '8090',
+ ratelimit => '-',
+ order => 2500,
+ }
+}