Installing DHCPD in a jail

balanga

Patron
Joined
Jul 10, 2014
Messages
271
I'm trying to install a dhcp server in a jail, and am confused as to where to keep the conf file....

Where do I need to set ?

dhcpd_enable="YES"

Is it /etc/rc.conf or $JAIL/etc.conf ?

After installing isc-dhcp a msg is displayed:-

**** WARNING: never edit the chrooted or jailed dhcpd.conf file but
/usr/local/etc/dhcpd.conf instead which is always copied where
needed upon startup.

I can figure out how to start dhcp.... I know I need to run

service isc-dhcpd status

but is this from a FreeNAS shell or from with the jail where dhcpd is installed
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You need to be doing all of this inside the DHCP jail you created. Don't try to add any of this to the base FreeNAS system.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
When configuring jail functions, everything should be contained within the jail.

Why would you run any commands intended for your jail within your host?
 

balanga

Patron
Joined
Jul 10, 2014
Messages
271
When configuring jail functions, everything should be contained within the jail.

Why would you run any commands intended for your jail within your host?

OK, but can you explain why this msg is displayed?

**** WARNING: never edit the chrooted or jailed dhcpd.conf file but
/usr/local/etc/dhcpd.conf instead which is always copied where
needed upon startup.

Very confusing...

Also, what should be the value of dhcpd_ifaces? Is it the same as that used by the host? In my case em0
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
OK, but can you explain why this msg is displayed?

**** WARNING: never edit the chrooted or jailed dhcpd.conf file but
/usr/local/etc/dhcpd.conf instead which is always copied where
needed upon startup.

Very confusing...

Also, what should be the value of dhcpd_ifaces? Is it the same as that used by the host? In my case em0
I don't really know what tutorial you are following, but things WITHIN the jail are seen as their own server/instance.

Are you familiar with how a VM works?
 

balanga

Patron
Joined
Jul 10, 2014
Messages
271
I don't really know what tutorial you are following, but things WITHIN the jail are seen as their own server/instance.

I wasn't following a tutorial, merely reporting what was displayed after installing isc-dhcp-server.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
I wasn't following a tutorial, merely reporting what was displayed after installing isc-dhcp-server.
When you are in a jail, the components within the jail don't know they are in a jail. They think they are their own system.
 

PaulP

Cadet
Joined
Apr 5, 2019
Messages
7
Hi. I just did the same install. It's at the end of the package as a message. It should be corrected upstream at ports. It is incorrect and misleading.
 
Top