n8chavez 1 Posted ... 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 Quote Share this post Link to post
Staff 9973 Posted ... 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 Quote Share this post Link to post
Staff 9973 Posted ... 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 Quote Share this post Link to post
n8chavez 1 Posted ... 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 Quote Share this post Link to post
Staff 9973 Posted ... Hello! Your list is just fine, there's only that "alien" 176.61.136.35. Kind regards Quote Share this post Link to post
n8chavez 1 Posted ... 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] Quote Share this post Link to post
Staff 9973 Posted ... 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 Quote Share this post Link to post