Auto connect on login (windows 10)

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
tiwas
OpenVpn Newbie
Posts: 5
Joined: Tue Dec 18, 2018 11:51 pm

Auto connect on login (windows 10)

Post by tiwas » Tue Dec 18, 2018 11:54 pm

Is it possible to have openvpn cliet connect upon logging into a computer? I tried searching, but couldn't find anything about it.

blackexpresso
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 19, 2018 10:40 pm

Re: Auto connect on login (windows 10)

Post by blackexpresso » Wed Dec 19, 2018 10:49 pm

Hi,

You can use openvpn as service, it connect automatically.

Just to set the service to run auto and to edit the ovpn with a pass and key, file.

tiwas
OpenVpn Newbie
Posts: 5
Joined: Tue Dec 18, 2018 11:51 pm

Re: Auto connect on login (windows 10)

Post by tiwas » Wed Dec 19, 2018 11:00 pm

blackexpresso wrote:
Wed Dec 19, 2018 10:49 pm
Hi,

You can use openvpn as service, it connect automatically.

Just to set the service to run auto and to edit the ovpn with a pass and key, file.
Thanks! Will look into that in the morning :)

tiwas
OpenVpn Newbie
Posts: 5
Joined: Tue Dec 18, 2018 11:51 pm

Re: Auto connect on login (windows 10)

Post by tiwas » Thu Dec 20, 2018 12:38 am

I might be really thivk, but...

I have a config file which is working fine when started manually. If I start the windows service I get the following:
Thu Dec 20 01:37:07 2018 Initialization Sequence Completed With Errors ( see http://openvpn.net/faq.html#dhcpclientserv )

Any tips?

tiwas
OpenVpn Newbie
Posts: 5
Joined: Tue Dec 18, 2018 11:51 pm

Re: Auto connect on login (windows 10)

Post by tiwas » Thu Dec 20, 2018 12:49 am

Never mind. I got it working, though it's pretty dodgy...

blackexpresso
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 19, 2018 10:40 pm

Re: Auto connect on login (windows 10)

Post by blackexpresso » Thu Dec 20, 2018 11:10 am

Hi,

for remember, enable auto windows openvpn service isn't suffisant .

because, in ovpn file there is an option auth-user-pass. it says to the app, the user want to set him itself into the gui.

For authentification without gui, you need to edit ovpn file (for remember) with a user.auth option and add a user.auth file with credential in the conf folder.

The user.auth file shoud include your id and pass each one on a line.

blackexpresso
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 19, 2018 10:40 pm

Re: Auto connect on login (windows 10)

Post by blackexpresso » Sun Dec 23, 2018 12:09 am

if it can help...other way very interesting

https://www.ovpn.com/en/blog/windows-ru ... r-startup/

Post Reply