From d4df8cad44650e3322bd90d375add470bedaa288 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 14 Sep 2011 12:00:59 -0300 Subject: Adding firewall::ppp --- manifests/init.pp | 1 + manifests/subsystems/firewall/ppp.pp | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 manifests/subsystems/firewall/ppp.pp diff --git a/manifests/init.pp b/manifests/init.pp index f96b5ee..250e88f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -87,6 +87,7 @@ import "subsystems/firewall/ups.pp" import "subsystems/firewall/wifi.pp" import "subsystems/firewall/local.pp" import "subsystems/firewall/openvpn.pp" +import "subsystems/firewall/ppp.pp" # Import nodo classes import "nodo.pp" diff --git a/manifests/subsystems/firewall/ppp.pp b/manifests/subsystems/firewall/ppp.pp new file mode 100644 index 0000000..f646519 --- /dev/null +++ b/manifests/subsystems/firewall/ppp.pp @@ -0,0 +1,31 @@ +class firewall::ppp { + shorewall::zone { 'ppp': + type => 'ipv4', + order => '4', + } + + shorewall::interface { 'ppp0': + zone => 'ppp', + } + + shorewall::policy { 'loc-ppp': + sourcezone => 'loc', + destinationzone => 'ppp', + policy => 'ACCEPT', + order => '30', + } + + shorewall::policy { 'ppp-loc': + sourcezone => 'ppp', + destinationzone => 'loc', + policy => 'ACCEPT', + order => '31', + } + + shorewall::policy { 'fw-ppp': + sourcezone => '$FW', + destinationzone => 'ppp', + policy => 'ACCEPT', + order => '32', + } +} -- cgit v1.2.3