isc-dhcp3-server in a jail?

David N davidn04 at gmail.com
Tue Jun 5 02:42:05 UTC 2007


On 05/06/07, Paul Fraser <pfraser at gmail.com> wrote:
> On 6/4/07, Nico -telmich- Schottelius
> <nico-freebsd-questions at schottelius.org> wrote:
> > What's the IP-number in your jail and what's it outside?
> >
> > I am not sure, whether broadcasts are delivered to the jails or not.
> >
> > Nico
>
> Hi Nico,
>
> The IP assigned to the host system is 192.168.72.250, with an alias
> for 192.168.72.251. The jail is configured with the IP 192.168.72.251.
>
> --
> Regards,
>
> Paul Fraser
> http://furyc0de.net/
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
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.

modify the configuration accordingly though =)


More information about the freebsd-questions mailing list