OpenVPN as a service not working

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cristianm
OpenVpn Newbie
Posts: 5
Joined: Sun May 16, 2021 2:51 pm

OpenVPN as a service not working

Post by cristianm » Sun May 16, 2021 3:43 pm

Hi.

I try to run OpenVPN as a service. I have a client connection working fine with GUI, but when I move this to config-auto and restart the OpenVPNService, this don´t connect.

Logs of service shows:

2021-05-16 12:22:42 OpenVPN 2.5.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 21 2021
2021-05-16 12:22:42 Windows version 10.0 (Windows 10 or greater) 64bit
2021-05-16 12:22:42 library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10


Same config with normal GUI works fine. Any idea? The service start but don´t start to try connecting.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN as a service not working

Post by TinCanTech » Sun May 16, 2021 5:15 pm

How about your config file ?

cristianm
OpenVpn Newbie
Posts: 5
Joined: Sun May 16, 2021 2:51 pm

Re: OpenVPN as a service not working

Post by cristianm » Wed May 19, 2021 1:06 am

This is my config file

client.ovpn

client
dev tun
proto tcp-client
remote xxxxxxx
port 1194
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
ca ca.crt
cert client.crt
key client.key
verb 3
cipher AES-256-CBC
data-ciphers AES-256-CBC
auth SHA1
auth-user-pass secret
auth-nocache
auth-retry nointeract
keepalive 10 120
resolv-retry infinite

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN as a service not working

Post by TinCanTech » Wed May 19, 2021 1:08 am

See --auth-user-pass in the manual.

cristianm
OpenVpn Newbie
Posts: 5
Joined: Sun May 16, 2021 2:51 pm

Re: OpenVPN as a service not working

Post by cristianm » Wed May 19, 2021 10:39 am

Yes, this is windows and works fine with config folder and manual connection.

cristianm
OpenVpn Newbie
Posts: 5
Joined: Sun May 16, 2021 2:51 pm

Re: OpenVPN as a service not working

Post by cristianm » Fri May 21, 2021 2:26 am

Any idea? I need to fix this

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN as a service not working

Post by TinCanTech » Fri May 21, 2021 12:07 pm

If you need professional support then you can contact me privately: tincantech at protonmail dot com

cristianm
OpenVpn Newbie
Posts: 5
Joined: Sun May 16, 2021 2:51 pm

Re: OpenVPN as a service not working

Post by cristianm » Tue Jun 01, 2021 3:11 am

No, I only need help with automatically connection, and this doesn´t work.

Post Reply