aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-10-03 15:33:23 +0200
committerMicah Anderson <micah@riseup.net>2009-12-07 11:34:31 -0500
commit210c761331a33265c64a534a8a143ec8f2b16235 (patch)
treee1d8ee44fa09ba3c3360620127cc9f0ef2f37136 /manifests
parent3edd0d220a32bbec5ac564e3689d5022e96c9051 (diff)
downloadpuppet-shorewall-210c761331a33265c64a534a8a143ec8f2b16235.tar.gz
puppet-shorewall-210c761331a33265c64a534a8a143ec8f2b16235.tar.bz2
add postgres rules
Diffstat (limited to 'manifests')
-rw-r--r--manifests/rules/out/postgres.pp11
-rw-r--r--manifests/rules/postgres.pp10
2 files changed, 21 insertions, 0 deletions
diff --git a/manifests/rules/out/postgres.pp b/manifests/rules/out/postgres.pp
new file mode 100644
index 0000000..a62d75d
--- /dev/null
+++ b/manifests/rules/out/postgres.pp
@@ -0,0 +1,11 @@
+class shorewall::rules::out::postgres {
+ shorewall::rule {
+ 'me-net-tcp_postgres':
+ source => '$FW',
+ destination => 'net',
+ proto => 'tcp',
+ destinationport => '5432',
+ order => 240,
+ action => 'ACCEPT';
+ }
+}
diff --git a/manifests/rules/postgres.pp b/manifests/rules/postgres.pp
new file mode 100644
index 0000000..1a22027
--- /dev/null
+++ b/manifests/rules/postgres.pp
@@ -0,0 +1,10 @@
+class shorewall::rules::postgres {
+ shorewall::rule { 'net-me-tcp_postgres':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '5432',
+ order => 250,
+ action => 'ACCEPT';
+ }
+}