1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Remove unused setting in firewall

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-08-28 20:22:53 +02:00
parent aa1a5ed651
commit 8a73c7f993

View file

@ -140,7 +140,6 @@ if [ "$(uci -q get firewall.omr_server)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.omr_server=include
set firewall.omr_server.path=/etc/firewall.omr-server
set firewall.omr_server.reload=1
commit firewall
EOF
fi
@ -149,7 +148,6 @@ if [ "$(uci -q get firewall.gre_tunnel)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.gre_tunnel=include
set firewall.gre_tunnel.path=/etc/firewall.gre-tunnel
set firewall.gre_tunnel.reload=0
commit firewall
EOF
fi
@ -157,7 +155,6 @@ if [ "$(uci -q get firewall.ttl)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.ttl=include
set firewall.ttl.path=/etc/firewall.ttl
set firewall.ttl.reload=1
commit firewall
EOF
fi
@ -242,7 +239,6 @@ done
uci -q batch <<-EOF >/dev/null
set firewall.zone_lan.mtu_fix='1'
set firewall.zone_vpn.mtu_fix='1'
set firewall.@include[0].reload='1'
commit firewall
EOF
if [ -z "$(uci -q get openmptcprouter.settings.sipalg)" ]; then
@ -271,6 +267,12 @@ fi
# Remove mtu_fix check, doesn't work on kernel 6.6
sed -i 's/if (zone\.mtu_fix && this\.kernel < 0x040a0000) {/if (zone.mtu_fix \&\& this.kernel < 0x040a0000 \&\& false) {/' /usr/share/ucode/fw4.uc
uci -q batch <<-EOF >/dev/null
del firewall.omr_server.reload
del firewall.gre_tunnel.reload
del firewall.ttl.reload
EOF
rm -f /tmp/luci-indexcache
exit 0