add_extzone_rules $(fw3 -q network "$ext_iface")
done
+add_extzone_rules $(uci -q get upnpd.config.external_zone)
+
[ ! $ADDED = 0 ] && exit 0
-# If it's not available, resort to network_find_wan{,6} and
+
+# If really nothing is available, resort to network_find_wan{,6} and
# assume external interfaces all have same firewall zone.
+# (This heuristic may fail horribly, in case of e.g. multihoming, so
+# please set external_zone in that case!)
+
network_find_wan wan_iface
network_find_wan6 wan6_iface