Jump to content


Photo
- - - - -

Config Generator: allow to choose countries with remote-random


  • Please log in to reply
7 replies to this topic

#1 0.07305880509955043xP

0.07305880509955043xP

    Newbie

  • Members2
  • Pip
  • 8 posts

Posted 05 December 2018 - 07:57 PM

As a user, when I want to switch countries often and I'm located in Europe, isn't often good enough to just choose Europe in Config Generator, because most of the time it resolves to Swedish servers which are often slow due to routing issues. It'd be useful if users could pick countries one by one into a single .ovpn profile with `remote-random` directive. This way first OpenVPN randomly chooses one of the countries and then AirVPN DNS returns the best server from that country. It's similar to how plain Europe works, only that we get to choose which countries we want.



#2 zhang888

zhang888

    Donald Trump of IT/Security

  • Moderators
  • 2227 posts

Posted 05 December 2018 - 09:58 PM

Already possible for quite some time.

Make sure to tick the "Advanced Mode" checkbox, select the countries you wish, and add "remote-random" in the "Custom directives:" section.


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.


#3 0.07305880509955043xP

0.07305880509955043xP

    Newbie

  • Members2
  • Pip
  • 8 posts

Posted 20 December 2018 - 05:38 PM

I think we might misunderstood each other a bit. While I agree it's possible to include `remote-random` in generated .ovpn files, it doesn't seem possible to get one file with multiple `remote` entries. I've tried your suggestion, but if I select multiple countries and put `remote-random` in "Custom directives", then I'm still getting a separate .ovpn file for each country.

 

My ideal usage scenario would be this:

1. Select not-yet-existing option "Merge all servers into one config file"

2. Choose some planets/continents/countries/servers. For example Netherlands, Belgium and
Grus (Bulgarian server).

3. Receive a config file with

# ...
remote nl3.vpn.airdns.org 443
remote be3.vpn.airdns.org 443
remote 82.102.23.141 443 # it's a server, so it's always resolved
remote-random
# ...

 

It'd be nice if selecting "Resolved hosts in .ovpn file" in case of selected region would include all servers from a region. Currently it takes one random server only.



#4 giganerd

giganerd

    I shall have no title

  • Members2
  • PipPipPip
  • 2688 posts
  • LocationGermany

Posted 09 January 2019 - 10:02 PM

It'd be nice if selecting "Resolved hosts in .ovpn file" in case of selected region would include all servers from a region. Currently it takes one random server only.

 

Do this yourself with

nslookup/dig/host nl.all.vpn.airdns.org

and replace nl with the country code of your choice. Put them into remote directives, one at a time, finalize with remote-random.

 

There was an option to make it more automatic but when AirVPN launched its 129th server and when someone generated a config with all servers OpenVPN would tell that it could only handle 128 remote directives with remote-random. Something I really don't like is that instead of implementing a simple comparison mechanism which would avoid generating 128 remote directives if it's about to happen... the feature got removed entirely. The coward's way out. I'm still mad, by the way.


Always remember:
There's a guide to AirVPN,

Amazon IPs are not dangerous here,
running TOR exits is discouraged,

using spoilers for your logs helps us read your thread.

~ Furthermore, I propose that your paranoia is to be destroyed. ~

Instead of writing me a personal mail, consider contacting me via XMPP at gigan3rd@xmpp.airvpn.org or join the lounge@conference.xmpp.airvpn.org. I might read the mail too late whereas I'm always available on XMPP ;)


#5 Nietes

Nietes

    Member

  • Members2
  • PipPip
  • 26 posts

Posted 09 January 2019 - 10:43 PM

I think we might misunderstood each other a bit. While I agree it's possible to include `remote-random` in generated .ovpn files, it doesn't seem possible to get one file with multiple `remote` entries. I've tried your suggestion, but if I select multiple countries and put `remote-random` in "Custom directives", then I'm still getting a separate .ovpn file for each country.

 

My ideal usage scenario would be this:

1. Select not-yet-existing option "Merge all servers into one config file"

2. Choose some planets/continents/countries/servers. For example Netherlands, Belgium and
Grus (Bulgarian server).

3. Receive a config file with

 

# ...
remote nl3.vpn.airdns.org 443
remote be3.vpn.airdns.org 443
remote 82.102.23.141 443 # it's a server, so it's always resolved
remote-random
# ...

 

It'd be nice if selecting "Resolved hosts in .ovpn file" in case of selected region would include all servers from a region. Currently it takes one random server only.

If you are successful, you want to show your * .ovpn, I want to switch countries NL and Belgium. I understand nothing of "nslookup / dig / host nl.all.vpn.airdns.org" from giganerd



#6 giganerd

giganerd

    I shall have no title

  • Members2
  • PipPipPip
  • 2688 posts
  • LocationGermany

Posted 10 January 2019 - 06:47 AM

It's something you enter into a terminal/command prompt, depending on your OS.
 

For NL, you can paste the following into your .ovpn:

remote-random
remote 109.202.107.9 443
remote 213.152.161.34 443
remote 213.152.161.73 443
remote 213.152.162.4 443
remote 213.152.161.164 443
remote 213.152.161.100 443
remote 213.152.161.84 443
remote 213.152.162.180 443
remote 213.152.161.39 443
remote 213.152.162.14 443
remote 213.152.162.98 443
remote 213.152.162.148 443
remote 213.152.161.238 443
remote 213.152.161.29 443
remote 213.152.161.148 443
remote 213.152.161.132 443
remote 213.152.162.164 443
remote 109.232.227.132 443
remote 109.232.227.148 443
remote 213.152.161.68 443
remote 213.152.161.233 443
remote 213.152.162.68 443
remote 213.152.161.218 443
remote 213.152.161.137 443
remote 109.232.227.137 443
remote 213.152.162.113 443
remote 213.152.162.103 443
remote 213.152.161.116 443
remote 213.152.161.24 443
remote 213.152.161.248 443
remote 213.152.162.93 443
remote 213.152.161.210 443
remote 109.202.107.146 443
remote 213.152.162.78 443
remote 213.152.162.169 443
remote 213.152.162.9 443
remote 213.152.162.108 443
remote 213.152.161.14 443
remote 213.152.161.19 443
remote 213.152.161.4 443
remote 213.152.162.153 443
remote 213.152.161.180 443
remote 109.202.107.14 443
remote 213.152.162.73 443
remote 109.202.107.19 443
remote 109.202.103.169 443
remote 213.152.161.228 443
remote 213.152.180.4 443
remote 109.202.107.4 443
remote 213.152.161.169 443
remote 213.152.162.88 443
remote 213.152.161.243 443
remote 213.152.162.83 443
remote 213.152.161.9 443

This is for BE:

remote 194.187.251.114 443
remote 91.207.57.114 443
remote 194.187.251.90 443
remote 194.187.251.154 443
remote 194.187.251.162 443

Edited by giganerd, 10 January 2019 - 08:08 PM.

Always remember:
There's a guide to AirVPN,

Amazon IPs are not dangerous here,
running TOR exits is discouraged,

using spoilers for your logs helps us read your thread.

~ Furthermore, I propose that your paranoia is to be destroyed. ~

Instead of writing me a personal mail, consider contacting me via XMPP at gigan3rd@xmpp.airvpn.org or join the lounge@conference.xmpp.airvpn.org. I might read the mail too late whereas I'm always available on XMPP ;)


#7 0.07305880509955043xP

0.07305880509955043xP

    Newbie

  • Members2
  • Pip
  • 8 posts

Posted 15 January 2019 - 06:20 PM

Interesting story. It seems the current `remote` limit is 64, at least on FreeBSD/pfSense with OpenVPN 2.4.6.
 
I've made a tool to generate appropriate remote config. Feel free to comment and send suggestions. All code runs in your browser and server list is downloaded from AirVPN status API. It does store your selected options in localStorage.
 

 



#8 giganerd

giganerd

    I shall have no title

  • Members2
  • PipPipPip
  • 2688 posts
  • LocationGermany

Posted 15 January 2019 - 06:56 PM

Interesting story. It seems the current `remote` limit is 64, at least on FreeBSD/pfSense with OpenVPN 2.4.6.

 

That's interesting.. thank you for the info.

 

I've made a tool to generate appropriate remote config. Feel free to comment and send suggestions. All code runs in your browser and server list is downloaded from AirVPN status API. It does store your selected options in localStorage.

 

Wow. This works very well! Extremely handy thing. Not sure if a simple thanks will cut it as this is something I'm dearly missing in the config generator.

 

Well, it works on Chromium and I think on a standard Firefox/Waterfox installation but it does not in my normal Waterfox profile which has addons and custom about:config entries. I suspect it's them breaking something, just like they broke sites like Xing for me. On compile I only get "null".


Always remember:
There's a guide to AirVPN,

Amazon IPs are not dangerous here,
running TOR exits is discouraged,

using spoilers for your logs helps us read your thread.

~ Furthermore, I propose that your paranoia is to be destroyed. ~

Instead of writing me a personal mail, consider contacting me via XMPP at gigan3rd@xmpp.airvpn.org or join the lounge@conference.xmpp.airvpn.org. I might read the mail too late whereas I'm always available on XMPP ;)






Similar Topics Collapse

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Servers online. Online Sessions: 15464 - BW: 60436 Mbit/sYour IP: 52.201.27.211Guest Access.