summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2017-04-25 15:16:08 +0200
committermh <mh@immerda.ch>2017-04-25 15:16:08 +0200
commit591b48169ba18c8f9d8337aa2626d716e6866476 (patch)
tree8a880368b2630d9cc5c31f1b686ffcee36fc632d
parente2f07459474470aeea73e6160ecf2652bc9ae6bf (diff)
enable shorewall6 rules by default
-rw-r--r--manifests/rule.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/rule.pp b/manifests/rule.pp
index 39f0ef9..12c4858 100644
--- a/manifests/rule.pp
+++ b/manifests/rule.pp
@@ -18,7 +18,7 @@ define shorewall::rule(
$helper = '-',
$order = '500',
$shorewall = true,
- $shorewall6 = false,
+ $shorewall6 = true,
$ensure = 'present',
){
if versioncmp($shorewall_version,'4.5.7') >= 0 {
@@ -30,10 +30,11 @@ define shorewall::rule(
# el5
$line = ''
}
+ $with_shorewall6 = $shorewall6 and $shorewall::with_shorewall6
shorewall::entry{"rules-${order}-${name}":
ensure => $ensure,
line => "# ${name}\n${action} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${originaldest} ${ratelimit} ${user} ${mark}${line}",
shorewall => $shorewall,
- shorewall6 => $shorewall6,
+ shorewall6 => $with_shorewall6,
}
}