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:
parent
af843b8156
commit
f814139c3d
5 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue