我正在尝试从 ubuntu shell 连接到客户端 VPN(OpenVPN)。在 mac 上,我可以使用 tunnelblick 完成此操作,但现在我需要从 ubuntu 服务器执行此操作。
我努力了:
cabox@box-codeanywhere:~/vpn_config/openvpn-files$ ls
AVORA-duo.conf ca.crt luca.puggini.crt luca.puggini.key
cabox@box-codeanywhere:~/vpn_config/openvpn-files$ openvpn AVORA-duo.conf
Mon Jul 2 03:51:57 2018 OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Feb 4 2014
Enter Auth Username:luca.puggini
Enter Auth Password:
Mon Jul 2 03:52:28 2018 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Mon Jul 2 03:52:28 2018 Socket Buffers: R=[133120->131072] S=[133120->131072]
Mon Jul 2 03:52:28 2018 UDPv4 link local: [undef]
Mon Jul 2 03:52:28 2018 UDPv4 link remote: [AF_INET]54.77.214.131:1194
Mon Jul 2 03:53:28 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Jul 2 03:53:28 2018 TLS Error: TLS handshake failed
Mon Jul 2 03:53:28 2018 SIGUSR1[soft,tls-error] received, process restarting
Mon Jul 2 03:53:28 2018 Restart pause, 2 second(s)
Mon Jul 2 03:53:30 2018 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Mon Jul 2 03:53:30 2018 Socket Buffers: R=[133120->131072] S=[133120->131072]
Mon Jul 2 03:53:30 2018 UDPv4 link local: [undef]
Mon Jul 2 03:53:30 2018 UDPv4 link remote: [AF_INET]54.77.214.131:1194
但我认为它不起作用,因为我无法访问本地服务。(我在codeanywhere
外壳上运行)
使用该openvpn
功能的正确方法是什么?我是否应该将它也传递给其他文件(.crt
)