OpenVPN as a service not working
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Sun May 16, 2021 2:51 pm
OpenVPN as a service not working
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.
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.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN as a service not working
How about your config file ?
-
- OpenVpn Newbie
- Posts: 5
- Joined: Sun May 16, 2021 2:51 pm
Re: OpenVPN as a service not working
This is my config file
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
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
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN as a service not working
See --auth-user-pass in the manual.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Sun May 16, 2021 2:51 pm
Re: OpenVPN as a service not working
Yes, this is windows and works fine with config folder and manual connection.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Sun May 16, 2021 2:51 pm
Re: OpenVPN as a service not working
Any idea? I need to fix this
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN as a service not working
If you need professional support then you can contact me privately: tincantech at protonmail dot com
-
- OpenVpn Newbie
- Posts: 5
- Joined: Sun May 16, 2021 2:51 pm
Re: OpenVPN as a service not working
No, I only need help with automatically connection, and this doesn´t work.