Error running openvpn service on kali

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
faiviles002
OpenVpn Newbie
Posts: 2
Joined: Tue May 11, 2021 3:06 am

Error running openvpn service on kali

Post by faiviles002 » Tue May 11, 2021 3:20 am

Good afternoon guys.

I'm having a few issues while trying to setup my VPS which is running on VMware on bridged configuration.

Whenever I try to start the openvpn service I get the following error: openvpn@server.service because the control process exited with error code.

I took a look at the logs, and it says that the error lies on the line 238 of the server.config file, this line goes:
#Generate with:
openvpn --genkey tls-auth0

By te way I have followed this guide in order to do the setup:


https://www.digitalocean.com/community/ ... -debian-10

Any help would bemuch appreciated.

Thanks in advance.

chilinux
OpenVPN Power User
Posts: 156
Joined: Thu Mar 28, 2013 8:31 am

Re: Error running openvpn service on kali

Post by chilinux » Tue May 11, 2021 7:20 am

Line 238 appears to be intended to be used as part of a shell script and is not a valid server.config line.

The fact it didn't complain about the lines before 238 seems to indicate you have a server.config that is an mix of confguration lines and shell script lines. You will have to carefully remove all shell script lines which have been accidently pasted into the server.config to proceed.

Also, please note, the guide you following is based around running OpenVPN Community Edition as packaged by Debian.

This is not the same thing as OpenVPN Access Server which can be found here:
https://openvpn.net/vpn-software-packages/

Unlike the community edition, with Access Server the configuration steps you are going through are done through a web portal.

If Access Server isn't the right solution for you, then you might want to consider using Debian's own documentation as a starting point as found here:
https://wiki.debian.org/OpenVPN

faiviles002
OpenVpn Newbie
Posts: 2
Joined: Tue May 11, 2021 3:06 am

Re: Error running openvpn service on kali

Post by faiviles002 » Tue May 11, 2021 3:46 pm

Thank you so much for your reply, actually I´m new to this whole thing, been trying to google this error for days to no avail lol

Thank you for your explanation, this is the most useful reply I've got so far.

Post Reply