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: 5
Joined: Fri May 03, 2019 2:31 am

OpenVPN Auto Login?

Post 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?

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

Re: OpenVPN Auto Login?

Post by aka »

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

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

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

Re: OpenVPN Auto Login?

Post 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

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

Re: OpenVPN Auto Login?

Post 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

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

Re: OpenVPN Auto Login?

Post by Bootalito »

It's been a while, but I just wanted to respond to help other people out in the future that aka's solution was the final solution

Code: Select all

auth-user-pass /bootmedia/configs/pass.txt
with pass.txt being a two line text file with the OpenVPN auth user name on the first line and the password on the second line.

i.e.

Code: Select all

OpenVPNUserName
SomeComplexPassword
I can confirm that WTWare 5.8.50/Rpi is working very well providing remote access for our office manager connecting to a pfsense router (v2.4.4-RELEASE-p3) via OpenVPN configured in the most secure way humanly possible (4096bit DH paramter, AES-256-GCM, only available in the most recent version of OpenVPN, using mode: "SSL/TLS + User Auth" with TLS key mode "TLS Encryption and Authentication". The raspberry pi is mounted to the back of a monitor via a VESA mount.

If the devs would like, I could provide a full write up with screen shots and pictures that they could use to update the documentation (especially the OpenVPN documentation page, which is really lacking) on how to provide a fully secure remote access station for an employee. Please let me know if this is something WTWare would find useful and I'll make some time to provide

akatik
SUPPORT
SUPPORT
Posts: 449
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: OpenVPN Auto Login?

Post by akatik »

Bootalito wrote:
Fri Jan 17, 2020 2:31 am
If the devs would like, I could provide a full write up with screen shots and pictures that they could use to update the documentation (especially the OpenVPN documentation page, which is really lacking) on how to provide a fully secure remote access station for an employee. Please let me know if this is something WTWare would find useful and I'll make some time to provide
It would be very great, we'll appreciate such work. Thank you.

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

Re: OpenVPN Auto Login?

Post by Bootalito »

I created a tutorial on how to create a remote access station for a small business. I targeted the language for other small dental offices such as ours, so it may need some heavy tweaking if you decide to integrate the content into your online documentation. But I give you full permission to use the content.

OpenDocument Text file (sorry I use Libreoffice...it should only be a little mangled if opened in Word):
https://drive.google.com/open?id=1SFuLO ... ggXR-w5hfP

pdf format
https://drive.google.com/open?id=15ETUS ... 6sq0HZiwAq

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

Re: OpenVPN Auto Login?

Post by aka »

Bootalito wrote:
Thu Feb 13, 2020 6:39 am
pdf format
https://drive.google.com/open?id=15ETUS ... 6sq0HZiwAq
Unable to download it. Something wrong with sharing permission.

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

Re: OpenVPN Auto Login?

Post by Bootalito »

I think its fixed now.

Post Reply