Jump to content
Not connected, Your IP: 18.206.187.81
benfitita

Custom random server config generator

Recommended Posts

Posted ... (edited)

`remote-random` config generator allows you to have one .ovpn profile that can connect to a random server in one/multiple countries. This way you can choose closest/fastest countries/locations without selecting whole big country or continent. You can select one/multiple countries/locations, max bandwidth 100/1000, entry IP version 4/6 and option 1-4.
Latest version: https://ellie-app.com/8jfYjngsLk3a1

Changelog:
2020-03-14
Parse bw_max server info field as an integer

2019-07-13
Add server location selector (usually it’s a city)
Terminate `remote` lines with a semicolon
Add a comment with server country, location and name

2019-01-15
First release

Original post:
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.

Edited ... by benfitita
Put link to the generator in the first post, so it's easier to find and avoid confusion over which version is the latest

Share this post


Link to post

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.

Share this post


Link to post

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.


» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post

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

Share this post


Link to post
Posted ... (edited)

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

» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post
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.
 

 

Share this post


Link to post

 

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


» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post

Sorry but when I follow that link, I get nothing but the Ellie logo.
No config generator or anything else.

Share this post


Link to post

Does anyone know if this type of confit would work with the OpenVPN ability in the Merlin ASUSWRT? As would like to use different hosts, but setting it to the country one for the UK recently, always end up on Naos which seem to have packet issues with when on it, so have had to specify a specific host to get around it.

Share this post


Link to post

Yes, it should work just fine.

I’m not familiar with Merlin OpenVPN UI. If you are uploading an .ovpn file, just edit it and replace line starting with `remote` with a list of remotes from this tool. However if it isn’t possible to upload .ovpn, then usually there’s a field for custom options. Copy paste the server list with `remote-random` at the end.

There’s no way to exclude specific servers at this point, so you’ll have to delete it manually. Look for the server name in the comments and delete the following `remote` line.

Share this post


Link to post

Thanks, I managed to get it working, added the entries to an ovpn file and uploading it did seem to confuse the actual UI and didn't work. However it has a field to add custom configuration entries, so pasting the relevant entries in there and applying it worked, and it is picking random servers from testing. 

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