X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=miniupnpd%2Ffiles%2Ffirewall.include;h=818af9dbc4446c3d4ae2ec69dcb74b8dbdb0c184;hb=3001d0ab41e30b236b7cdbd0674963bec59d4181;hp=9a42e0613f4ce11a11bca468fc5247af306c463f;hpb=6c553c24c0c10ae64f1077a3fa332b10fd0a2f41;p=lede-routing%2F.git diff --git a/miniupnpd/files/firewall.include b/miniupnpd/files/firewall.include index 9a42e06..818af9d 100644 --- a/miniupnpd/files/firewall.include +++ b/miniupnpd/files/firewall.include @@ -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