Jump to content


Photo
- - - - -

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

mindcruzer

    Newbie

  • New 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.

 

https://github.com/mindcruzer/airvpn-cli

 

ex.

~$ 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

Staff

    Advanced Member

  • Staff
  • PipPipPip
  • 7564 posts

Posted 24 November 2013 - 03:51 AM

Hello,

 

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

mindcruzer

    Newbie

  • New 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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Servers online. Online Sessions: 14699 - BW: 47904 Mbit/sYour IP: 54.198.55.167Guest Access.