netmode: disable firewall for l2 netmode

since the intent for l2 netmode is to accept all traffic, hence,
disable firewall on top of zone lan's input/output/forward being
ACCEPT/ACCEPT/ACCEPT

Please note: when firewall is disabled, it esentially set's input
to ACCEPT, it does not stop or disable fw3.
This commit is contained in:
Rahul Thakur 2024-03-13 10:54:36 +05:30
parent 2a9012763e
commit 72f6521710

View file

@ -98,6 +98,10 @@ l2_network_config() {
# Update CWMP Agent WAN Interface
uci -q set cwmp.cpe.default_wan_interface="lan"
uci -q commit cwmp
# disable firewall
uci -q set firewall.globals.enabled="0"
uci -q commit firewall
}
network_mode="$(fw_printenv -n netmode 2>/dev/null)"