gpt4 book ai didi

amazon-web-services - 如何从 ubuntu box 连接到 AWS Client VPN?

转载 作者:行者123 更新时间:2023-12-03 23:52:39 25 4
gpt4 key购买 nike

我用过这个guide创建 aws vpn 客户端端点。现在我想从我的 ubuntu 盒子连接到这个 vpn 端点。

为此,我已经下载了客户端证书并使用了 guide用于使用 TLS 身份验证方法连接到 vpn。

但是当我尝试从我的网络管理器连接到 VPN 时,我会超时。

注意:我已经为我的系统打开了所有 UDP 流量。

下面是系统日志的输出。请让我知道出了什么问题。

~$ org.gtk.vfs.Daemon[2480]: message repeated 3 times: [ ** (process:17599): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: The specified location is not mounted]
~$ NetworkManager[30373]: <info> [1552886812.2980] audit: op="connection-activate" uuid="705a6afa-a5b0-420b-858e-4feae6244a63" name="Client-VPC" pid=2697 uid=1001 result="success"
~$ NetworkManager[30373]: <info> [1552886812.3117] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: Started the VPN service, PID 9091
~$ NetworkManager[30373]: <info> [1552886812.3297] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: Saw the service appear; activating connection
~$ NetworkManager[30373]: nm-openvpn-Message: openvpn[9094] started
~$ NetworkManager[30373]: <info> [1552886812.3394] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: VPN plugin: state changed: starting (3)
~$ NetworkManager[30373]: <info> [1552886812.3394] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: VPN connection: (ConnectInteractive) reply received
~$ nm-openvpn[9094]: OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2017
~$ nm-openvpn[9094]: library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
~$ nm-openvpn[9094]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
~$ nm-openvpn[9094]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
~$ nm-openvpn[9094]: NOTE: chroot will be delayed because of --client, --pull, or --up-delay
~$ nm-openvpn[9094]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
~$ nm-openvpn[9094]: UDPv4 link local: [undef]
~$ nm-openvpn[9094]: UDPv4 link remote: [AF_INET] **.**.**.**:1194
~$ nm-openvpn[9094]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
~$ nm-openvpn[9094]: TLS Error: TLS handshake failed
~$ nm-openvpn[9094]: SIGUSR1[soft,tls-error] received, process restarting
~$ NetworkManager[30373]: <warn> [1552886872.9227] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: VPN connection: connect timeout exceeded.
~$ NetworkManager[30373]: libnm-Message: Connect timer expired, disconnecting.
~$ NetworkManager[30373]: nm-openvpn-Message: openvpn[9094]: send SIGTERM
~$ nm-openvpn[9094]: SIGTERM[hard,init_instance] received, process exiting
~$ NetworkManager[30373]: <warn> [1552886872.9266] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: VPN plugin: failed: connect-failed (1)
~$ NetworkManager[30373]: nm-openvpn-Message: openvpn[9094] exited with success
~$ NetworkManager[30373]: <info> [1552886872.9273] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: VPN plugin: state changed: stopping (5)
~$ NetworkManager[30373]: <info> [1552886872.9277] vpn-connection[0x2501430,705a6afa-a5b0-420b-858e-4feae6244a63,"Client-VPC",0]: VPN plugin: state changed: stopped (6)
~$ org.freedesktop.Notifications[2480]: ** (notify-osd:2694): WARNING **: dnd_is_idle_inhibited(): got error "The name org.gnome.SessionManager was not provided by any .service files"

对此的任何帮助将不胜感激。

提前致谢。

最佳答案

关注 this guide

有时网络文档中缺少额外的步骤,例如:

After you create the client vpn endpoint, the console displays the DNS name, for example, " cvpn-endpoint-0102bc4c2e49f1e44.prod.clientvpn.us-west-2.amazonaws.com". When you need to specify the DNS name, you must specify a random string in front of the displayed name so that the format is “[random string].displayed DNS name, for example, “asdfa.cvpnendpoint-0102bc4c2e49f1e44.prod.clientvpn.us-west-2.amazonaws.com".

关于amazon-web-services - 如何从 ubuntu box 连接到 AWS Client VPN?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55215071/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com