18.10 上的 mullvad VPN 出现 DNS 问题

18.10 上的 mullvad VPN 出现 DNS 问题

我的 mullvad VPN 可以正常工作,然后我升级到了 18.10。现在当我使用他们的 UI 客户端时,它可以正常连接,但 DNS 不起作用。我可以通过 IP ping google.com,但不能 ping google.com。

我可以通过指定接口来解决它:

>resolvectl query google.com
google.com: resolve call failed: All attempts to contact name servers or networks failed

>resolvectl -i tun0 query google.com
google.com: 216.58.212.174

-- Information acquired via protocol DNS in 1.1ms.
-- Data is authenticated: no

resolvectl 的手册页对 -i 选项有如下说明:

Note that this option has no effect if system-wide DNS configuration (as configured in /etc/resolv.conf or /etc/systemd/resolve.conf) in place of per-link configuration is used

那么我的系统是否使用每个链接配置?我该如何检查?

其他信息:

>ls -ld /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Oct 28 10:10 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

>cat /run/resolvconf/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     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

根据要求提供更多信息:

它使用 openvpn 2.4.6-1ubuntu2

systemd-resolve --status 的输出(当 vpn 连接时):

Global
       LLMNR setting: no
MulticastDNS setting: no
  DNSOverTLS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
          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 6 (tun0)
      Current Scopes: DNS
       LLMNR setting: yes
MulticastDNS setting: no
  DNSOverTLS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
  Current DNS Server: 10.9.0.1
         DNS Servers: 10.9.0.1

Link 3 (wlp1s0)
      Current Scopes: DNS
       LLMNR setting: yes
MulticastDNS setting: no
  DNSOverTLS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
  Current DNS Server: 192.168.0.1
         DNS Servers: 192.168.0.1
          DNS Domain: ~.

Link 2 (eno1)
      Current Scopes: DNS
       LLMNR setting: yes
MulticastDNS setting: no
  DNSOverTLS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
  Current DNS Server: 192.168.0.1
         DNS Servers: 192.168.0.1
          DNS Domain: ~.


ps auxc | grep dns returns nothing
>ps auxc | grep resolv returns:
systemd+   557  0.0  0.1  55480  9236 ?        Ss   Oct28   0:06 systemd-resolve

答案1

我给 mullvad 支持部门发了电子邮件,他们建议我直接使用 openvpn,与 Coffee_Mug 的回复相同: Mullvad vpn 无法在 ubuntu 18.04 上连接

在一台电脑上,我通过“env MULLVAD_USE_GTK3=yes mullvad”使用了旧的 mulvad 客户端,但在另一台电脑上,我得到了与 amicose 相同的错误 Mullvad VPN 客户端无法在 18.04 上启动

对于第二台计算机,我放弃尝试弄清楚为什么它不起作用,只是设置 openvpn 来连接到一台服务器。

答案2

Mullvad 应用程序 2018.6 版运行良好

相关内容