Dns 当';此连接仅用于其网络上的资源';检查

Dns 当';此连接仅用于其网络上的资源';检查,dns,openvpn,Dns,Openvpn,我已使用以下配置设置openvpn服务器 local xxx.xxx.xxx.xxx port 1194 proto udp dev tun ca ca.crt cert server.crt key server.key dh dh.pem auth SHA512 tls-crypt tc.key topology subnet server 192.168.255.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "redirect-gat

我已使用以下配置设置openvpn服务器

local xxx.xxx.xxx.xxx
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 192.168.255.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "route 10.0.0.0 255.0.0.0"
push "dhcp-option DNS 192.168.255.1"
#push "dhcp-option DNS 172.17.0.42"
#push "dhcp-option DNS 1.1.1.1"
#push "dhcp-option DNS 8.8.8.8"
#push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
explicit-exit-notify
client.ovpn文件类似于

client
dev tun
proto udp
remote xx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
pull-filter ignore redirect-gateway def1
script-security 2
up /etc/openvpn/update-systemd-resolved
up-restart
down /etc/openvpn/update-systemd-resolved
down-pre

# prevent DNS leakage
dhcp-option DOMAIN-ROUTE .
<ca>
尝试了不同于谷歌搜索的解决方案,但都没有奏效。
是否有人遇到了这样的问题并找到了解决方案?

能否在客户端添加
route-n
的结果。这个conf
pull-filter-ignore-redirect-gateway-def1
似乎不起作用route-n显示添加了路由,但只有DNS不起作用,push-not-work。同样的问题,您解决了吗?
$ systemd-resolve --status | grep -A8 tun0 
Link 33 (tun0)
      Current Scopes: none
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no

Link 2 (ens33)
      Current Scopes: DNS