]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/firewall/rules.pl
rules.pl: Do not create HOSTILE rules if no red dev is available.
[ipfire-2.x.git] / config / firewall / rules.pl
index 83216e78a25ee030f372b9bedec1a2fbd13fe6a8..57f4809b4e22cfe621cba27c0c05a9dae46ada37 100644 (file)
@@ -695,6 +695,9 @@ sub drop_hostile_networks () {
                return;
        }
 
+       # Exit if there is no red interface.
+       return unless($RED_DEV);
+
        # Call function to load the network list of hostile networks.
        &ipset_restore($HOSTILE_CCODE);