mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix ip
This commit is contained in:
parent
510a9df2d7
commit
858605d703
3 changed files with 32 additions and 62 deletions
|
@ -188,7 +188,7 @@ interface_multipath_settings() {
|
|||
gateway=$(ubus call network.interface.${config}_4 status 2>/dev/null | jsonfilter -q -l 1 -e '@.route[@.target="0.0.0.0"].nexthop' | tr -d "\n")
|
||||
fi
|
||||
if [ -z "$gateway" ] || [ "$( valid_subnet4 $gateway )" != "ok" ]; then
|
||||
gateway=$(traceroute -m1 -i $iface 8.8.8.8 2>/dev/null | awk 'FNR==2{ print $2 }')
|
||||
gateway=$(traceroute -m1 -i $iface 223.5.5.5 2>/dev/null | awk 'FNR==2{ print $2 }')
|
||||
fi
|
||||
network_get_subnet netmask $config
|
||||
[ -n "$netmask" ] && [ "$(echo $netmask | grep '/')" != "" ] && netmask=""
|
||||
|
|
|
@ -726,7 +726,7 @@ if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "om
|
|||
elif [ -z "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.mtu)" ] && [ -n "$OMR_TRACKER_DEVICE_IP" ]; then
|
||||
if [ -n "$serverip" ] && [ "$serverip" != "127.0.0.1" ]; then
|
||||
local mtu=$(omr-mtu $OMR_TRACKER_DEVICE_IP $serverip)
|
||||
#local mtu=$(omr-mtu $OMR_TRACKER_DEVICE_IP 8.8.8.8)
|
||||
#local mtu=$(omr-mtu $OMR_TRACKER_DEVICE_IP 223.5.5.5)
|
||||
[ -n "$mtu" ] && {
|
||||
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.mtu=$mtu
|
||||
ip link set dev $OMR_TRACKER_DEVICE mtu $mtu > /dev/null 2>&1
|
||||
|
|
|
@ -7,23 +7,22 @@ config defaults 'defaults'
|
|||
option wait_test '1'
|
||||
option timeout '20'
|
||||
option interval '5'
|
||||
list hosts '4.2.2.1'
|
||||
list hosts '8.8.8.8'
|
||||
list hosts '80.67.169.12'
|
||||
list hosts '8.8.4.4'
|
||||
list hosts '9.9.9.9'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '1.2.4.8'
|
||||
list hosts '80.67.169.40'
|
||||
list hosts '114.114.114.114'
|
||||
list hosts '1.1.1.1'
|
||||
list hosts '223.5.5.5'
|
||||
list hosts '223.6.6.6'
|
||||
list hosts '210.2.4.8'
|
||||
list hosts '9.9.9.9'
|
||||
list hosts '180.76.76.76'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '119.29.29.29'
|
||||
list hosts '182.254.116.116'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '199.85.126.10'
|
||||
list hosts '199.85.127.10'
|
||||
list hosts '199.85.126.20'
|
||||
list hosts '199.85.127.20'
|
||||
list hosts '199.85.126.30'
|
||||
list hosts '199.85.126.30'
|
||||
list hosts '119.29.29.29'
|
||||
list hosts '182.254.118.118'
|
||||
|
||||
config proxy 'proxy'
|
||||
option enabled '1'
|
||||
|
@ -32,55 +31,22 @@ config proxy 'proxy'
|
|||
option interval '5'
|
||||
option timeout '20'
|
||||
option wait_test '2'
|
||||
list hosts '212.27.48.10'
|
||||
list hosts '198.27.92.1'
|
||||
list hosts '151.101.129.164'
|
||||
list hosts '77.88.55.77'
|
||||
list hosts '1.1.1.1'
|
||||
list hosts '74.82.42.42'
|
||||
list hosts '176.103.130.130'
|
||||
list hosts '114.114.114.114'
|
||||
list hosts '223.5.5.5'
|
||||
list hosts '106.11.249.99'
|
||||
list hosts '106.11.172.51'
|
||||
list hosts '106.11.248.144'
|
||||
list hosts '140.205.135.3'
|
||||
list hosts '140.205.60.46'
|
||||
list hosts '106.11.172.9'
|
||||
list hosts '106.11.253.86'
|
||||
list hosts '106.11.172.56'
|
||||
list hosts '106.11.253.83'
|
||||
list hosts '106.11.248.146'
|
||||
list hosts '140.205.94.189'
|
||||
list hosts '140.205.220.96'
|
||||
list hosts '180.149.153.187'
|
||||
list hosts '180.149.138.57'
|
||||
list hosts '61.129.7.47'
|
||||
list hosts '183.3.226.35'
|
||||
list hosts '123.151.137.18'
|
||||
list hosts '13.107.21.200'
|
||||
list hosts '204.79.197.200'
|
||||
list hosts '123.58.180.7'
|
||||
list hosts '123.58.180.8'
|
||||
list hosts '123.126.55.41'
|
||||
list hosts '211.159.191.18'
|
||||
list hosts '4.2.2.1'
|
||||
list hosts '8.8.8.8'
|
||||
list hosts '80.67.169.12'
|
||||
list hosts '8.8.4.4'
|
||||
list hosts '9.9.9.9'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '1.2.4.8'
|
||||
list hosts '80.67.169.40'
|
||||
list hosts '114.114.114.114'
|
||||
list hosts '1.1.1.1'
|
||||
list hosts '223.5.5.5'
|
||||
list hosts '223.6.6.6'
|
||||
list hosts '210.2.4.8'
|
||||
list hosts '9.9.9.9'
|
||||
list hosts '180.76.76.76'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '119.29.29.29'
|
||||
list hosts '182.254.116.116'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '199.85.126.10'
|
||||
list hosts '199.85.127.10'
|
||||
list hosts '199.85.126.20'
|
||||
list hosts '199.85.127.20'
|
||||
list hosts '199.85.126.30'
|
||||
list hosts '199.85.126.30'
|
||||
list hosts '119.29.29.29'
|
||||
list hosts '182.254.118.118'
|
||||
|
||||
config server 'server'
|
||||
option enabled '1'
|
||||
|
@ -97,14 +63,18 @@ config interface 'omrvpn'
|
|||
option wait_test '0'
|
||||
option timeout '20'
|
||||
option tries '3'
|
||||
list hosts '4.2.2.1'
|
||||
list hosts '8.8.8.8'
|
||||
list hosts '223.5.5.5'
|
||||
list hosts '223.6.6.6'
|
||||
list hosts '180.76.76.76'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '119.29.29.29'
|
||||
list hosts '182.254.116.116'
|
||||
list hosts '1.2.4.8'
|
||||
list hosts '210.2.4.8'
|
||||
list hosts '9.9.9.9'
|
||||
list hosts '114.114.114.114'
|
||||
list hosts '114.114.115.115'
|
||||
list hosts '199.85.126.10'
|
||||
list hosts '199.85.127.10'
|
||||
list hosts '199.85.126.20'
|
||||
list hosts '199.85.127.20'
|
||||
list hosts '199.85.126.30'
|
||||
list hosts '199.85.126.30'
|
||||
list hosts '119.29.29.29'
|
||||
list hosts '182.254.118.118'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue