OpenVPN 客户端不会加载目标网站。在 Android 和 Windows 上一切正常

OpenVPN 客户端不会加载目标网站。在 Android 和 Windows 上一切正常

我获得了一个 OpenVPN 文件来访问某些域,如果没有它,将无法加载。

Android 和 Windows 中具有该文件的客户端都运行良好。而在 Linux 上,目标域不会加载。其他非目标域将正确加载。

client
proto tcp
remote xx.xx.xx.xx
port 5517
dev tun
#mssfix 1300
tun-mtu 1500
resolv-retry infinite
nobind
persist-key
persist-tun
tls-client
#tls-auth 131ta.key 1

#cipher AES-256-CBC
cipher AES-256-GCM
data-ciphers AES-256-GCM
auth SHA256

auth-user-pass
remote-cert-tls server
keepalive 5 15
key-direction 1
#compress lzo
verb 3
tls-version-min 1.2
auth-nocache



# OpenVPN tls key
<tls-auth>
#
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
xxxxx
-----END OpenVPN Static key V1-----
</tls-auth>
# OpenVPN Diffie-Hellman - not needed for client
# OpenVPN CA
<ca>
-----BEGIN CERTIFICATE-----
xxxxx
-----END CERTIFICATE-----
</ca>

# OpenVPN user certificate .crt:
<cert>

Certificate:
    Data:
        xxxx
-----BEGIN CERTIFICATE-----
xxxx
-----END CERTIFICATE-----

</cert>

# OpenVPN user key: .key
<key>

-----BEGIN PRIVATE KEY-----
xxxx
-----END PRIVATE KEY-----

</key>

怎么了?

systemd服务systemd-resolved正在运行

其内容 /etc/resolv.conf为:

nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 9.9.9.9


# IPv6 nameservers:
nameserver 2606:4700:4700::1111
nameserver 2606:4700:4700::1001

相关内容