summaryrefslogtreecommitdiff
path: root/manifests/router/gobby.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/router/gobby.pp')
-rw-r--r--manifests/router/gobby.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/router/gobby.pp b/manifests/router/gobby.pp
new file mode 100644
index 0000000..3d648ef
--- /dev/null
+++ b/manifests/router/gobby.pp
@@ -0,0 +1,22 @@
+class firewall::router::gobby($destination, $zone = 'loc', $originaldest = $ipaddress) {
+ shorewall::rule { 'gobby-route-1':
+ action => 'DNAT',
+ source => 'net',
+ destination => "$zone:$destination:6523",
+ proto => 'tcp',
+ destinationport => '6523',
+ ratelimit => '-',
+ order => 600,
+ }
+
+ shorewall::rule { 'gobby-route-2':
+ action => 'DNAT',
+ source => '$FW',
+ destination => "fw:$destination:6523",
+ proto => 'tcp',
+ destinationport => '6523',
+ originaldest => "$originaldest",
+ ratelimit => '-',
+ order => 601,
+ }
+}