Page 1 of 1

OpenVPN Auto Login?

Posted: Fri May 03, 2019 2:33 am
by Bootalito
Is there a way to configure OpenVPN with the credentials for automatic login so the user does not have to enter them? Such as use the configuration file?

Re: OpenVPN Auto Login?

Posted: Fri May 03, 2019 12:59 pm
by aka
http://wtware.com/docs5/openvpn.html

"Rename tested configuration file to openvpn.cfg and place it to configs directory on boot disk..."

Re: OpenVPN Auto Login?

Posted: Sat May 04, 2019 4:02 am
by Bootalito
I think I figured it out but something is still wrong. In the OpenVPN.cfg file I added the following line:

auth-user-pass pass.txt

auth-user-pass was already there, I just added " pass.txt". I added a file called pass.txt with the username and password on two different lines, but I'm getting a WTWare error:

ERROR: INTERNAL ERROR
WTWare 5.8.50/RPi
File: initrdConfig.cpp
Line 439

Re: OpenVPN Auto Login?

Posted: Sat May 04, 2019 11:49 am
by aka
initrdConfig.cpp Line 439 is "openvpn did not understand your config and did not start".

More details in log: https://wtware.com/logs.html

Also try this line:

Code: Select all

auth-user-pass /bootmedia/configs/pass.txt