Jump to content
Not connected, Your IP: 3.139.235.177
Sign in to follow this  
n8chavez

Random Server

Recommended Posts

Would the below ovpn file be a good example of an OpenVPN configuration that allow the user to connect to a random server? If not, what should I improve about it? Thanks.

-----start

client

dev tun

proto udp

# Server List

#United Kingdom

remote 31.193.12.74 443

remote 31.193.12.98 443

#Germany

remote 46.165.208.65 443

remote 89.149.226.185 443

#Switzerland

remote 176.61.136.35 443

remote 108.59.11.194 443

remote 108.59.8.147 443

remote 69.163.36.66 443

#Netherlands

remote 95.211.169.3 443

remote 85.17.123.26 443

remote 95.211.191.33 443

remote 62.212.85.65 443

remote 95.211.98.154 443

remote-random

resolv-retry infinite

nobind

ca "ca.crt"

cert "user.crt"

key "user.key"

ns-cert-type server

cipher AES-256-CBC

comp-lzo

verb 3

explicit-exit-notify 5

-----end

Share this post


Link to post

Hello!

No, in this case OpenVPN would always contact server lists in progressive order, connecting to the next one only if the previous is unavailable. You need to add the directive "remote-random" on top of the servers "remote" list to achieve your purpose.

Kind regards

Share this post


Link to post

Hello!

Sorry, the remote-random directive was already included.

Please note that the servers you comment as in "Switzerland" are actually in the USA and server 176.61.136.35 is not an Air server.

Kind regards

Share this post


Link to post

Thanks for that. The odd thing is that I took the IPs right from the ovpn files. Could you please list the server IPs so I can correct my random ovpn?

Thanks.

n8

Share this post


Link to post

Ok. Is this better. I've added a few lines that are supposed to get it to auto-reconnect after my system wakes up.

client

dev tun

proto udp

remote-random

resolv-retry infinite

nobind

persist-key

#persist-tun

ca "ca.crt"

cert "user.crt"

key "user.key"

ns-cert-type server

cipher AES-256-CBC

comp-lzo

verb 3

explicit-exit-notify 5

# Server List

#Switzerland

remote 92.42.186.167 443

#Germany

remote 46.165.208.65 443

remote 89.149.226.185 443

#Sweden

remote 178.248.30.131 443

#Netherlands

remote 95.211.169.3 443

remote 85.17.123.26 443

remote 95.211.191.33 443

remote 62.212.85.65 443

remote 95.211.98.154 443

[\quote]

Share this post


Link to post

Ok. Is this better. I've added a few lines that are supposed to get it to auto-reconnect after my system wakes up.

Hello!

It looks just fine!

Kind regards

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
Sign in to follow this  

×
×
  • Create New...