diff options
Diffstat (limited to 'manifests/subsystems')
-rw-r--r-- | manifests/subsystems/firewall.pp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index 75b2b17..3de9089 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -203,8 +203,13 @@ class firewall { # DMZ Configuration # if $shorewall_dmz { - shorewall::host { "eth0-dmz": - name => 'eth0:192.168.1.0/24', + $shorewall_dmz_iface = $shorewall_dmz_iface ? { + '' => 'eth0', + default => $shorewall_dmz_iface, + } + + shorewall::host { "$shorewall_dmz_iface-dmz": + name => "$shorewall_dmz_iface:192.168.1.0/24", zone => 'dmz', options => '', order => '3', |