29 |
### Rules |
### Rules |
30 |
shorewallfile{ rules: } |
shorewallfile{ rules: } |
31 |
define rule_line($order = 50) { |
define rule_line($order = 50) { |
32 |
$filename = "${shorewalldir}/shorewall/rules" |
$filename = "${shorewalldir}/rules" |
33 |
$line = $name |
$line = $name |
34 |
concat::fragment{"newline_${name}": |
concat::fragment{"newline_${name}": |
35 |
target => $filename, |
target => $filename, |
56 |
### Zones |
### Zones |
57 |
shorewallfile{ zones: } |
shorewallfile{ zones: } |
58 |
define zone_line($order = 50) { |
define zone_line($order = 50) { |
59 |
$filename = "${shorewalldir}/shorewall/zones" |
$filename = "${shorewalldir}/zones" |
60 |
$line = $name |
$line = $name |
61 |
concat::fragment{"newline_${name}": |
concat::fragment{"newline_${name}": |
62 |
target => $filename, |
target => $filename, |
76 |
### Policy |
### Policy |
77 |
shorewallfile{ policy: } |
shorewallfile{ policy: } |
78 |
define policy_line($order = 50) { |
define policy_line($order = 50) { |
79 |
$filename = "${shorewalldir}/shorewall/policy" |
$filename = "${shorewalldir}/policy" |
80 |
$line = $name |
$line = $name |
81 |
concat::fragment{"newline_${name}": |
concat::fragment{"newline_${name}": |
82 |
target => $filename, |
target => $filename, |