Jump to content
Not connected, Your IP: 3.15.7.212
Dorn64

AirVPN / Wireguard / NetworkManager / Linux

Recommended Posts


For anyone interested in how to setup AirVPN in Linux with NetworkManager on the command line.
 

Create connection

  • Get WireGuard Config File from AirVPN website:
    https://airvpn.org/generator
  • Name Config File to wg0.conf
  • Import Config File:
    sudo nmcli connection import type wireguard file wg0.conf
  • View connections:
    nmcli connection show
  • Rename connection:
    nmcli connection modify wg0 connection.id "MyConnection"


Manage connection

  • Start VPN Connection:
    nmcli connection up "MyConnection"
  • Stop VPN Connection:
    nmcli connection down "MyConnection"
  • Check IP visit https://ipleak.net/
  • Check VPN connection:
    nmcli connection show --active | grep "MyConnection"
 

Interesting commands

  • Check IP interface:
    ip a show wg0
  • nmcli manual page:
    man nmcli
 

Notes

  • tested on ArchLinux 6.0.9-arch1-1
  • i tried OpenVPN with NetworkManager first, IPv4 worked but IPv6 didn't, apparently due to a missing feature in networkmanager-openvpn



Have a nice day :bye:

 

Share this post


Link to post

Can confirm it working – if imported using the command line, that is. If you use the GUI to import that, it won't work.


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

is this doable on pi OS? i'm totally  novice with this stuff. not sure when to input these commands. i have the airVPN wireguard conf file. i don't understand how/when to use the nmcli commands. i'm only doing this because the eddie GUI client just freezes upon launch no matter what i do (even on a fresh install of pi os)

Share this post


Link to post
8 hours ago, salvialight said:

is this doable on pi OS? i'm totally  novice with this stuff. not sure when to input these commands. i have the airVPN wireguard conf file. i don't understand how/when to use the nmcli commands. i'm only doing this because the eddie GUI client just freezes upon launch no matter what i do (even on a fresh install of pi os)


Hello!

In this case you had better go directly with wg-quick and not nmclihttps://airvpn.org/linux/wireguard/terminal/

Kind regards
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...