Error while setting OpenVPN server on Truenas

filo

Cadet
Joined
Feb 25, 2021
Messages
4
Hello everyone! I state that I have just started using truenas.

I followed this tutorial to install OpenVPN on truenas for my home NAS:
https://www.youtube.com/watch?v=S8I-IiQYVas&feature=youtu.be&ab_channel=SpaceRex

Unfortunately when I try to start the 'OpenVPN' service already pre-installed in truenas I get this error:

Error.PNG


If I try to start the service from the shell I get this error:

shell.PNG


Thanks in advance for the help!
 
Joined
Jan 7, 2015
Messages
1,155
If the above is accurate then you dont have the server conf file in the correct directory. Its erroring out saying it cant read it, but it looks as if its not there. You have a file called server in there. Whats in it? cat /usr/local/etc/openvpn/server
 
Joined
Jan 7, 2015
Messages
1,155
mv /usr/local/etc/openvpn/server/openvpn_server.conf /usr/local/etc/openvpn/openvpn.conf

service openvpn start
 

filo

Cadet
Joined
Feb 25, 2021
Messages
4
I moved and renamed the file to /usr/local/etc/openvpn.
Now in the openvpn folder there is this:
root@TOBIN-NAS[~]#cd /usr/local/etc/openvpn/server
root@TOBIN-NAS[~]#ls
openvpn.conf
 
Joined
Jan 7, 2015
Messages
1,155
Move it up one directory. The conf file is expected in the /usr/local/etc/openvpn directory.

Then try
openvpn /usr/local/etc/openvpn/openvpn.conf
See if it starts and runs.
 
Top