OpenVPN error message while starting service

Status
Not open for further replies.

THX

Dabbler
Joined
Dec 6, 2013
Messages
28
Maybe I get more responses if I put this in english too.
I really need your help here.

I followed the Guide of Joe Paetzel ( http://joepaetzel.wordpress.com/2013/09/22/openvpn-on-freenas-9-1/ ). Everything was fine until I started the VPN server.
I got the error message:

Tue Nov 12 11:09:53 2013 cd to ‘/usr/local/etc/openvpn’ failed: No such file or
directory (errno=2)
Tue Nov 12 11:09:53 2013 Exiting due to fatal error
/usr/local/etc/rc.d/openvpn: WARNING: failed to start openvpn

I read in the comments and found that I need to change the file “/conf/base/etc/local/rc.d/openvpn”. I'm not shure if I did the right thing.
But after that I get another error message.

[root@freenas] ~# service openvpn start
Starting openvpn.
eval: /mnt/nas1/openvpn: Permission denied

I checked the permission but can't find which file needs a change.
Maybe I did something else wrong but cant figure out what it is.
 

THX

Dabbler
Joined
Dec 6, 2013
Messages
28
Unfortunately not. I read that before and searched a lot on the internet.
I also made a post on the wordpress articel itself. But didnt get any answers yet.
 

DeliveryGuy

Dabbler
Joined
Dec 6, 2011
Messages
35
Hi there THX, sorry you were having issues. I missed your question on my blog. Hopefully you have already fixed this. If not...

In your /etc/rc.conf file, do you have:
openvpn_configfile=”/mnt/Files/openvpn/openvpn.conf”
openvpn_dir=”/mnt/Files/openvpn”

You will want to change the path to match your setup. Having that set correctly should fix the no such directory error.

As for permissions. The directory the config is in can be set to 755. The actual openvpn.conf file will work if set to 440. Owner on the config file should be root.
 
Status
Not open for further replies.
Top