aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/firewall
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-13 22:17:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-13 22:17:24 -0300
commit156dd397756e11b2065c518e8c15af480898208d (patch)
treecfc853e2886eae5e73a1d6796b7dbe4633143000 /manifests/subsystems/firewall
parent476194837ef4340905f4e87fadafd205206cb3aa (diff)
downloadpuppet-nodo-156dd397756e11b2065c518e8c15af480898208d.tar.gz
puppet-nodo-156dd397756e11b2065c518e8c15af480898208d.tar.bz2
Adding firewall::openvpn
Diffstat (limited to 'manifests/subsystems/firewall')
-rw-r--r--manifests/subsystems/firewall/openvpn.pp29
1 files changed, 29 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/openvpn.pp b/manifests/subsystems/firewall/openvpn.pp
new file mode 100644
index 0000000..51b31fe
--- /dev/null
+++ b/manifests/subsystems/firewall/openvpn.pp
@@ -0,0 +1,29 @@
+class firewall::openvpn {
+ shorewall::zone { 'vpn':
+ type => 'ipv4',
+ order => '4',
+ }
+
+ shorewall::interface { 'tun0':
+ zone => 'vpn',
+ }
+
+ shorewall::policy { 'loc-vpn':
+ sourcezone => 'loc',
+ destinationzone => 'vpn',
+ policy => 'ACCEPT',
+ order => '1',
+ }
+
+ shorewall::policy { 'vpn-loc':
+ sourcezone => 'vpn',
+ destinationzone => 'loc',
+ policy => 'ACCEPT',
+ order => '1',
+ }
+
+ shorewall::tunnel { 'openvpn':
+ tunnel_type => 'openvpn',
+ zone => 'net',
+ }
+}