我最近在我的 Ubuntu VPS 上安装了 OpenVPN。每当我尝试连接到它时,我都可以很好地建立连接。
但是,我尝试连接的所有内容都超时。
如果我尝试 ping 某些东西,它会解析 IP,但会在解析 IP 后超时。(所以 DNS 服务器似乎工作正常)
我的 server.conf 有这个相关信息(至少我认为它是相关的。我不确定你是否需要更多)
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
;push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
;client-to-client
;duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
comp-lzo
persist-key
persist-tun
status openvpn-status.log
# Set the …
Run Code Online (Sandbox Code Playgroud)