AirVPN on Arch

I wanted a VPN for use at home, so I did 1 second of googling a decided upon AirVPN

I was hoping I could just use the Gnome NetworkManager GUI to configure it, but that did not work, I had to use the cli openvpn tool.

On my ArchLinx laptop I install some packages like so:

$ pacaur -S openvpn-update-resolv-conf openvpn

Next I signed up here

Once logged into the AirVPN site, I went to Client Area -> Config Generator

Selected Linux and chose my area to vpn into (Europe)

After agreeing the T&C’s I was able to download a config file (AirVPN_Europe_TCP-443.ovpn)

I altered to config file and added (after “verb 3”):

script-security 2
setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
up /etc/openvpn/scripts/update-systemd-resolved
down /etc/openvpn/scripts/update-systemd-resolved

Next I used a systemd service to handle dns stuff

git clone
cd update-systemd-resolved
sudo mkdir /etc/openvpn/scripts
sudo chmod 777 /etc/openvpn/scripts/
systemctl enable systemd-resolved.service
systemctl start systemd-resolved.service

I then used to following command, which configured my machine to send network traffic over the VPN

$ sudo openvpn ./AirVPN_Europe_TCP-443.ovpn