From owner-freebsd-questions@FreeBSD.ORG Sun Nov 1 11:50:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E1C8106566B for ; Sun, 1 Nov 2009 11:50:18 +0000 (UTC) (envelope-from laszlo_danielisz@yahoo.com) Received: from web30804.mail.mud.yahoo.com (web30804.mail.mud.yahoo.com [68.142.200.147]) by mx1.freebsd.org (Postfix) with SMTP id 0628C8FC20 for ; Sun, 1 Nov 2009 11:50:17 +0000 (UTC) Received: (qmail 83812 invoked by uid 60001); 1 Nov 2009 11:50:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1257076217; bh=/30/7OV3WChpSe43olXpQN0OF3XWt4W1rbpWquM5Ckk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Mgxr27P3atuH4GVYVQJbqnLEhr+j7J65EsqzallVdJL6PwpJdq+SuNTOWojJDukyKiqF3RtVFGkcwCk7Viv/O9cOyrrYBAGFcz4zGgvqqYWw/6A3VczqVGALhsZYe4wWpyS7NwRHLwo/kaZ6HzAC1CR0dB0UIUmntXYI8oqAweI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=GbYQRvjt+BhHiOxeOQw5cYEL5KLuEBvBDE1fTcPn2HAV5NLr9G3eN7bykrbKjomHyDwrF4u7v70gN/zYGSd9S+N9VRP/YcIBKzyAcBFjdewImD68iTyizcVq5sUThvX5xDICStEHYj7x+invygYDP7UOzDO21Pk5IoWnTV7lphg=; Message-ID: <362244.82968.qm@web30804.mail.mud.yahoo.com> X-YMail-OSG: V6KHRrsVM1lJh6jkxV_fK9CiF.7si5unxSXLrBhgWGVq3M4f1ZexyeCe_ZwLSiHVVW3tHany.ip1qHZKOfCy.YUSE7xEMVELqBcubyfic0x1DOBsohgc_c2xLrfbWzzUS1lpZu9JPGuYDvrbBRurkkZHhIMKoiiWiuoIq0FRHKmu.QiJsWf9BLPALgmEtP0S5.uxPL3EIPAcnRRkAoZtRVdzckQoutien.OJ_6UivCYHf8EUhxySrO_5i76qaPVi8lZpFDd.IEGOGf9OINLq4P3PaoNg2xVCe0299eNqAYw5T13U930DgSGw5kF8sq50D5nuZf16eQnrJG4nRK.pmmRZD4pz7xFXnuNwe55bnDiikVrNsOUiRXE9qyOSzszTcmpfQ6z3cBQQ8WsMx4OoyQ.fHtcOQ2KTUkzLE5C_.aOdSk70oZgojSNovbwx3U_BrHG85VgvN0Yj2QjsRUySyQ-- Received: from [78.131.57.57] by web30804.mail.mud.yahoo.com via HTTP; Sun, 01 Nov 2009 03:50:17 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.7.361.4 References: <82804.79685.qm@web30804.mail.mud.yahoo.com> <516971.12872.qm@web30807.mail.mud.yahoo.com> <806321.83601.qm@web30807.mail.mud.yahoo.com> Date: Sun, 1 Nov 2009 03:50:17 -0800 (PST) From: =?iso-8859-1?Q?D=E1nielisz_L=E1szl=F3?= To: =?iso-8859-1?Q?Trond_Endrest=F8l?= In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: dhcpd related issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2009 11:50:18 -0000 The output of:=0A# ifconfig rl1=0Arl1: flags=3D8943 metric 0 mtu 1500=0A options=3D8=0A = ether 00:13:8f:86:2f:64=0A inet 192.168.1.1 netmask 0xffffff00 broadca= st 192.168.1.255=0A media: Ethernet autoselect (100baseTX )= =0A status: active=0A=0AAnd:=0A# netstat -rnf inet=0ARouting tables=0A= =0AInternet:=0ADestination Gateway Flags Refs Use= Netif Expire=0Adefault UGS 0 1= 16905 tun0=0A link#4 UHS 0 = 0 lo0=0A link#6 UHS 0 = 0 tun0=0A127.0.0.1 link#4 UH 0 327 = lo0=0A192.168.1.0/24 link#2 U 1 99038 rl1= =0A192.168.1.1 link#4 UHS 0 0 lo0=0A= =0A=0AI'm usinf FreeBSD 8.0, right now I try to figure out how to check if = bpf is comipled in the generic kernel; just to mention:=0A# /usr/local/etc/= rc.d/isc-dhcpd status=0Adhcpd is running as pid 3716.=0A=0A=0A_____________= ___________________=0AFrom: Trond Endrest=F8l =0ATo: D=E1nielisz L=E1szl=F3 =0ACc: fr= eebsd-questions@freebsd.org=0ASent: Sun, November 1, 2009 12:30:52 PM=0ASub= ject: Re: dhcpd related issue=0A=0A-----BEGIN PGP SIGNED MESSAGE-----=0AHas= h: SHA1=0A=0AOn Sun, 1 Nov 2009 02:06-0800, D=E1nielisz L=E1szl=F3 wrote:= =0A=0A> I had one more idea: try nmap on my dhcp server, and port 67 does = =0A> not seems to be opened, after I tried telneting in and my connection = =0A> was refused:=0A> =0A> $ telnet 192.168.1.1 67=0A> Trying 192.168.1.1..= .=0A> telnet: connect to address 192.168.1.1: Connection refused=0A> telnet= : Unable to connect to remote host=0A=0ADHCP uses UDP, telnet uses TCP, no = wonder you're getting refused.=0A=0ADo you have bpf (Berkeley packet filter= ) compiled in the kernel?=0Adhcpd relies on bpf. Just a thought, although d= hcpd would probably =0Ashut down if bpf is unavailable.=0A=0AAs others have= suggested, please post the output from ifconfig rl1, =0Aand from netstat -= rnf inet.=0A=0A> Than I disabled pf=0A> # pfctl -d=0A> No ALTQ support in k= ernel=0A> ALTQ related functions disabled=0A> pf disabled=0A=0AJust another= (silly) thought, does your pf setup allow UDP from =0A192.168.1.1:67 to *:= 68 over the rl1 interface?=0A=0A> Than I checked telnet/nmap again but stil= l don't found any 67 port =0A> ever there. I checked again that the dhcpd i= s running, and its up:=0A>=0A> # ps ax|grep dhcp=0A> 958 ?? Is 0:00= .00 /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/d= hcpd.lease=0A> =0A> Any idea?=0A=0ADid you restart dhcpd?=0AWhat's the outp= ut from fstat with respect to dhcpd?=0A=0AThe output should be something re= sembling:=0A=0Adhcpd dhcpd 18990 root / 2 drwxr-xr-x = 1024 r=0Adhcpd dhcpd 18990 wd / 6 drwxr-xr-x 102= 4 r=0Adhcpd dhcpd 18990 text /usr 10505569 -rwxr-xr-x 595924 = r=0Adhcpd dhcpd 18990 0 /dev 14 crw-rw-rw- null rw= =0Adhcpd dhcpd 18990 1 /dev 14 crw-rw-rw- null rw=0Ad= hcpd dhcpd 18990 2 /dev 14 crw-rw-rw- null rw=0Adhcpd= dhcpd 18990 3* local dgram c32224b4 <-> c32228bc=0Adhcpd dhc= pd 18990 4* internet raw icmp c32d8b2c=0Adhcpd dhcpd 18990 = 5* internet dgram udp c3173974=0Adhcpd dhcpd 18990 6 /var = 70999 -rw-r--r-- 93335 w=0Adhcpd dhcpd 18990 7 /dev = 7 crw------- bpf rw=0A=0AIf you happen to have lsof installed, it sho= uld yield something like =0Athis:=0A=0Adhcpd 18990 1 dhcpd cwd V= DIR 0,98 1024 6 /root=0Adhcpd 18990 1 dhcpd rtd= VDIR 0,98 1024 2 /=0Adhcpd 18990 1 dhcpd txt= VREG 0,106 595924 10505569 /usr/local/sbin/dhcpd=0Adhcpd 18= 990 1 dhcpd txt VREG 0,98 220136 26684 /libexec/ld-elf.= so.1=0Adhcpd 18990 1 dhcpd txt VREG 0,98 1143792 13= 27 /lib/libc.so.7=0Adhcpd 18990 1 dhcpd 0u VCHR 0,14 = 0t0 14 /dev/null=0Adhcpd 18990 1 dhcpd 1u VCHR 0= ,14 0t0 14 /dev/null=0Adhcpd 18990 1 dhcpd 2u VCHR= 0,14 0t0 14 /dev/null=0Adhcpd 18990 1 dhcpd = 3u unix 0xc31719a8 0t0 ->0xc3171b44 (QR=3D0 QS=3D0 SO=3DPQ= LEN=3D0,QLEN=3D0,QLIM=3D0,RCVBUF=3D32768,SNDBUF=3D16384 SS=3DISCONNECTED)= =0Adhcpd 18990 1 dhcpd 4u IPv4 0xc32d8b2c 0t0 ICMP *= :* (QR=3D0 QS=3D0 SO=3DPQLEN=3D0,QLEN=3D0,QLIM=3D0,RCVBUF=3D73728,SNDBUF=3D= 73728)=0Adhcpd 18990 1 dhcpd 5u IPv4 0xc3175060 0t0 = UDP *:bootps (QR=3D0 QS=3D0 SO=3DPQLEN=3D0,QLEN=3D0,QLIM=3D0,RCVBUF=3D2621= 44,REUSEADDR,SNDBUF=3D73728)=0Adhcpd 18990 1 dhcpd 6w VREG = 0,104 94061 70999 /var (/dev/ufs/var)=0Adhcpd 18990 1 dhcp= d 7u VCHR 0,7 0t26744985 7 /dev/bpf=0A=0A=0AHTH,=0ATrond.= =0A=0A> ________________________________=0A> From: D=E1nielisz L=E1szl=F3 <= laszlo_danielisz@yahoo.com>=0A> To: patrick =0A> Cc:= freebsd-questions@freebsd.org=0A> Sent: Sun, November 1, 2009 8:34:03 AM= =0A> Subject: Re: dhcpd related issue=0A> =0A> It's the same, I still don't= got any IP address.=0A> =0A> =0A> =0A> =0A> ______________________________= __=0A> From: patrick =0A> To: D=E1nielisz L=E1szl=F3= =0A> Cc: freebsd-questions@freebsd.org=0A> Sen= t: Sun, November 1, 2009 6:38:31 AM=0A> Subject: Re: dhcpd related issue=0A= > =0A> What happens if you disable pf temporarily?=0A> =0A> 2009/10/31 D=E1= nielisz L=E1szl=F3 :=0A> > Hello,=0A> >=0A> > I= just configured my dhcpd but it gives no IP-s.=0A> > What had I done until= now:=0A> >=0A> > 1. Installed isc-dhcp via ports=0A> >=0A> > 2. edited th= e /usr/local/etc/dhcpd.conf=0A> >=0A> > option domain-name "bsd";=0A> > opt= ion domain-name-servers ;=0A> > option subnet-mask 255.25= 5.255.0;=0A> > authoritative;=0A> >=0A> > default-lease-time 3600;=0A> > ma= x-lease-time 86400;=0A> > ddns-update-style none;=0A> >=0A> > subnet 192.16= 8.1.0 netmask 255.255.255.0 {=0A> > range 192.168.1.129 192.168.1.250;=0A> = > option routers 192.168.1.1;=0A> > }=0A> >=0A> > 3. Added the following on= es to /etc/rc.conf=0A> > ifconfig_rl1=3D"inet 192.168.1.1 netmask 255.255.= 255.0"=0A> > dhcpd_enable=3D"YES"=0A> > dhcpd_conf=3D"/usr/local/etc/dhcpd.= conf"=0A> > dhcpd_ifaces=3D"rl1"=0A> >=0A> >=0A> > 4. Opened the adequate p= ort in pf=0A> > pass in log on rl1 inet proto tcp from 192.168.1.0/24 to 19= 2.168.1.1 port =3D bootps flags S/SA keep state=0A> > pass in log on rl1 in= et proto udp from 192.168.1.0/24 to 192.168.1.1 port =3D bootps keep state= =0A> >=0A> > 5.. When I start de daemon:=0A> > # /usr/local/etc/rc.d/isc-dh= cpd start=0A> > Starting dhcpd.=0A> > Internet Systems Consortium DHCP Serv= er V3.0.7=0A> > Copyright 2004-2008 Internet Systems Consortium.=0A> > All = rights reserved.=0A> > For info, please visit http://www.isc.org/sw/dhcp/= =0A> > Wrote 0 leases to leases file.=0A> > Listening on Socket/rl1/192.168= .1/24=0A> > Sending on Socket/rl1/192.168.1/24=0A> >=0A> > Everythings lo= oks to be ok there but on the client (I tried OS-X and Nokia symbian) I can= not obtain the IP address, do you have any idea what should I check?=0A> >= =0A> >=0A> > Thanks!=0A> > Laci=0A=0A- -- =0A- ----------------------------= ------------------------------------------=0ATrond Endrest=F8l = | Trond.Endrestol@fagskolen.gjovik.no=0AACM, NAS, NUUG, SAGE, USENIX = | FreeBSD 7.2-STABLE & Alpine 2.00=0A-----BEGIN PGP SIGNATURE-----=0A= Version: GnuPG v2.0.12 (FreeBSD)=0A=0AiEYEARECAAYFAkrtcXsACgkQbYWZalUoElvP0= gCeLU+/YYnZ07hy2K5atOeN35kj=0Ayk4Ani+Ip66CWpzIzp8986tIu9Ya172n=0A=3DksU6=0A= -----END PGP SIGNATURE-----=0A=0A=0A