From owner-freebsd-jail@FreeBSD.ORG Sat Nov 1 23:19:21 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F15801065673 for ; Sat, 1 Nov 2008 23:19:21 +0000 (UTC) (envelope-from christer.edwards@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by mx1.freebsd.org (Postfix) with ESMTP id BD86D8FC14 for ; Sat, 1 Nov 2008 23:19:21 +0000 (UTC) (envelope-from christer.edwards@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1864149wfg.7 for ; Sat, 01 Nov 2008 16:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=g29CcDsglqgoqZk/PNB1TXGXwcVyNaV+guQuxxW2ZmY=; b=V6Cnz47jIXYNGh8syMo1El8W8/03pKNlXR22oIz73LdqcBLAnJkXo8zNr8wWUrN6yY kDcNyUs0A6V83vwMO/S1b4wvLGEKR4y1pIRZ0FZi5w77HE0/vWtXzeajyYoq02RB5wB5 toU5dwjlADrUYiSe8kQ5hgYCvrrVwSmIP9LBI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=HhXezB91oA2O3nBcljdR3CxjrCsheGESY1xUtvQR8oPEqgg6z9u0vE4U8Zli69ZdLl 2b8G9Ro8oXdia4HjVWyaANOA8IEXGU2oStlgKB0q0GUmQTsrQjuD2/eQmUvYS9akHUdz gq6uGP0uaiopSwdVmWgNe9x73GqUvryjFEUrk= Received: by 10.142.200.20 with SMTP id x20mr6293213wff.259.1225581561441; Sat, 01 Nov 2008 16:19:21 -0700 (PDT) Received: from parkman.zelut.org (kuyaedz.dsl.xmission.com [166.70.56.51]) by mx.google.com with ESMTPS id 30sm10187997wfd.1.2008.11.01.16.19.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 Nov 2008 16:19:20 -0700 (PDT) Date: Sat, 1 Nov 2008 17:18:03 -0600 From: Christer Edwards To: "Bjoern A. Zeeb" Message-ID: <20081101231803.GA1764@parkman.zelut.org> References: <20081101155205.GD90953@parkman.zelut.org> <20081101200710.V41609@maildrop.int.zabbadoz.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20081101200710.V41609@maildrop.int.zabbadoz.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-jail@freebsd.org Subject: Re: dhcpd possible within jail? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2008 23:19:22 -0000 --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--