OpenVPN Auto Login?

All about WTware on Raspberry. WTware works with Raspberry Pi 4, Raspberry Pi 3B+, Pi 3 and Pi 2 devices
http://www.winterminal.com
Post Reply
Bootalito
Posts: 2
Joined: Fri May 03, 2019 2:31 am

OpenVPN Auto Login?

Post by Bootalito » Fri May 03, 2019 2:33 am

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?

aka
SUPPORT
SUPPORT
Posts: 687
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: OpenVPN Auto Login?

Post by aka » Fri May 03, 2019 12:59 pm

http://wtware.com/docs5/openvpn.html

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

Bootalito
Posts: 2
Joined: Fri May 03, 2019 2:31 am

Re: OpenVPN Auto Login?

Post by Bootalito » Sat May 04, 2019 4:02 am

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

aka
SUPPORT
SUPPORT
Posts: 687
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: OpenVPN Auto Login?

Post by aka » Sat May 04, 2019 11:49 am

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

Post Reply