]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
firewall: Use correct interface for RED
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2014 12:54:12 +0000 (14:54 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2014 12:54:12 +0000 (14:54 +0200)
config/firewall/firewall-lib.pl

index 9b3f2bff43525e2d6a93c151354f006460705df8..f3cd67fb099e2f03da1e3db5413f23a86d1521cc 100755 (executable)
@@ -238,8 +238,8 @@ sub get_interface
        if($net eq "$netsettings{'BLUE_NETADDRESS'}/$netsettings{'BLUE_NETMASK'}"){
                return "$netsettings{'BLUE_DEV'}";
        }
-       if($net eq "0.0.0.0/0"){
-               return "$netsettings{'RED_DEV'}";
+       if($net eq "0.0.0.0/0") {
+               return &get_external_interface();
        }
        return "";
 }