From: Michael Tremer Date: Fri, 21 Mar 2014 12:33:08 +0000 (+0100) Subject: firewall: rules.pl: Catch invalid configurations. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=f98bb538e59279bb0768a15fc7d95267f4d61c74;ds=sidebyside firewall: rules.pl: Catch invalid configurations. --- diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index d9c9b5cc0..a131c54a8 100755 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -337,6 +337,11 @@ sub buildrules { # Use iptables DNAT } else { + if ($destination_is_firewall && !$destination) { + $destination = &fwlib::get_external_address(); + } + next unless ($destination); + my ($dnat_address, $dnat_mask) = split("/", $destination); @destination_options = ("-d", $dnat_address);