Jump to content
Not connected, Your IP: 54.234.227.202
mblue

Add server status to API output

Recommended Posts

What is the feasibility of adding the server's status (online, offline, imminent withdrawal, etc.) as a new Attribute name in an XML formatted API call?  This would be very helpful for those of us wishing to rank servers and then select one for connection via openvpn.  Thank you.

 

Edited ... by mblue

Share this post


Link to post

For generalization, a status data field could display all kinds of status messages - online status and current issues.


Four simple things:
There's a guide to AirVPN. Before you ask questions, take 30 minutes of your time to go through it.

Amazon IPs are not dangerous here. It's the fallback DNS.
Running TOR exits is discouraged. They're subject to restrictions on the internet and harm all AirVPN users.

Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, you'll be unique among the mass again.

 

XMPP: gigan3rd@xmpp.airvpn.org or join our lounge@conference.xmpp.airvpn.org

Share this post


Link to post

For generalization, a status data field could display all kinds of status messages - online status and current issues.

 

Good idea.  I edited my original post to be more general in this request.

Share this post


Link to post

And please contact Staff about this, too, via support ticket for example.


Four simple things:
There's a guide to AirVPN. Before you ask questions, take 30 minutes of your time to go through it.

Amazon IPs are not dangerous here. It's the fallback DNS.
Running TOR exits is discouraged. They're subject to restrictions on the internet and harm all AirVPN users.

Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, you'll be unique among the mass again.

 

XMPP: gigan3rd@xmpp.airvpn.org or join our lounge@conference.xmpp.airvpn.org

Share this post


Link to post

And please contact Staff about this, too, via support ticket for example.

 

Done (request #33079), thanks for push

Share this post


Link to post

Hello!

 

Health status, reason, and entry IP added. Look at the bottom of the answer to the faq: https://airvpn.org/faq/api/

Any feedback improvement is greatly appreciated.

@mblue: We understand you fetch our API with a custom script and generate OVPN config files.
Maybe it can be interesting for our community if you explain your needs or reasons. Maybe we can improve our API or our config generator.

 

Thanks.

 

Kind regards

Share this post


Link to post

@staff - Thank you, the new data are very nice.  My thought was to have a script select the best server (best = lowest bandwidth in the country of my choosing) and then update /etc/openvpn/air.conf with that IP address before connecting.  Is this a good strategy to insure good speeds and responsiveness?

 

The main part of the script just fetches and produces a list based on the bandwidth value.  Again, is there a better way to do this?

 

Note to readers - the server loads and status, etc. are dynamic so this query would need to be repeated once every time you want to connect I would think so you can simply make the script run by your init system when you start your openvpn.

 

$ wget -q -O /tmp/airpull.xml "https://airvpn.org/api/?format=xml&key=MYKEY&service=status"
$ xml sel -t -m '//servers[@country_code="ca" and @bw_max=1000 and @health="ok"]' \
-v @bw -o " " -v @ip_entry -o " "  -v @public_name -n /tmp/airpull.xml  | sort -n
88 104.254.90.250 Gorgonea
90 199.19.94.19 Spica
127 199.19.94.132 Rana
...

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