在 Ubuntu 19.10 上升级后,互联网连接仅在连接到 VPN 时有效

在 Ubuntu 19.10 上升级后,互联网连接仅在连接到 VPN 时有效

这有点奇怪,但自从升级到 19.10 以来,我只能通过浏览器和电子邮件访问互联网我已连接到 VPN。之前无法连接。有什么提示吗?

编辑:

$ ip link;ip route
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp57s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 80:fa:5b:68:a8:ea brd ff:ff:ff:ff:ff:ff
3: wlp58s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 18:56:80:e6:5d:6b brd ff:ff:ff:ff:ff:ff
4: anbox0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 76:cd:bf:bf:11:5a brd ff:ff:ff:ff:ff:ff
default via 192.168.1.1 dev wlp58s0 proto dhcp metric 20600 
169.254.0.0/16 dev anbox0 scope link metric 1000 
192.168.1.0/24 dev wlp58s0 proto kernel scope link src 192.168.1.126 metric 600 
192.168.250.0/24 dev anbox0 proto kernel scope link src 192.168.250.1

连接到 VPN 后:

$ ip link;ip route
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp57s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 80:fa:5b:68:a8:ea brd ff:ff:ff:ff:ff:ff
3: wlp58s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 18:56:80:e6:5d:6b brd ff:ff:ff:ff:ff:ff
4: anbox0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 76:cd:bf:bf:11:5a brd ff:ff:ff:ff:ff:ff
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 100
    link/none 
0.0.0.0/1 via 10.8.0.1 dev tun0 
default via 192.168.1.1 dev wlp58s0 proto dhcp metric 20600 
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.21 
37.120.217.203 via 192.168.1.1 dev wlp58s0 
128.0.0.0/1 via 10.8.0.1 dev tun0 
169.254.0.0/16 dev anbox0 scope link metric 1000 
192.168.1.0/24 dev wlp58s0 proto kernel scope link src 192.168.1.126 metric 600 
192.168.250.0/24 dev anbox0 proto kernel scope link src 192.168.250.1

编辑2:

$ vim resolv.conf
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 127.0.0.53
search lan

编辑3:

$ systemd-resolve --status Global LLMNR setting: no MulticastDNS setting: no DNSOverTLS setting: no DNSSEC setting: no DNSSEC supported: no DNS Domain: lan DNSSEC NTA: 10.in-addr.arpa 16.172.in-addr.arpa 168.192.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 31.172.in-addr.arpa corp d.f.ip6.arpa home internal intranet lan local private test

Link 14 (tun0) Current Scopes: DNS DefaultRoute setting: yes LLMNR setting: yes MulticastDNS setting: no DNSOverTLS setting: no DNSSEC setting: allow-downgrade DNSSEC supported: yes Current DNS Server: 103.86.96.96 DNS Servers: 103.86.99.99 103.86.96.96 DNS Domain: ~.

Link 3 (wlp58s0) Current Scopes: DNS DefaultRoute setting: yes LLMNR setting: yes MulticastDNS setting: no DNSOverTLS setting: no DNSSEC setting: no DNSSEC supported: no Current DNS Server: 192.168.1.1 DNS Servers: 192.168.1.1

Link 2 (enp57s0f1) Current Scopes: none DefaultRoute setting: no LLMNR setting: yes MulticastDNS setting: no DNSOverTLS setting: no DNSSEC setting: no DNSSEC supported: no

答案1

您没有列出 NordVPN 服务器,它们是:

nameserver 103.86.96.100
nameserver 103.86.99.100

您可以手动添加它们,而不是当前名称服务器或者用 Google 服务器替换它

nameserver 8.8.8.8
nameserver 8.8.4.4

保存并关闭并重新加载网络管理器。或者重新启动系统 NordVPN 应该用他们的域名服务器在启动时。

您也可以删除北方VPN包如果它不起作用则重新启动并重新安装它,它应该可以解决问题。

附言

另外,请确保您没有手动激活 NordVPN DNS 选项。

在终端检查nordvpn settingsDNS 是否已启用然后关闭nordvpn set dns off

相关内容