Skip to content

Instantly share code, notes, and snippets.

@manuel-zulian
Forked from thiagozs/awsvpnclient-ubuntu-24.04.md
Last active August 14, 2024 16:19
Show Gist options
  • Save manuel-zulian/7740b011fd336c5f5d26f6c68936604b to your computer and use it in GitHub Desktop.
Save manuel-zulian/7740b011fd336c5f5d26f6c68936604b to your computer and use it in GitHub Desktop.
AWSVPNClient Fixes on Mint 22

Based on https://gist.github.com/thiagozs/4d8c6e090a027fae3dd883163615f91e with a few edits and updates, tested on latest mint 22.

Steps

Download

Missing dependency on newer version of ubuntu, nees to be kept up to date manually! Won't start without it.

# latest as of 2024 08 14
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb

Edit files and add Env vars

sudo nano /etc/systemd/system/awsvpnclient.service

Put the Enviroment line (again, won't start without this).

[Service]
Type=simple
ExecStart=/opt/awsvpnclient/Service/ACVC.GTK.Service
Restart=always
RestartSec=1s
User=root
Environment=DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

[Install]
WantedBy=multi-user.target

Create a simbolic link

cd /opt/awsvpnclient 

sudo ln -s AWS\ VPN\ Client awsvpnclient  

Edit the menu

find / -name 'awsvpnclient.desktop' 2>&1 | grep -v 'Permission'

Should be in /usr/share/applications/awsvpnclient.desktop

Update to: (notice the need to set the env also in this file, won't start otherwise, not for me at least)

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=AWS VPN Client
Comment=AWS VPN Client
Exec=env DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 /opt/awsvpnclient/awsvpnclient %u
Path=/opt/awsvpnclient
Icon=acvc-64
Terminal=false
Categories=Network;VPN;
Keywords=vpn;aws;

DNS issues

As per https://docs.aws.amazon.com/vpn/latest/clientvpn-user/linux-troubleshooting.html I usually need to add:

dhcp-option DOMAIN-ROUTE .

to my ovpn configuration files. I found there is instead no need to setup the stub resolver on Mint as it seems to come by default already setup that way.

Follow progress

I hope aws gets around updating their client, the latest version supported is ubuntu 20.04 and it doesn't seem too many changes would be required. To follow the discussions about it: https://repost.aws/questions/QUNJeF_ja_Suykous7EvfX5Q https://repost.aws/questions/QUVGfYR-aETamiQgnHRFADeA/client-vpn-on-ubuntu-24-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment