isc-dhcp3-server in a jail?

Paul Fraser pfraser at gmail.com
Tue Jun 5 05:00:36 UTC 2007


On 6/5/07, David N <davidn04 at gmail.com> wrote:
> To get isc-dhcpd in a jail you need to give the jail access to /dev/bpf0
>
> so you have to edit /etc/defaults/devfs.rules
> add to the end the unhide rules for bpf eg.
> [devfsrules_unhide_bpf=5]
> add path bpf0 unhide
>
> [devfsrules_dhcp_jail=6]
> add include $devfsrules_hide_all
> add include $devfsrules_unhide_basic
> add include $devfsrules_unhide_login
> add include $devfsrules_unhide_bpf
>
> then in your /etc/rc.conf add
> jail_<jailname>_defs_ruleset="devfsrules_dhcp_jail"
>
> and restart the jail.

Thank you very much David, that's done the trick! I much prefer having
dhcpd sitting in a jail along with a few other network services.

Cheers,

P.

-- 
Regards,

Paul Fraser
http://furyc0de.net/


More information about the freebsd-questions mailing list