From owner-freebsd-questions@FreeBSD.ORG Sun Jul 23 06:11:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0C2716A4DD for ; Sun, 23 Jul 2006 06:11:32 +0000 (UTC) (envelope-from glists@comcast.net) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.192.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68DB943D53 for ; Sun, 23 Jul 2006 06:11:32 +0000 (GMT) (envelope-from glists@comcast.net) Received: from [172.16.2.5] (c-24-5-139-226.hsd1.ca.comcast.net[24.5.139.226]) by comcast.net (rwcrmhc13) with ESMTP id <20060723061131m1300d8gghe>; Sun, 23 Jul 2006 06:11:31 +0000 From: Serban Giuroiu To: freebsd-questions@freebsd.org Date: Sat, 22 Jul 2006 23:11:31 -0700 User-Agent: KMail/1.9.1 References: <200607220005.54412.glists@comcast.net> <200607221123.11978.glists@comcast.net> <44C2FAB1.8080308@webanoide.org> In-Reply-To: <44C2FAB1.8080308@webanoide.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607222311.31602.glists@comcast.net> Subject: Re: DHCPd Will Not Listen on the Correct Interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gyzmobro@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2006 06:11:32 -0000 On Saturday 22 July 2006 21:27, Mikhail Goriachev wrote: > Instead of PF, you can control serving interfaces from /etc/rc.conf: > > dhcpd_ifaces="fxp0 rl0" Sure, the dhcpd_ifaces variable instructs the rc script to add those interfaces as arguments to dhcpd. However, as I mentioned in the first post, dhcpd ignores those arguments and listens on all interfaces. Currently, I have this in /etc/rc.conf: dhcpd_enable="YES" dhcpd_ifaces="fxp0 rl0" The rc script works correctly. ps shows: /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd -group dhcpd fxp0 rl0 However, netstat shows that dhcpd is listening on all interfaces: # netstat -nat | grep 67 udp4 0 0 *.67 *.* For me, that's no big deal. PF will make sure that no DHCP traffic will go through on the third interface. Cheers, --Serban Giuroiu