mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix firewall zone from some update
This commit is contained in:
parent
02e8eef12d
commit
6c5df8d273
1 changed files with 7 additions and 0 deletions
|
@ -151,6 +151,13 @@ if [ "$(uci -q get firewall.blockquicproxy)" = "" ]; then
|
|||
EOF
|
||||
fi
|
||||
|
||||
# Fix firewall config from some old config
|
||||
allintf=$(uci -q get firewall.@zone[1].network)
|
||||
uci -q del firewall.@zone[1].network
|
||||
for intf in $allintf; do
|
||||
uci -q add_list firewall.@zone[1].network=$intf
|
||||
done
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set firewall.@zone[0].mtu_fix='1'
|
||||
set firewall.zone_vpn.mtu_fix='1'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue