From 156dd397756e11b2065c518e8c15af480898208d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 13 Sep 2011 22:17:24 -0300 Subject: Adding firewall::openvpn --- manifests/subsystems/firewall/openvpn.pp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 manifests/subsystems/firewall/openvpn.pp (limited to 'manifests/subsystems/firewall/openvpn.pp') 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', + } +} -- cgit v1.2.3