mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
More MPTCP over VPN fixes
This commit is contained in:
parent
4e3e03fa43
commit
91811b555a
2 changed files with 7 additions and 3 deletions
|
@ -248,8 +248,11 @@ start_service()
|
||||||
commit glorytun-udp
|
commit glorytun-udp
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
uci -q set shadowsocks-libev.ss_rules.server='mptcpovervpn'
|
uci -q batch <<-EOF >/dev/null
|
||||||
elif ([ "$(uci -q get glorytun.vpn.host)" = "10.255.250.1" ] || [ "$(uci -q get glorytun.vpn.host)" = "10.255.247.1" ]) && [ "$nbintf" != "$nbintfvpn" ]; then
|
set shadowsocks-libev.ss_rules.server='mptcpovervpn'
|
||||||
|
set shadowsocks-libev.ss_rules.redir_tcp='all'
|
||||||
|
EOF
|
||||||
|
elif ([ "$(uci -q get glorytun.vpn.host)" = "10.255.250.1" ] || [ "$(uci -q get glorytun.vpn.host)" = "10.255.247.1" ] || [ "$(uci -q get shadowsocks-libev.ss_rules.server)" != "sss0" ]) && [ "$nbintf" != "$nbintfvpn" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set shadowsocks-libev.sss0.disabled='0'
|
set shadowsocks-libev.sss0.disabled='0'
|
||||||
set shadowsocks-libev.ss_rules.server='sss0'
|
set shadowsocks-libev.ss_rules.server='sss0'
|
||||||
|
|
|
@ -186,7 +186,8 @@ ss_rules() {
|
||||||
|
|
||||||
eval "$(validate_ss_rules_section "$cfg" ss_validate_mklocal)"
|
eval "$(validate_ss_rules_section "$cfg" ss_validate_mklocal)"
|
||||||
validate_ss_rules_section "$cfg" || return 1
|
validate_ss_rules_section "$cfg" || return 1
|
||||||
[ "$disabled" = 0 ] || return 0
|
[ "$disabled" != "1" ] || return 0
|
||||||
|
[ "$(uci -q get shadowsocks-libev.${cfgrulesserver}.disabled)" != "1" ] || return 0
|
||||||
if [ "$ss_rules_redir_tcp_$redir_tcp" = "all" ]; then
|
if [ "$ss_rules_redir_tcp_$redir_tcp" = "all" ]; then
|
||||||
min_ss_redir_ports="65535"
|
min_ss_redir_ports="65535"
|
||||||
max_ss_redir_ports="0"
|
max_ss_redir_ports="0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue