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.
Error running openvpn service on kali
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: 2
- Joined: Tue May 11, 2021 3:06 am
-
- OpenVPN Power User
- Posts: 156
- Joined: Thu Mar 28, 2013 8:31 am
Re: Error running openvpn service on kali
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
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
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue May 11, 2021 3:06 am
Re: Error running openvpn service on kali
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.
Thank you for your explanation, this is the most useful reply I've got so far.