mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
Revert VPN MTU to 1500 and default VPN to Glorytun TCP
This commit is contained in:
parent
4a1ac7bbbb
commit
e880e13d16
2 changed files with 6 additions and 6 deletions
|
@ -91,9 +91,9 @@ interface_max_metric() {
|
|||
fi
|
||||
elif [ "$1" = "omrvpn" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set network.${config}.metric=9000
|
||||
set network.${config}.metric=1500
|
||||
commit network
|
||||
set openmptcprouter.${config}.metric=9000
|
||||
set openmptcprouter.${config}.metric=1500
|
||||
commit openmptcprouter
|
||||
EOF
|
||||
elif [ "$1" = "omr6in4" ]; then
|
||||
|
|
|
@ -149,16 +149,16 @@ if [ "$(uci -q get network.tun0.mtu)" = "1200" ] || [ -z "$(uci -q get network.t
|
|||
uci -q batch <<-EOF >/dev/null
|
||||
set network.tun0=device
|
||||
set network.tun0.name='tun0'
|
||||
set network.tun0.mtu=9000
|
||||
set network.tun0.mtu=1500
|
||||
commit network
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get openmptcprouter.settings.vpn)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set openmptcprouter.settings.vpn='glorytun_udp'
|
||||
set glorytun-udp.vpn.enable='1'
|
||||
commit glorytun-udp
|
||||
set openmptcprouter.settings.vpn='glorytun_tcp'
|
||||
set glorytun.vpn.enable='1'
|
||||
commit glorytun
|
||||
commit openmptcprouter
|
||||
EOF
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue