Package Details: awsvpnclient 3.12.2-1

Git Clone URL: https://aur.archlinux.org/awsvpnclient.git (read-only, click to copy)
Package Base: awsvpnclient
Description: AWS VPN Client
Upstream URL: https://aws.amazon.com/vpn/
Keywords: aws aws-clientvpn aws-vpn aws-vpnclient clientvpn
Licenses: custom
Submitter: project0
Maintainer: project0
Last Packager: project0
Votes: 9
Popularity: 0.001154
First Submitted: 2021-06-26 08:56 (UTC)
Last Updated: 2024-04-25 14:45 (UTC)

Pinned Comments

project0 commented on 2021-06-28 15:58 (UTC) (edited on 2024-02-12 11:07 (UTC) by project0)

Please note the following requirements for AWS VPN Client:

For troubelshooting its worth checking first the logs:

/home/$USER/.config/AWSVPNClient/
/var/log/aws-vpn-client/$USER/

See also the official docs: https://docs.aws.amazon.com/vpn/latest/clientvpn-user/client-vpn-connect-linux.html

If you face any other problem please check the troubleshooting guide (DNS issues): https://docs.aws.amazon.com/vpn/latest/clientvpn-user/linux-troubleshooting.html#aws-provided-client

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

Adamantike commented on 2021-08-11 13:58 (UTC)

@project0, the command regarding systemd-resolved in the pinned command is missing systemctl. Instead of sudo enable systemd-resolved.service && sudo start systemd-resolved.service, it should be sudo systemctl enable systemd-resolved.service && sudo systemctl start systemd-resolved.service

clover commented on 2021-07-27 18:34 (UTC) (edited on 2021-07-27 19:15 (UTC) by clover)

When trying to connect, I get "Unknown Error Occured" BUT I have an issue that I don't see anyone else having. It seems to be with the awsvpnclient.service.

https://paste.ubuntu.com/p/Ntz8TxT3QM/

Service invoking user does not have read access over Notice the whitespace after user? It's like the service does not know what user to use. It gives me that read access error even if I chmod 777 the current_connection.txt file.

EDIT: Fixed! my users command was busted. I am using Garuda Linux and my /var/run/utmp file did not exist at all. what i did was a symbolic link /var/run/utmp -> /var/log/wtmp and this fixed everything.

project0 commented on 2021-07-21 14:26 (UTC)

@bam365 thanks for letting us know the problem! I updated the package with the missing dependency ;-)

dcaixinha commented on 2021-07-21 13:51 (UTC)

@bam365 that fixed it for me! thank you very much :)

bam365 commented on 2021-07-21 11:29 (UTC)

For those getting "Unknown error occurred" when trying to connect, and the log file in /var/log/aws-vpn-client/$USER/ shows that it fails after opening the openvpn management interface, which looks like this in the log:

2021-07-05 11:07:41.423 +02:00 [DBG] [TI=11] [PID: 4121] Mon Jul  5 11:07:41 2021 Need password(s) from management interface, waiting...
2021-07-05 11:07:42.433 +02:00 [DBG] [TI=13] Wait for OpenVPN processes to finish graceful shutdown

This might be because you do not have the lsof command installed. Try installing it with pacman -S lsof and see if that fixes the issue.

dcaixinha commented on 2021-07-05 10:46 (UTC)

I have a colleague that's using the same .ovpn file in Ubuntu and it works for him, so this seems to be somehow tied to Arch... I understand it's not easy to support @project0, thanks for the help anyway!

project0 commented on 2021-07-05 10:36 (UTC)

@7thSon do you even use federated-auth? (If not i would prefer not using AWS VPN and stick to native OpenVPN).

In /home/$USER/.config/AWSVPNClient/ should also be a separate openvpn log. I would check this as well, maybe something is wrong with your configuration (ovpn file).

Also double check the awsvpnclient is running (the logs does not indicate it, but who knows, maybe it crashes?). Maybe trying first on a supported OS would clarify if the problem is really the client/OS setup or some other miss configuration.

I am afraid that i cannot help more, AWS officially only supports Ubuntu for their client right now and do not share the source code of their implementation :-(.

dcaixinha commented on 2021-07-05 10:32 (UTC)

FWIW I get the exact same error and logs as @7thSon, so we're probably missing the same thing (?)

7thSon commented on 2021-07-05 10:18 (UTC) (edited on 2021-07-05 10:19 (UTC) by 7thSon)

@project0 Of course, I get an error when I try to connect using the AWS VPN Client gui, after having added my profile and selecting the .ovpn file, when I click "Connect" I just get an error dialog saying "Unknown error occurred. Try again.". The log I posted below is from clicking "Connect" in the gui tool.

The log in /home/$USER/.config/AWSVPNClient/ prints this when I try to connect with the gui: https://hastebin.com/denurinigu.less