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 9b3f2bf..f3cd67f 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 "";
 }