客户端 OpenVPN 连接没有互联网连接

客户端 OpenVPN 连接没有互联网连接

我有 Ubuntu 18.04 和 openvpn 2.4.4。当我尝试连接 vpn 时,我无法再使用互联网,只能使用 vpn 后面的资源。我甚至无法 ping 8.8.8.8(所有数据包都丢失)。摇头叹息,这只发生在我身上,没有发生在使用相同脚本的其他人身上。但是,这适用于我的 3 个不同设备。

以下是配置内容

dev tun
client
proto <tcp>
<ca> </ca>
<cert> </cert>
<key> </key>
remote-cert-eku "TLS Web Server Authentication"
remote x.x.x.x z
redirect-gateway def1
persist-key
persist-tun
verb 3
mute 20
keepalive 10 60
cipher AES-256-CBC
auth SHA512
float
reneg-sec 3660
nobind
mute-replay-warnings
auth-user-pass
;remember_connection 0
;auto_reconnect 1

我不知道这里到底出了什么问题。

我确实尝试了以下解决方法: OpenVPN 已连接但 Ubuntu 16.04 / 18.04 上无法访问互联网

(第一反应)

但它不起作用。当我选中“仅使用连接来访问其网络上的资源”复选框时,我可以访问互联网,但无法访问我的 VPN 网络上的资源。如果我不选中该复选框,我无法访问互联网,但可以访问我的 VPN 网络资源。

相关内容