我有一个用以下方式制作的 .ovpn这里
我测试了端口是否正在使用 netstat 连接:
$ nc -v -u -z -w 3 <ip> 443
Connection to <ip> 443 port [udp/https] succeeded!
它看起来如下所示。我下载了它并尝试让它与 Gnome 3.18 一起工作。到目前为止,运气不佳。
在客户端上:
sudo apt-get install network-manager-openvpn-gnome
然后设置->网络->+(左下)->VPN->从文件导入...
它出现在列表中,但如果我启用它,浏览器就无法工作。
我遗漏了什么?提前致谢!
client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote <deleted> 443
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3
<ca>
-----BEGIN CERTIFICATE-----
<deleted>
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=ChangeMe
Validity
Not Before: Mar 24 17:22:16 2017 GMT
Not After : Mar 22 17:22:16 2027 GMT
Subject: CN=mclaptop
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
<deleted>
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
X509v3 Subject Key Identifier:
<deleted>
X509v3 Authority Key Identifier:
<deleted>
DirName:/CN=ChangeMe
serial:A4:D8:96:4B:25:FD:DB:71
X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Key Usage:
Digital Signature
Signature Algorithm: sha256WithRSAEncryption
<deleted>
-----BEGIN CERTIFICATE-----
<deleted>
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
<deleted>
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
<deleted>
-----END OpenVPN Static key V1-----
</tls-auth>
答案1
问题是我尝试在端口 443 上使用 UDP,但没有成功。切换到端口 53 (DNS) 后,一切正常。