minimalist-pcproxy/miniupnpd: added+using upnp.config.external_zone.
[lede-routing/.git] / miniupnpd / files / firewall.include
index 9a42e0613f4ce11a11bca468fc5247af306c463f..818af9dbc4446c3d4ae2ec69dcb74b8dbdb0c184 100644 (file)
@@ -34,11 +34,17 @@ for ext_iface in $(uci -q get upnpd.config.external_iface); do
     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