From f98bb538e59279bb0768a15fc7d95267f4d61c74 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 21 Mar 2014 13:33:08 +0100 Subject: [PATCH 1/1] firewall: rules.pl: Catch invalid configurations. --- config/firewall/rules.pl | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.2