Jump to content

- - - - -

simple CLI for setting up AirVPN on Ubuntu & Mint (and likely others)

client linux cli

  • Please log in to reply
2 replies to this topic

#1 mindcruzer



  • Members
  • Pip
  • 3 posts

Posted 24 November 2013 - 12:26 AM

I'm not sure if anyone else would find this useful, but I threw together a simple script the other day for speeding up the process of configuring and managing my VPN connections on my desktop (Linux Mint). Note that this is far from comprehensive--I made it with my use cases in mind.





~$ airvpn setup pavonis --connect

Would prompt you for your username and password, generate the configuration, save it and set the appropriate permissions, then start the openvpn daemon. There are a few other useful commands as well.




#2 Staff


    Advanced Member

  • Staff
  • PipPipPip
  • 7789 posts

Posted 24 November 2013 - 03:51 AM



thank you! In the provided link you claim that Air has no API, in fact this is not true: https://airvpn.org/topic/9612-what-is-api/


Which functions would you need to speed up your script?


Kind regards

#3 mindcruzer



  • Members
  • Pip
  • 3 posts

Posted 24 November 2013 - 06:34 AM

This is what I get for not checking if there was API before saying there wasn't one :)


Right now I'm just parsing HTML from the website to get the information I need, which is causing a bit of overhead, but we're talking maybe a second or two of lag, so nothing major. That being said, adding the server list and server status to the API would be beneficial.


Thanks for pointing out the API, I'm definitely going to add a command to make use of the userinfo service.

Similar Topics Collapse

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Servers online. Online Sessions: 13457 - BW: 46860 Mbit/sYour IP: Access.