[Control Center] VPN太难用了!
Tofloor
poster avatar
xtxbyj
deepin
2021-08-20 22:08
Author

这些设置保存不了,也导出不了

结果就是vpn连不上!!!

Reply Favorite View the author
All Replies
uvz
deepin
2021-08-20 23:12
#1

可以查看下日志, 我之前也有连接openvpn不成功的情况, 后来查看日志发现是因为关闭sha1加密算法(可能sha1已经被淘汰有关), 

具体查看日志

  1.  

sudo journalctl -u NetworkManager -f

-- Logs begin at Mon 2020-10-05 14:42:41 CST. -- 10月 11 08:04:04 deep nm-openvpn[14581]: TCP_CLIENT link remote: [AF_INET]229.134.217.19:1194 10月 11 08:04:04 deep nm-openvpn[14581]: NOTE: chroot will be delayed because of --client, --pull, or --up-delay 10月 11 08:04:04 deep nm-openvpn[14581]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay 10月 11 08:04:04 deep nm-openvpn[14581]: TLS error: Unsupported protocol. This typically indicates that client and server have no common TLS version enabled. This can be caused by mismatched tls-version-min and tls-version-max options on client and server. If your OpenVPN client is between v2.3.6 and v2.3.2 try adding tls-version-min 1.0 to the client configuration to use TLS 1.0+ instead of TLS 1.0 only 10月 11 08:04:04 deep nm-openvpn[14581]: OpenSSL: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol 10月 11 08:04:04 deep nm-openvpn[14581]: TLS_ERROR: BIO read tls_read_plaintext error 10月 11 08:04:04 deep nm-openvpn[14581]: TLS Error: TLS object -> incoming plaintext read error 10月 11 08:04:04 deep nm-openvpn[14581]: TLS Error: TLS handshake failed 10月 11 08:04:04 deep nm-openvpn[14581]: Fatal TLS error (check_tls_errors_co), restarting 10月 11 08:04:04 deep nm-openvpn[14581]: SIGUSR1[soft,tls-error] received, process restarting 10月 11 08:04:09 deep nm-openvpn[14581]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

分析 openvpn使用openssl的客户端和服务器端版本不一致

  1. 解决方案 更改 本地openssl最低支持版本为1.0 sudo vim /etc/ssl/openssl.cnf 拖到最后面更改最低支持版本为v1.0,如下: MinProtocol = TLSv1.0

Reply View the author
xtxbyj
deepin
2021-08-21 01:50
#2

https://www.twblogs.net/a/5c03d97fbd9eee728baab5ac/?lang=zh-cn  

---这个要翻墙的

https://forum.ubuntu.org.cn/viewtopic.php?f=116&t=491273

参照考这个两个解决的 

Reply View the author
azermmm
deepin
2021-08-21 04:39
#3

https://help.hitun.io/zh/article/linux-clashy-159ofij/

ClashY

注意!需要手动开启代理哟,关闭也是

Reply View the author
观摩
deepin
2021-08-21 08:43
#4

PPTP协议的话,连不上不一定是配置问题,也可能是网络问题,为了应对疫情导致的居家办公我们单位自建了PPTP协议的VPN,个别同事就是死活连不上来。

你可以在同一个网络下用Windows试一试能不能连上。

-

那个MPPE点对点加密的选项确实有问题,明明取消了,再打开看还是开启状态。

Reply View the author