mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Change omrvpn interface MTU to jumbo frame (at least for test...)
This commit is contained in:
parent
a013fc112c
commit
ff90fb808f
2 changed files with 8 additions and 5 deletions
|
@ -241,9 +241,7 @@ done
|
||||||
|
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set firewall.zone_lan.mtu_fix='1'
|
set firewall.zone_lan.mtu_fix='1'
|
||||||
set firewall.zone_vpn.mtu_fix='1'
|
set firewall.zone_vpn.mtu_fix='0'
|
||||||
EOF
|
|
||||||
uci -q batch <<-EOF >/dev/null
|
|
||||||
set firewall.@include[0].reload='1'
|
set firewall.@include[0].reload='1'
|
||||||
commit firewall
|
commit firewall
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -12,7 +12,7 @@ if [ "$(uci -q get network.omrvpn)" = "" ]; then
|
||||||
set network.omrvpn.leasetime=12h
|
set network.omrvpn.leasetime=12h
|
||||||
set network.omrvpn.type=tunnel
|
set network.omrvpn.type=tunnel
|
||||||
set network.omrvpn.txqueuelen=100
|
set network.omrvpn.txqueuelen=100
|
||||||
set network.omrvpn.metric=1200
|
set network.omrvpn.metric=9000
|
||||||
commit network
|
commit network
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
@ -146,7 +146,12 @@ if [ "$(uci -q get glorytun-udp.vpn.key)" = "" ] && [ "$(uci -q get glorytun.vpn
|
||||||
uci -q commit glorytun-udp
|
uci -q commit glorytun-udp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(uci -q get network.omrvpn.metric)" = "1200" ]; then
|
||||||
|
uci -q batch <<-EOF >/dev/null
|
||||||
|
set network.omrvpn.metric=9000
|
||||||
|
commit network
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue