Page 1 of 1

help with starting openvpn@.server

Posted: Sat Apr 20, 2019 8:34 am
by upgrayyed
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?

Re: help with starting openvpn@.server

Posted: Sat Apr 20, 2019 10:45 am
by Pippin
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

Re: help with starting openvpn@.server

Posted: Sat Apr 20, 2019 6:30 pm
by upgrayyed
i'm getting openvpn-server@443.service entered a failed state.
options error: in cmd-line :1 error opening configuration.

Re: help with starting openvpn@.server

Posted: Sat Apr 20, 2019 6:49 pm
by Pippin

Re: help with starting openvpn@.server

Posted: Sat Apr 20, 2019 7:14 pm
by upgrayyed
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?

Re: help with starting openvpn@.server

Posted: Sat Apr 20, 2019 7:44 pm
by Pippin
Ok, I think you need to start here:
https://community.openvpn.net/openvpn/wiki/HOWTO

Re: help with starting openvpn@.server

Posted: Sat Apr 20, 2019 9:16 pm
by upgrayyed
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?

Re: help with starting openvpn@.server

Posted: Sat Apr 20, 2019 10:37 pm
by upgrayyed
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.

Re: help with starting openvpn@.server

Posted: Sun Apr 21, 2019 1:05 am
by upgrayyed
i also think i am having some routing issues, if anyone could also post a few good links on decent iptables and openvpn.

Re: help with starting openvpn@.server

Posted: Sun Apr 21, 2019 6:56 am
by upgrayyed
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.

Re: help with starting openvpn@.server

Posted: Mon May 06, 2019 11:34 am
by kevlevrone
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.