help with starting openvpn@.server

This forum is for general conversation and user-user networking.

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

Post Reply
upgrayyed
OpenVpn Newbie
Posts: 11
Joined: Fri Apr 19, 2019 2:53 am

help with starting openvpn@.server

Post by upgrayyed » Sat Apr 20, 2019 8:34 am

i've been working on this for over 3 months this is my first time asking for a hand, i've read all kind off topics, a few short pdfs and I'm skimming through the openvpn cookbook but i always get stuck at the server , i can't get it started, i ran systemctl start openvpn@.server
i get errors unit name openvpn@.service is missing the instance name i've looked into this
and i'm assuming it is because i don't have a key file in the proper place, and this is my question
what files go into what folders on the server side in order to allow the server@service to launch?

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: help with starting openvpn@.server

Post by Pippin » Sat Apr 20, 2019 10:45 am

Try

Code: Select all

systemctl start openvpn-server@port443
where port443 = port443.conf

For client

Code: Select all

systemctl start openvpn-client@port443
Files can go into

Code: Select all

/etc/openvpn/server
and

Code: Select all

/etc/openvpn/client

upgrayyed
OpenVpn Newbie
Posts: 11
Joined: Fri Apr 19, 2019 2:53 am

Re: help with starting openvpn@.server

Post by upgrayyed » Sat Apr 20, 2019 6:30 pm

i'm getting openvpn-server@443.service entered a failed state.
options error: in cmd-line :1 error opening configuration.

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: help with starting openvpn@.server

Post by Pippin » Sat Apr 20, 2019 6:49 pm


upgrayyed
OpenVpn Newbie
Posts: 11
Joined: Fri Apr 19, 2019 2:53 am

Re: help with starting openvpn@.server

Post by upgrayyed » Sat Apr 20, 2019 7:14 pm

where do i find the 443conf file I didn't see one in the examples folder, could i create a file from one of the others? when i find the conf file where then is the proper file path for it?

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: help with starting openvpn@.server

Post by Pippin » Sat Apr 20, 2019 7:44 pm

Ok, I think you need to start here:
https://community.openvpn.net/openvpn/wiki/HOWTO

upgrayyed
OpenVpn Newbie
Posts: 11
Joined: Fri Apr 19, 2019 2:53 am

Re: help with starting openvpn@.server

Post by upgrayyed » Sat Apr 20, 2019 9:16 pm

i'm sorry , i didn't see the last link you had posted, i have the .conf extension , i think i'm confused on what files go in with the conf files
in the /etc/openvpn/client i have client.crt client.key ta.key dhp4096.pem and the client.conf . and in the server folder i have dhp4096.pem ta.key and server.conf.
is this correct?

upgrayyed
OpenVpn Newbie
Posts: 11
Joined: Fri Apr 19, 2019 2:53 am

Re: help with starting openvpn@.server

Post by upgrayyed » Sat Apr 20, 2019 10:37 pm

ok. thanks for the links and help provided.
if any one could could provide me with a link to proper key and file placement the previous link was helpful but for some reason i can't get my mind around it.

upgrayyed
OpenVpn Newbie
Posts: 11
Joined: Fri Apr 19, 2019 2:53 am

Re: help with starting openvpn@.server

Post by upgrayyed » Sun Apr 21, 2019 1:05 am

i also think i am having some routing issues, if anyone could also post a few good links on decent iptables and openvpn.

upgrayyed
OpenVpn Newbie
Posts: 11
Joined: Fri Apr 19, 2019 2:53 am

Re: help with starting openvpn@.server

Post by upgrayyed » Sun Apr 21, 2019 6:56 am

i've taken a look at my logs and it's telling me that openvpn/server/ca.crt no file or directory
openvpn/server/server.crt no such file or directory
cannot stat file /server/server.key no file
options error --key fails with /server/server.key no file .
but i have these files in these directories.

kevlevrone
OpenVpn Newbie
Posts: 2
Joined: Tue Apr 23, 2019 8:42 am

Re: help with starting openvpn@.server

Post by kevlevrone » Mon May 06, 2019 11:34 am

Hi there. Thanks for the useful links. It would be great to have a separate thread with important info so before ask you can go there and have a look probably you will find an answer there.

Post Reply