mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
inteno-netmodes: make sure firewall is disabled in repeater mode
This commit is contained in:
parent
23fdec1d3e
commit
776a5bb53a
1 changed files with 2 additions and 2 deletions
|
|
@ -13,10 +13,10 @@ repeaterready="$(uci -q get netmode.setup.repeaterready)"
|
||||||
curmode="$(uci -q get netmode.setup.curmode)"
|
curmode="$(uci -q get netmode.setup.curmode)"
|
||||||
|
|
||||||
if [ "$(netmode_get_ip_type $ipaddr)" == "private" ]; then
|
if [ "$(netmode_get_ip_type $ipaddr)" == "private" ]; then
|
||||||
if [ "$repeaterready" == "1" ]; then
|
if [ "$repeaterready" == "1" -o "${curmode:0:8}" == "repeater" ]; then
|
||||||
# flush the ip on br-lan; br-lan will anyhow be deleted.
|
# flush the ip on br-lan; br-lan will anyhow be deleted.
|
||||||
# this is needed if the ip received on the wan is also from the same net
|
# this is needed if the ip received on the wan is also from the same net
|
||||||
ip addr flush dev br-lan
|
ip addr flush dev br-lan 2>/dev/null
|
||||||
|
|
||||||
# flush iptables in case the MASTER
|
# flush iptables in case the MASTER
|
||||||
# tries to configure us before
|
# tries to configure us before
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue