summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/eip.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-10-29 20:48:02 +0100
committervarac <varacanero@zeromail.org>2012-10-29 20:48:02 +0100
commitc72160f993345c184ce01d7e4c14c9923fc194e9 (patch)
treeeaca19204a71c9c8e9bf2093f742351d4d73ebb5 /puppet/modules/site_shorewall/manifests/eip.pp
parent7361c79e1e864c16450455a3ae374393a04f9eb7 (diff)
move interface definition for eth0 to eip.pp, use variable
Diffstat (limited to 'puppet/modules/site_shorewall/manifests/eip.pp')
-rw-r--r--puppet/modules/site_shorewall/manifests/eip.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_shorewall/manifests/eip.pp b/puppet/modules/site_shorewall/manifests/eip.pp
index 54f3ea6e..0c9bfa9c 100644
--- a/puppet/modules/site_shorewall/manifests/eip.pp
+++ b/puppet/modules/site_shorewall/manifests/eip.pp
@@ -13,6 +13,13 @@ class site_shorewall::eip {
PARAM - - udp 53,80,443,1194
', }
+
+ # define interfaces
+ shorewall::interface {"$interface":
+ zone => 'net',
+ options => 'tcpflags,blacklist,nosmurfs';
+ }
+
shorewall::interface {'tun0':
zone => 'eip',
options => 'tcpflags,blacklist,nosmurfs'; }
@@ -20,6 +27,7 @@ PARAM - - udp 53,80,443,1194
zone => 'eip',
options => 'tcpflags,blacklist,nosmurfs'; }
+
shorewall::zone {'eip':
type => 'ipv4'; }