1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Changes for kernel 6.1 support

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-12-30 20:14:56 +01:00
parent af843b8156
commit f814139c3d
5 changed files with 10 additions and 7 deletions

View file

@ -39,7 +39,7 @@ _setup_fw() {
[ -n "$ifnames" ] && rule="$rule -i $(echo "${ifnames}" | sed 's/ /-i /g')"
if [ -n "$rule" ] && [ -n "$lookup" ]; then
$IPTABLESAVE --counters | grep -v "0x${lookup}" | $IPTABLERESTORE -w --counters
$IPTABLERESTORE --wait=60 --noflush <<-EOF
$IPTABLERESTORE --noflush <<-EOF
*mangle
-A omr-gre-tunnel ${rule} -j MARK --set-mark 0x${lookup}
COMMIT
@ -48,7 +48,7 @@ _setup_fw() {
}
if [ -z "$($IPTABLESAVE | grep omr-gre-tunnel)" ]; then
$IPTABLERESTORE --wait=60 --noflush <<-EOF
$IPTABLERESTORE --noflush <<-EOF
*mangle
:omr-gre-tunnel -
-I PREROUTING 1 -m addrtype ! --dst-type LOCAL -j omr-gre-tunnel

View file

@ -236,9 +236,12 @@ for intf in $allintf; do
uci -q add_list firewall.zone_vpn.network="${intf}"
done
#uci -q batch <<-EOF >/dev/null
# set firewall.zone_lan.mtu_fix='1'
# set firewall.zone_vpn.mtu_fix='1'
#EOF
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