summaryrefslogtreecommitdiff
path: root/manifests/ppp.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:12:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:12:53 -0300
commit1c9be45e18faf86aaaa5c29879514e3d29b559a1 (patch)
treecbd86a243791640faa20adad6706bd57ba3abfd9 /manifests/ppp.pp
downloadpuppet-firewall-1c9be45e18faf86aaaa5c29879514e3d29b559a1.tar.gz
puppet-firewall-1c9be45e18faf86aaaa5c29879514e3d29b559a1.tar.bz2
Initial import
Diffstat (limited to 'manifests/ppp.pp')
-rw-r--r--manifests/ppp.pp31
1 files changed, 31 insertions, 0 deletions
diff --git a/manifests/ppp.pp b/manifests/ppp.pp
new file mode 100644
index 0000000..3082e92
--- /dev/null
+++ b/manifests/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,
+ }
+}