Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Nov 2008 17:18:03 -0600
From:      Christer Edwards <christer.edwards@gmail.com>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: dhcpd possible within jail?
Message-ID:  <20081101231803.GA1764@parkman.zelut.org>
In-Reply-To: <20081101200710.V41609@maildrop.int.zabbadoz.net>
References:  <20081101155205.GD90953@parkman.zelut.org> <20081101200710.V41609@maildrop.int.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 01, 2008 at 08:13:46PM +0000, Bjoern A. Zeeb wrote:
> try adding something like this to your /etc/devfs.rules
>=20
> [devfsrules_jail_dhcp=3D5]
> add include $devfsrules_hide_all
> add include $devfsrules_unhide_basic
> add include $devfsrules_unhide_login
> add path 'bpf*' unhide
> add path net unhide
> add path 'net/*' unhide

I've added the above lines and the devices now are listed in
/usr/jail/jailname/dev/.  I get the same output in the logs with or
without the devfs changes..=20

Nov  1 17:07:40 molly dhcpd: Wrote 0 deleted host decls to leases file.
Nov  1 17:07:40 molly dhcpd: Wrote 0 new dynamic host decls to leases
file.
Nov  1 17:07:40 molly dhcpd: Wrote 0 leases to leases file.

the dhcpd.leases file is updated when the daemon is restarted but,
again, asking another client to request an address goes ignored.

I'm beginning to wonder if its related to my network configuration
rather than my jail configuration.

DSL modem > netgear wireless AP/switch (dhcp disabled) > netgear=20
gigabit switch > clients.

> imho, you do not need to allow raw sockets.

With raw sockets turned off it looks like dhcpd is not able to send the
icmp echo request to verify the requested address is available..
(dhcpd.conf(5))

Christer

--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iQEcBAEBAgAGBQJJDOOpAAoJEJfgcHkNCE4Txi0IAI7akXnSWRMl87wIsu/rhCNj
vx7tNenu5fjJ7RYahrOirzBRa4/0pj8/TuDNHMRKR1+RgwnJUcV+HG70LG5nM8Ef
ONCb2DQxNTobsXTocUYf1HDG9vAuiH0wAWZEfLfQ+m4MqZAgOrOyiMMJIliJZK6w
ImJldRyTltjH5VL4QAwmXm72cXBEA+nD/5KcjfZ2XCghHsICA0/iVrtX8R/UaOWQ
njFZfpI5e+WEy7AwvAUM26z6D+/G7S28+WH91+1s+vAYVY+Y3GdB2BMYzqsoZhpP
2fJN4TIYjy+lNoihzuJ2ad5bO7dTExkzQ/GdRVdzPoLPzGTsegKtmLxpqZhxNLY=
=CXsw
-----END PGP SIGNATURE-----

--YiEDa0DAkWCtVeE4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081101231803.GA1764>