summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAndreas <andreas@immerda.ch>2010-10-21 18:55:32 -0500
committerAndreas <andreas@immerda.ch>2010-10-21 18:55:32 -0500
commita1739cacce6c17e9244c3c6d5b5838e331265490 (patch)
treebb32cdd09a9ebaff6e82c788c152467b767f2200 /manifests
parent079a8e915b73b5a969fa4882eba9fe5c814bf4d9 (diff)
shorewall tinc rules
Diffstat (limited to 'manifests')
-rw-r--r--manifests/rules/tinc.pp34
1 files changed, 34 insertions, 0 deletions
diff --git a/manifests/rules/tinc.pp b/manifests/rules/tinc.pp
new file mode 100644
index 0000000..d244ceb
--- /dev/null
+++ b/manifests/rules/tinc.pp
@@ -0,0 +1,34 @@
+class shorewall::rules::tinc {
+ shorewall::rule { 'net-me-tinc-tcp':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '655',
+ order => 240,
+ action => 'ACCEPT';
+ }
+ shorewall::rule { 'me-net-tinc-tcp':
+ source => '$FW',
+ destination => 'net',
+ proto => 'tcp',
+ destinationport => '655',
+ order => 240,
+ action => 'ACCEPT';
+ }
+ shorewall::rule { 'net-me-tinc-udp':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '655',
+ order => 240,
+ action => 'ACCEPT';
+ }
+ shorewall::rule { 'me-net-tinc-udp':
+ source => '$FW',
+ destination => 'net',
+ proto => 'tcp',
+ destinationport => '655',
+ order => 240,
+ action => 'ACCEPT';
+ }
+}