Responding to auth-fail as client

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
lolex
OpenVPN Power User
Posts: 52
Joined: Sun Jun 05, 2011 7:50 pm

Responding to auth-fail as client

Post by lolex » Fri Sep 13, 2013 10:19 am

Hey everyone,

I am currently at a dead end on how to make my openvpn client chose a new remote server on auth-fail.

I have a list of remotes that i connect randomly to with remote-random but sometimes one of them fails to accept my login.
So depending on how auth-retry is set I either end up in an infinite auth loop even though all other remotes would work perfectly fine or I end up with a fatal error.

I now need a way to restart openvpn automatically on fatal error or to make it chose a new remote if auth fails.

I am not experienced enough to find a solution here.
I am working with openvpn 2.2 on raspberrypi as service on debian.

Post Reply