我已经开始使用 Ubuntu 来处理我的工作,并且遇到了 VPN 问题。我成功连接了我的 VPN(pulse secure),但是我的网络却受到攻击。我不得不再次断开网络并重新连接。
这是我的系统日志
Aug 17 22:21:02 maa1apnb663183 NetworkManager[24286]: <info> [1502988662.7765] devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
Aug 17 22:21:02 maa1apnb663183 NetworkManager[24286]: <info> [1502988662.7765] device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7324] device (tun0): state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20 41]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7370] keyfile: add connection in-memory (3c0a8014-6c1f-4cd4-b4be-65a1fe1eb8a2,"tun0")
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7386] device (tun0): state change: unavailable -> disconnected (reason 'connection-assumed') [20 30 41]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7414] device (tun0): Activation: starting connection 'tun0' (3c0a8014-6c1f-4cd4-b4be-65a1fe1eb8a2)
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7438] device (tun0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7455] device (tun0): state change: prepare -> config (reason 'none') [40 50 0]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7470] device (tun0): state change: config -> ip-config (reason 'none') [50 70 0]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7500] device (tun0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7519] device (tun0): state change: ip-check -> secondaries (reason 'none') [80 90 0]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.7537] device (tun0): state change: secondaries -> activated (reason 'none') [90 100 0]
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.8035] device (tun0): Activation: successful, device activated.
Aug 17 22:21:03 maa1apnb663183 dbus[692]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.8045] manager: NetworkManager state is now CONNECTED_LOCAL
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.8046] manager: NetworkManager state is now CONNECTED_GLOBAL
Aug 17 22:21:03 maa1apnb663183 NetworkManager[24286]: <info> [1502988663.8047] policy: set 'tun0' (tun0) as default for IPv4 routing and DNS
Aug 17 22:21:03 maa1apnb663183 systemd[1]: Starting Network Manager Script Dispatcher Service...
Aug 17 22:21:03 maa1apnb663183 dbus[692]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Aug 17 22:21:03 maa1apnb663183 systemd[1]: Started Network Manager Script Dispatcher Service.
Aug 17 22:21:03 maa1apnb663183 nm-dispatcher: req:1 'up' [tun0]: new request (1 scripts)
Aug 17 22:21:03 maa1apnb663183 nm-dispatcher: req:1 'up' [tun0]: start running ordered scripts...
Aug 17 22:21:08 maa1apnb663183 whoopsie[703]: [22:21:08] offline
Aug 17 22:21:08 maa1apnb663183 whoopsie[703]: [22:21:08] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/1
Aug 17 22:21:08 maa1apnb663183 whoopsie[703]: [22:21:08] Network connection may be a paid data plan: /org/freedesktop/NetworkManager/Devices/3
Aug 17 22:34:43 maa1apnb663183 systemd-timesyncd[682]: Timed out waiting for reply from 91.189.91.157:123 (ntp.ubuntu.com).
Aug 17 22:34:54 maa1apnb663183 systemd-timesyncd[682]: Timed out waiting for reply from 91.189.89.199:123 (ntp.ubuntu.com).
Aug 17 22:35:04 maa1apnb663183 systemd-timesyncd[682]: Timed out waiting for reply from 91.189.89.198:123 (ntp.ubuntu.com).
我尝试了以下操作:
从日志中我了解到路由表上存在一些问题。
连接到我的 VPN 之前
maa1apnb663183@maa1apnb663183:/var/log$ sudo route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlp2s0
143.116.250.163 192.168.0.1 255.255.255.255 UGH 1 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
连接到我的 VPN 后
maa1apnb663183@maa1apnb663183:/var/log$ sudo route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 148.164.24.242 0.0.0.0 UG 1 0 0 tun0
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlp2s0
143.116.250.163 192.168.0.1 255.255.255.255 UGH 1 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.0.1 0.0.0.0 255.255.255.255 UH 1 0 0 wlp2s0
我已在互联网上尝试此步骤,方法是添加重复条目(网络连接 -> 您的 VPN 连接 -> IPv4 设置 -> 路由 -> 添加...)并选中“忽略自动获取的路由”复选框。 - 重新启动 VPN 连接
但没有运气,我的问题仍然存在。
一个重要提示:当我连接到 Airtel 宽带时,我的 VPN 没有任何问题,在我将家庭网络切换到 ACT 之前一周,我又遇到了这个问题,而且当我通过网络共享尝试在移动网络中使用时也没有发现任何问题。
我在互联网上看到过许多人面临类似的问题,但我怀疑这是由于 ISP 造成的。
大家有什么建议吗?