SOLVED Missing "/conf/base/etc" in jail?

Naesstrom

Contributor
Joined
Jul 10, 2012
Messages
108
Moving from transmission to qbit since I want it to unrar the files and never got that working. QB is all set up and working fine but when I try to install OVPN I've run into some problem.
One of the commands are
Code:
echo 'openvpn_enable="YES"' >> /etc/rc.conf && echo 'openvpn_enable="YES"' >> /conf/base/etc/rc.conf

but everytime I try to run that I get /conf/base/etc/rc.conf: No such file or directory. since I don't have the /conf/base/etc/ directory. Have I screwed something up when creating the jail or am I just being stupid and missing something?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
This directory should not be there and you should not write anything in that place. Who told you to do that?

/conf is a directory used in diskless and/or NanoBSD installations and not in regular FreeBSD like inside a jail.
 

Naesstrom

Contributor
Joined
Jul 10, 2012
Messages
108
This directory should not be there and you should not write anything in that place. Who told you to do that?

/conf is a directory used in diskless and/or NanoBSD installations and not in regular FreeBSD like inside a jail.

Their guide to install it on freenas have one step that looks like:
Code:
echo 'openvpn_enable="YES"' >> /etc/rc.conf && echo 'openvpn_enable="YES"' >> /conf/base/etc/rc.conf
echo 'openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"' >> /etc/rc.conf && echo 'openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"' >> /conf/base/etc/rc.conf


Well that explains why it failed atleast, tried doing the setup but skipping that part but it wont start so I have contacted them again!
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Their guide to install it on freenas have one step that looks like:
Whose guide?

Don't skip the entire step. Just do the first part only:
Code:
echo 'openvpn_enable="YES"' >> /etc/rc.conf
echo 'openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"' >> /etc/rc.conf


HTH,
Patrick
 

Naesstrom

Contributor
Joined
Jul 10, 2012
Messages
108
Whose guide?
Ah sorry, ovpn.se where I'm subscribed, their full guide is here https://www.ovpn.com/en/guides/freenas

Don't skip the entire step. Just do the first part only:
Code:
echo 'openvpn_enable="YES"' >> /etc/rc.conf
echo 'openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"' >> /etc/rc.conf


HTH,
Patrick

Yeah sorry, I was just unclear, i skipped each command that referenced to /conf/etc/ and did the rest!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You could always forget about the location and use sysrc to worry about it for you...

sysrc openvpn_enable="YES"
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Ah sorry, ovpn.se where I'm subscribed, their full guide is here https://www.ovpn.com/en/guides/freenas
Outdated. Clearly they are referring to FreeNAS 8 or similar because they don't use iocage but jls and jexec.

As a general rule of thumb, if you want to install software X in a FreeNAS/TrueNAS jail, look for FreeBSD instructions:
 

Naesstrom

Contributor
Joined
Jul 10, 2012
Messages
108
Thanks, followed that guide and atleast managed to get it installed but get a fatal error when starting it?
Code:
2021-04-08 15:19:08 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=epair0b HWADDR=02:ff:60:5d:88:80
2021-04-08 15:19:08 Cannot allocate TUN/TAP dev dynamically
2021-04-08 15:19:08 Exiting due to fatal error
root@qbit:/ 


tun is enabled in the jail settings and I even compared all the other settings to my transmission jail where openvpn is working so don't think it's something I missed there
 
Joined
Jul 2, 2019
Messages
648

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
tun is enabled in the jail settings and I even compared all the other settings to my transmission jail where openvpn is working so don't think it's something I missed there
Tun can be a bit picky with device node creation in the jail - I had to reboot the NAS once to whack the devfs or something into shape. From that point on it worked.
 
Joined
Jul 2, 2019
Messages
648
Lordy - ye olde computational axiom: When in doubt, reboot! :wink:
 
Top