openvpn 创建了使浏览互联网变得不可能的路由

openvpn 创建了使浏览互联网变得不可能的路由

当我使用命令连接到 VPN 网络时,sudo openvpn my.ovpn浏览互联网变得无法实现,我将其缩小到 openvpn 制作的错误路由表。 - 但仍然感觉更像是一个猜测...... :/

$ sudo route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlp2s0
0.0.0.0         192.168.1.1     0.0.0.0         UG    600    0        0 wlp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-f7335b6325f0
172.19.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-6c1adab37f3b
172.20.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-70ef8a9aefd2
172.21.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-62071bf2c0d4
172.22.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-c9fa9a847bb0
172.23.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-ce123fa76772
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0

连接到 VPN 后,我的路由表如下所示

$ sudo route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.16.0.129    0.0.0.0         UG    0      0        0 tun0
0.0.0.0         192.168.1.1     0.0.0.0         UG    600    0        0 wlp2s0
10.0.0.0        172.16.0.129    255.255.0.0     UG    0      0        0 tun0
10.101.0.0      172.16.0.129    255.255.0.0     UG    0      0        0 tun0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
172.16.0.128    0.0.0.0         255.255.255.128 U     0      0        0 tun0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-f7335b6325f0
172.19.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-6c1adab37f3b
172.20.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-70ef8a9aefd2
172.21.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-62071bf2c0d4
172.22.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-c9fa9a847bb0
172.23.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-ce123fa76772
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0
6.6.6.6         192.168.1.1     255.255.255.255 UGH   0      0        0 wlp2s0

6.6.6.6 - 假 IP 地址。我连接的 VPN 服务器的 IP 地址被更改了

未连接到 VPN 服务器时的 traceroute:

$ traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
 1  livebox.home (192.168.1.1)  6.014 ms  7.916 ms  12.544 ms
 2  war-bng5.tpnet.pl (80.50.18.82)  71.976 ms  74.233 ms  76.108 ms
 3  war-r1.tpnet.pl (80.50.18.81)  53.427 ms  46.392 ms  50.110 ms
 4  ae106-10.ffttr6.frankfurt.opentransit.net (193.251.249.7)  78.465 ms  80.336 ms  84.105 ms
 5  72.14.214.52 (72.14.214.52)  86.035 ms  87.803 ms  90.152 ms
 6  * * 108.170.251.193 (108.170.251.193)  64.282 ms
 7  108.170.233.39 (108.170.233.39)  64.289 ms 108.170.228.133 (108.170.228.133)  66.307 ms 108.170.238.245 (108.170.238.245)  66.721 ms
 8  google-public-dns-a.google.com (8.8.8.8)  70.173 ms  43.889 ms  41.797 ms

连接到 VPN 时进行路由跟踪

$ traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
 1  * * *
(...) all the way to 30
30  * * *

相关内容