From owner-freebsd-net Sun Nov 24 21:24:12 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E399137B401; Sun, 24 Nov 2002 21:24:10 -0800 (PST) Received: from hotmail.com (f51.law15.hotmail.com [64.4.23.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5D2043E3B; Sun, 24 Nov 2002 21:24:10 -0800 (PST) (envelope-from soheil_hh@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 24 Nov 2002 21:24:10 -0800 Received: from 81.31.160.37 by lw15fd.law15.hotmail.msn.com with HTTP; Mon, 25 Nov 2002 05:24:10 GMT X-Originating-IP: [81.31.160.37] From: "soheil soheil" To: freebsd-net@freebsd.org Cc: questions@freebsd.org Subject: Error on installing FreeBSD 4.4 on Dell Inspiron 2650 ( 2.0 GHz ) Date: Mon, 25 Nov 2002 05:24:10 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Nov 2002 05:24:10.0534 (UTC) FILETIME=[E24E7460:01C29442] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi I bought a laptop ( Dell Inspiron 2650 ) and want to install 4.4BSD on it . but when it is going to be installed after it ask for configuration when the kernel is going to probe the devices and write the devices on the screen , it says that pci0 (vendor=8086 .... ) IRQ ... pci0 (vendor=8086 .... ) IRQ ... pci0 (vendor=8086 .... ) IRQ ... and then it hanged up and never going to continue What can i do ??????????? I really love the FreeBSD ;) Thanx _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 24 22:38: 7 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEA1437B401; Sun, 24 Nov 2002 22:38:05 -0800 (PST) Received: from venus.chartpilot.ru (ns.chartpilot.ru [195.131.40.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3464043E9C; Sun, 24 Nov 2002 22:38:04 -0800 (PST) (envelope-from A.Nepomnyaschih@chartpilot.ru) Received: from dimetra (dimetra.chartpilot.ru [195.131.40.7]) by venus.chartpilot.ru (8.12.6/8.12.6) with ESMTP id gAP6c1PI058972; Mon, 25 Nov 2002 09:38:02 +0300 (MSK) (envelope-from A.Nepomnyaschih@chartpilot.ru) From: "Andrey Nepomnyaschih" To: "'soheil soheil'" , Cc: Subject: RE: Error on installing FreeBSD 4.4 on Dell Inspiron 2650 ( 2.0 GHz ) Date: Mon, 25 Nov 2002 09:38:01 +0300 Message-ID: <003c01c2944d$33d8bcf0$072883c3@dimetra> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Soheil, Try to disable PNP OS within BIOS settings. Have a good time, Andrey -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of soheil soheil Sent: Monday, November 25, 2002 8:24 AM To: freebsd-net@FreeBSD.ORG Cc: questions@FreeBSD.ORG Subject: Error on installing FreeBSD 4.4 on Dell Inspiron 2650 ( 2.0 GHz ) Hi I bought a laptop ( Dell Inspiron 2650 ) and want to install 4.4BSD on it . but when it is going to be installed after it ask for configuration when the kernel is going to probe the devices and write the devices on the screen , it says that pci0 (vendor=8086 .... ) IRQ ... pci0 (vendor=8086 .... ) IRQ ... pci0 (vendor=8086 .... ) IRQ ... and then it hanged up and never going to continue What can i do ??????????? I really love the FreeBSD ;) Thanx _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 24 22:52:12 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1D0A37B401 for ; Sun, 24 Nov 2002 22:52:11 -0800 (PST) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46D2543EA3 for ; Sun, 24 Nov 2002 22:52:11 -0800 (PST) (envelope-from jdd@greatschools.net) Received: from cube (m198-158.dsl.rawbw.com [198.144.198.158]) by mail0.rawbw.com (8.11.3/8.11.3) with ESMTP id gAP6q4X84463; Sun, 24 Nov 2002 22:52:05 -0800 (PST) (envelope-from jdd@greatschools.net) Date: Sun, 24 Nov 2002 22:52:24 -0800 (PST) From: John David Duncan X-X-Sender: jdd@cube To: freebsd-net@freebsd.org Cc: Thomas Gielfeldt Subject: Re: MPD + Win2K + broadcast Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I just found this thread in the archives... > assigned to the client is on the same subnet as the LAN, but broadcast > data is not sent through the tunnel? Proxy-Arp is enabled. I also > would like to tunnel ipx through. can mpd do this? What I've seen (from "tcpdump -i ng0") is that broadcast packets are sent through the tunnel, but generally nobody receives them. However, there is at least a way to get a local daemon to see the broadcasts, using the loopback device... Supposing your mpd segment is x.y.z.0/24, this should work: ifconfig lo0 add x.y.z.4 netmask 0xffffff00 # a unicast addr ifconfig lo0 add x.y.z.255 netmask 0xffffff00 # the broadcast addr Now a daemon listening on x.y.z.4 should get the broadcasts. I've got the Samba nmbd running this way. - JD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 24 23: 9:32 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1246B37B404; Sun, 24 Nov 2002 23:09:31 -0800 (PST) Received: from hotmail.com (f69.law15.hotmail.com [64.4.23.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3576C43E91; Sun, 24 Nov 2002 23:09:29 -0800 (PST) (envelope-from soheil_hh@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 24 Nov 2002 23:09:29 -0800 Received: from 81.31.160.37 by lw15fd.law15.hotmail.msn.com with HTTP; Mon, 25 Nov 2002 07:09:28 GMT X-Originating-IP: [81.31.160.37] From: "soheil soheil" To: A.Nepomnyaschih@chartpilot.ru Cc: freebsd-net@freebsd.org Subject: RE: Error on installing FreeBSD 4.4 on Dell Inspiron 2650 ( 2.0 GHz ) Date: Mon, 25 Nov 2002 07:09:28 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Nov 2002 07:09:29.0112 (UTC) FILETIME=[9878F180:01C29451] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi By the way , It found the atapci0 device atapci0 : ....... at ata0 and pci0 then it founds the ata0 and found the device type and then it cannot found the pci0 pci0 (vendor=8086 .... ) IRQ ... pci0 (vendor=8086 .... ) IRQ ... pci0 (vendor=8086 .... ) IRQ ... it hanges up while to start the installation it never goes to the install menu .... By the way , again!!! , i cannot found pnp os on the bios Andrey! :0( i will try that again . I think this is just for the device probing ( for hdd ) it is not probing for the os .... . and it is for the insatllation perparing time not for the time of running SOS ;) Please help me THANX _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 25 1:26:15 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3AE137B401 for ; Mon, 25 Nov 2002 01:26:12 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id 459BA43E91 for ; Mon, 25 Nov 2002 01:26:09 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 58789 invoked by uid 1000); 25 Nov 2002 09:26:02 -0000 Date: Mon, 25 Nov 2002 11:26:01 +0200 From: Peter Pentchev To: soheil soheil Cc: freebsd-net@freebsd.org Subject: Re: Packet Capturing on GWs but don't let them go out. Message-ID: <20021125092601.GJ381@straylight.oblivion.bg> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="924gEkU1VlJlwnwX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --924gEkU1VlJlwnwX Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 22, 2002 at 07:24:54PM +0000, soheil soheil wrote: > Hi > I want to do packet capturing but as you know the pcap let the packet go= =20 > out and just put a copy on the buffer . > I just want to do a copy and don't let them go out . > just i want that all of the packet from the sockets that are created by m= e=20 > travels through my server >=20 > Packet ----- /* i don't want it to be forwarded */ |------> out > |----> buffer ---> my process --------send-- >=20 > I want to do a transparent third party traffic There are two ways I can think of to do what you want: either use ipfw's 'divert' capability to, well, divert all incoming packets to a specially crafted socket and have a userland program examine them, modify them, and send them back out if necessary, much as natd(8) does it, or write a kernel module using the netgraph(4) interface to capture packets coming in on a network interface, analyze them, modify them, and, if necessary, reinject them. I personally would do it the Netgraph way, using a setup much like the one in the ng_ether(4) example section, but substituting my own module in place of the ng_tee node, so it does not unconditionally pass the packets, but analyze them first. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 =2Esiht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI --924gEkU1VlJlwnwX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE94eyp7Ri2jRYZRVMRAipzAJ9o/8fpyx4YsW4GauU6xA5WVrEZ1QCgudBX 07iXe+UpjEgCY8442y72uOQ= =k+pN -----END PGP SIGNATURE----- --924gEkU1VlJlwnwX-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 25 6: 7:57 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDB2A37B401 for ; Mon, 25 Nov 2002 06:07:56 -0800 (PST) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 8DA7A43EC2 for ; Mon, 25 Nov 2002 06:07:53 -0800 (PST) (envelope-from misho@interbgc.com) Received: (qmail 38339 invoked by alias); 25 Nov 2002 14:07:31 -0000 Message-ID: <20021125140731.38338.qmail@ns1.interbgc.com> From: Mihail Balikov To: freebsd-net@freebsd.org X-Priority: 3 Subject: ip_input.c => sockaddr_in ipaddr Date: Mon, 25 Nov 2002 16:07:30 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, In -stable ip_input.c is defined global "sockaddr_in ipaddr", but this is variable is used only in ip_dooptions(), is it correct? ip_input.c:271 static struct sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET }; regards, Mihail To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 25 6:18:48 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B837737B401 for ; Mon, 25 Nov 2002 06:18:47 -0800 (PST) Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88BBB43EB2 for ; Mon, 25 Nov 2002 06:18:46 -0800 (PST) (envelope-from maxim@FreeBSD.org) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.6/8.11.6) with ESMTP id gAPEIZS4940487; Mon, 25 Nov 2002 17:18:36 +0300 (MSK) Date: Mon, 25 Nov 2002 17:18:35 +0300 (MSK) From: Maxim Konovalov To: Mihail Balikov Cc: freebsd-net@FreeBSD.org Subject: Re: ip_input.c => sockaddr_in ipaddr In-Reply-To: <20021125140731.38338.qmail@ns1.interbgc.com> Message-ID: <20021125171503.B53942-100000@news1.macomnet.ru> References: <20021125140731.38338.qmail@ns1.interbgc.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 17:07+0300, Nov 25, 2002, Mihail Balikov wrote: > > Hello, > In -stable ip_input.c is defined global "sockaddr_in ipaddr", but this is > variable is used only in ip_dooptions(), is it correct? It was moved to ip_dooptions() in rev. 1.203 ip_input.c in -current. Ask Luigi Rizzo about MFC. -- Maxim Konovalov, maxim@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 25 17:36:54 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACA9137B401 for ; Mon, 25 Nov 2002 17:36:53 -0800 (PST) Received: from epita.fr (hermes.epita.fr [163.5.255.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C30443E4A for ; Mon, 25 Nov 2002 17:36:52 -0800 (PST) (envelope-from le-hen_j@epita.fr) Received: from annelo (annelo [10.42.120.68]) by epita.fr id gAQ1al711419 for freebsd-net@freebsd.org EPITA Paris France Tue, 26 Nov 2002 02:36:47 +0100 (MET) Date: Tue, 26 Nov 2002 02:36:46 +0100 From: jeremie le-hen To: freebsd-net@freebsd.org Subject: 802.1x Message-ID: <20021126013646.GC16629@annelo.epita.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I'm currently working on a transparent gateway running FreeBSD, which must provide two major features: * transparent border gateway between an IPv6 and an IPv4 network (using NAT-PT, described in RFC 2766) * network authentication (using IEEE 802.1x) NAT-PT is currently implemented in the KAME IPv6 stack, as an experimental feature, but it seems to work fine. *BSD currently integrate the KAME stack, but experimental features are only parts of the KAME snapshots. However, I fight with 802.1x under FreeBSD. I know Pekka Nikander worked on an 802.1x implementation under FreeBSD (see [1]), but I wasn't able to make it work with a FreeRadius server. Would anyone tell me some more about it ? Maybe another 802.1x implementation, or some tricks... Thanks a lot in advance. -- Jeremie aka T{ata,t}Z le-hen_j@epita.fr [1] http://www.tml.hut.fi/~pnr/presentations/Freenix2002-slides.pdf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 25 20:28:42 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB8FA37B401 for ; Mon, 25 Nov 2002 20:28:40 -0800 (PST) Received: from tamu-relay.tamu.edu (smtp-relay-2.tamu.edu [128.194.103.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ED9D43EF2 for ; Mon, 25 Nov 2002 20:28:40 -0800 (PST) (envelope-from daved@nostrum.com) Received: from nostrum.com (dyna-4097.vpn.tamu.edu [172.16.48.1]) by tamu-relay.tamu.edu (8.12.6/8.12.6) with ESMTP id gAQ4SKLe058164; Mon, 25 Nov 2002 22:28:21 -0600 (CST) Date: Mon, 25 Nov 2002 22:28:20 -0600 Subject: Re: 802.1x Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v548) Cc: freebsd-net@FreeBSD.ORG To: jeremie le-hen From: David J Duchscher In-Reply-To: <20021126013646.GC16629@annelo.epita.fr> Message-Id: <7DF84E04-00F7-11D7-8734-0003930B3DA4@nostrum.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.548) Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org An option that was very recently pointed out to me: http://www.open1x.org/ I have yet to play with it (lack of time). The readme does say that BSD support is not yet complete so I don't know how much help this is to you. DaveD On Monday, November 25, 2002, at 07:36 PM, jeremie le-hen wrote: > Hi, > > I'm currently working on a transparent gateway running FreeBSD, which > must > provide two major features: > * transparent border gateway between an IPv6 and an IPv4 network > (using > NAT-PT, described in RFC 2766) > * network authentication (using IEEE 802.1x) > > NAT-PT is currently implemented in the KAME IPv6 stack, as an > experimental > feature, but it seems to work fine. *BSD currently integrate the KAME > stack, > but experimental features are only parts of the KAME snapshots. > > However, I fight with 802.1x under FreeBSD. I know Pekka Nikander > worked on an > 802.1x implementation under FreeBSD (see [1]), but I wasn't able to > make it > work with a FreeRadius server. > > Would anyone tell me some more about it ? Maybe another 802.1x > implementation, > or some tricks... > > Thanks a lot in advance. > > -- > Jeremie aka T{ata,t}Z > le-hen_j@epita.fr > > > [1] http://www.tml.hut.fi/~pnr/presentations/Freenix2002-slides.pdf > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > DaveD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 25 22:34:55 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D72E37B406 for ; Mon, 25 Nov 2002 22:34:54 -0800 (PST) Received: from bob.no (fb173248.ot.FreeBit.NE.JP [61.203.173.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29AC543EC5 for ; Mon, 25 Nov 2002 22:34:45 -0800 (PST) (envelope-from cmail9999jp@yahoo.co.jp) Received: from C ([192.168.0.2]) by bob (8.9.3+3.2W/3.7W) with SMTP id PAA13379; Tue, 26 Nov 2002 15:36:40 +0900 Message-Id: <200211260636.PAA13379@bob> From: =?iso-2022-jp?B?Y21haWw5OTk5?= To: =?iso-2022-jp?B?YzAz?=@bob.FreeBSD.ORG Reply-To: cmail9999jp@yahoo.co.jp Date: Tue, 26 Nov 2002 15:34:33 +0900 Subject: =?iso-2022-jp?B?GyRCTCQ+NUJ6OS05cCIoRUU7UiVhITwlazktOXAbKEo=?= Content-Type: text/plain Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org <送信者> 電子メール広告社 今後、広告をご希望しない方はここへ (必ず本文にあなたのメールアドレスのみをお書き下さい) me463886@members.interq.or.jp メールアドレスをご記入してください。 〒104-0061 東京都中央区銀座8-19-3 第2ウイングビル 3F メールマガジン発行 TEL 03-3544-6222 FAX 03-3544-6218 =============================================================== 問題商品ばかり集めましたので、消される恐れがありますので お申込みはお早めに! ================================================================= ☆―――☆―――☆―――☆―――☆―――☆―――☆―――☆―――☆ 裏ビデオ販売・ロリビデオ・特殊ダッチワイフ・SMクラブ    AV男優募集・援助交際・SEXフレンド・アダルトグッズなど ★ アダルト関連の情報満載 ★ ===================   お申込み・ご注文・商品詳細等は       下記URLをクリックしてご覧下さい。 =================== ↓    ↓    ↓     http://changeboy.kir.jp/ ☆―――☆―――☆―――☆―――☆―――☆―――☆―――☆―――☆         開運グッズ・極秘情報誌     防犯グッズ・金儲け情報・ダイエット食品など          ★ その他情報満載 ★ ===================   お申込み・ご注文・商品詳細等は       下記URLをクリックしてご覧下さい。 =================== ↓    ↓    ↓  http://changeboy.kir.jp/index2.html ☆―――☆―――☆―――☆―――☆―――☆―――☆―――☆―――☆ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 26 1:37:53 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBC5037B401 for ; Tue, 26 Nov 2002 01:37:51 -0800 (PST) Received: from n97.nomadiclab.com (teldanex.hiit.fi [212.68.5.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CA0343EA9 for ; Tue, 26 Nov 2002 01:37:50 -0800 (PST) (envelope-from Pekka.Nikander@nomadiclab.com) Received: from nomadiclab.com (n100.nomadiclab.com [131.160.193.100]) by n97.nomadiclab.com (Postfix) with ESMTP id DDC431C; Tue, 26 Nov 2002 11:44:41 +0200 (EET) Message-ID: <3DE340E5.1000903@nomadiclab.com> Date: Tue, 26 Nov 2002 11:37:41 +0200 From: Pekka Nikander User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.3a) Gecko/20021120 X-Accept-Language: en-us, en MIME-Version: 1.0 To: jeremie le-hen Cc: freebsd-net@freebsd.org Subject: Re: 802.1x References: <20021126013646.GC16629@annelo.epita.fr> In-Reply-To: <20021126013646.GC16629@annelo.epita.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org jeremie le-hen wrote: > However, I fight with 802.1x under FreeBSD. I know Pekka Nikander worked on an > 802.1x implementation under FreeBSD (see [1]), but I wasn't able to make it > work with a FreeRadius server. My 802.1x implementation is still lacking quite a lot, especially at the user space side. The kernel level stuff is mostly complete. The biggest missing pieces at the kernel side are support for multiple clients in a shared Ethernet, and SMP support so that the code could be included in 5.0-current. On the user level side, there is no support for Radius or Diameter, or for any other EAP protocols but OPIE. OTOH, it should be very easy to write new user level modules, especially client side modules. If I remember correctly, I had some changes in mind for the server side user level library, but I don't remember exactly what. The TODO should tell you something. Having said that, I do intend to continue the work, but just haven't had time. If there is interest, I'd more than happy to help other folks in continuing with the code. (Having a baby at the house keeps me very effectively from having too much spare time, and my job responsibilities have drifted away from FreeBSD.) If you want to start working, don't hesitate sending me e-mail, either CC:ing to the list or privately. Reading the Usenix paper (available on my web pages) probably helps understanding the structure of the code. --Pekka To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 26 5:14:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E9A237B404 for ; Tue, 26 Nov 2002 05:14:48 -0800 (PST) Received: from smtp.completel.fr (smtp.completel.fr [213.244.0.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C7F243E4A for ; Tue, 26 Nov 2002 05:14:37 -0800 (PST) (envelope-from fabien.thomas@netasq.com) Received: from netasq.com (unknown [213.30.137.178]) by smtp.completel.fr (Postfix) with ESMTP id AA66D179D83 for ; Tue, 26 Nov 2002 14:14:25 +0100 (CET) Received: from netasq.com by completel.fr (8.10.1/8.10.1) with ESMTP id gAQDEx223726 for ; Tue, 26 Nov 2002 14:14:59 +0100 (CET) Date: Tue, 26 Nov 2002 14:13:59 +0100 From: Fabien THOMAS X-Mailer: The Bat! (v1.61) Business Organization: NETASQ X-Priority: 3 (Normal) Message-ID: <127338536921.20021126141359@netasq.com> To: freebsd-net@freebsd.org Subject: bpf_tap problem with PKTHDR MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="----------F117315228876ED6" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a cryptographically signed message in MIME format. ------------F117315228876ED6 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, It seems there is a problem in the bpf_mtap code: Actually the code assume in the seesent case that mbuf will have a pkthdr structure. There is 2 problems here: + they did not check for that with (m_flag & M_PKTHDR) + at the upper level the caller forge fake mbuf that did not contain any pkthdr and did not initialize the m_flags field what do you think about that ? if_ethersubr.c case: /* Check for a BPF tap */ if (ifp->if_bpf != NULL) { struct m_hdr mh; /* This kludge is OK; BPF treats the "mbuf" as read-only */ mh.mh_next = m; mh.mh_data = (char *)eh; mh.mh_len = ETHER_HDR_LEN; bpf_mtap(ifp, (struct mbuf *)&mh); } bpf_mtap function: /* * Incoming linkage from device drivers, when packet is in an mbuf chain. */ void bpf_mtap(ifp, m) struct ifnet *ifp; struct mbuf *m; { struct bpf_if *bp = ifp->if_bpf; struct bpf_d *d; u_int pktlen, slen; struct mbuf *m0; pktlen = 0; for (m0 = m; m0 != 0; m0 = m0->m_next) pktlen += m0->m_len; for (d = bp->bif_dlist; d != 0; d = d->bd_next) { if (!d->bd_seesent && (m->m_pkthdr.rcvif == NULL)) continue; ++d->bd_rcount; slen = bpf_filter(d->bd_filter, (u_char *)m, pktlen, 0); if (slen != 0) catchpacket(d, (u_char *)m, pktlen, slen, bpf_mcopy); } } fabien ------------F117315228876ED6 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIGRgYJKoZIhvcNAQcCoIIGNzCCBjMCAQMxCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHEw ggRtMIIDVaADAgECAgEEMA0GCSqGSIb3DQEBBQUAMIGRMQswCQYDVQQGEwJGUjENMAsGA1UECBME Tm9yZDEaMBgGA1UEBxMRVmlsbGVuZXV2ZSBkJ0FzY3ExLjAsBgNVBAoTJU5FVEFTUSAtIFNlY3Vy ZSBJbnRlcm5ldCBDb25uZWN0aXZpdHkxJzAlBgNVBAsTHk5FVEFTUSBDZXJ0aWZpY2F0aW9uIEF1 dGhvcml0eTAeFw0wMjAyMTkxNDQ4NDRaFw0wMzAyMTkxNDQ4NDRaMIHSMQswCQYDVQQGEwJGUjEN MAsGA1UECBMETm9yZDEaMBgGA1UEBxMRVmlsbGVuZXV2ZSBkJ0FzY3ExLjAsBgNVBAoTJU5ldEFz cSAtIFNlY3VyZSBJbnRlcm5ldCBDb25uZWN0aXZpdHkxJzAlBgNVBAsTHk5ldEFzcSBDZXJ0aWZp Y2F0aW9uIEF1dGhvcml0eTEWMBQGA1UEAxMNRmFiaWVuIFRIT01BUzEnMCUGCSqGSIb3DQEJARYY ZmFiaWVuLnRob21hc0BuZXRhc3EuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDnmO6H h5Nm3OOE7+k3zSP3/cWDBGbxVh5PInSwQeKW43cKKE0MH8Y5erHIhVVchaMRsvxBfJrB6T8s2vGN l+ZRnFVP2Ug8+xLYFFJONlkY1YnHTZJ/VGx/lsf2ZDR7ZKqgcnuvbrLra4Np062oED1xwEpzbJnT emmbOGTqscUvcwIDAQABo4IBDzCCAQswCQYDVR0TBAIwADALBgNVHQ8EBAMCBeAwHQYDVR0OBBYE FLJEqzTrOFxg8EONNUey1yGm2kWjMIG+BgNVHSMEgbYwgbOAFCcq6x3ZRNo6F3NqCSAgySWo+X+y oYGXpIGUMIGRMQswCQYDVQQGEwJGUjENMAsGA1UECBMETm9yZDEaMBgGA1UEBxMRVmlsbGVuZXV2 ZSBkJ0FzY3ExLjAsBgNVBAoTJU5FVEFTUSAtIFNlY3VyZSBJbnRlcm5ldCBDb25uZWN0aXZpdHkx JzAlBgNVBAsTHk5FVEFTUSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eYIBADARBglghkgBhvhCAQEE BAMCBaAwDQYJKoZIhvcNAQEFBQADggEBAERHjAkf5L/cZH/n0GTKyptbyr4ro7aGfOFyvyTCxeDN kL3v4gtD2itXx88JbThmsAHAiECjWhI8AUTBRsEpcPa9zbbQEnQqX+cdLnvgaZjCpAErSbrR3TN1 ToSahIFXYc5Ao+1K0fwMdZSmjbPS7J0gZPWdqLLFf214qOmMxAaw3zGRnSmcMUbwKGbfcyMT0KsK 7u82raxnKSgk/VzUzS26aXPbRHW4RguHOY40RLyyZJDjG883uBeOaOLvmmov5eFpcdkHlGav4wun 0ARGo1N/PUo+UntWkzPNWD1EXRxOE0iz3n7Bb8NwlS6A339TSi5lw14SfvbCg28QTfVGFKMxggGd MIIBmQIBATCBlzCBkTELMAkGA1UEBhMCRlIxDTALBgNVBAgTBE5vcmQxGjAYBgNVBAcTEVZpbGxl bmV1dmUgZCdBc2NxMS4wLAYDVQQKEyVORVRBU1EgLSBTZWN1cmUgSW50ZXJuZXQgQ29ubmVjdGl2 aXR5MScwJQYDVQQLEx5ORVRBU1EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkCAQQwCQYFKw4DAhoF AKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwIwYJKoZIhvcNAQkEMRYEFJMkB5vmkCWo4YI6 vZxv+2zrWFYuMBwGCSqGSIb3DQEJBTEPFw0wMjExMjYxMzEzNTlaMA0GCSqGSIb3DQEBAQUABIGA A21tb6zGLw2YBM+0Yp6IeZmlJocm5miovKt+NQq3rt2f4vqkKCkNDq62gh0+42Wai0PYlu2J8q38 HUY5VYE6ReOUElCbsV/dTMXN+FUD4g/S/ekWw9kKNjOGfu0+UcTVij3fUu8r7isuja2ZjFdBfAV/ 8o8883esKpNVbrvPN24= ------------F117315228876ED6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 26 8: 3:21 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5505E37B401 for ; Tue, 26 Nov 2002 08:03:20 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC48643E4A for ; Tue, 26 Nov 2002 08:03:19 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Nov 2002 11:03:14 -0500 Message-ID: From: Don Bowman To: "'freebsd-net@freebsd.org'" Subject: IPFW question with options and fwd rule Date: Tue, 26 Nov 2002 11:03:13 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org If I create a rule to 'fwd' packets with a particular TCP option set (or IP option) to a specific local port, and then I accept on that port, will subsequent packets without that option work? ie, I have this: 100 fwd localhost,9000 tcp from any to any 1234 tcpoptions ts recv interface SYN (TCP option SACK=1), Dest port=5555, Dest ip = random-host SYN/ACK ACK (no TCP options) will the first SYN reach me? (yes I think, even though the IP is not mine and the dest port is not me, the ipfw fwd magic takes care). Will the ACK from the client reach me? (the dest ip is not me, so will the stack discard, or will the already created PCB take care of this?) I'd like to carry on a normal TCP conversation, but select the local port that terminates it based on a TCP option. The destination IP will be somewhere else (its a transparent proxy application). Thanks in advance. --don (don@sandvine.com www.sandvine.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 26 11:20:13 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3628A37B401 for ; Tue, 26 Nov 2002 11:20:11 -0800 (PST) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A0D543EC2 for ; Tue, 26 Nov 2002 11:20:10 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc52.attbi.com (rwcrmhc52) with ESMTP id <20021126192009052004rg0je>; Tue, 26 Nov 2002 19:20:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA52798; Tue, 26 Nov 2002 11:17:57 -0800 (PST) Date: Tue, 26 Nov 2002 11:17:56 -0800 (PST) From: Julian Elischer To: Don Bowman Cc: "'freebsd-net@freebsd.org'" Subject: Re: IPFW question with options and fwd rule In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 26 Nov 2002, Don Bowman wrote: > > If I create a rule to 'fwd' packets with a particular TCP option > set (or IP option) to a specific local port, and then I accept > on that port, will subsequent packets without that option work? > > ie, I have this: > > 100 fwd localhost,9000 tcp from any to any 1234 tcpoptions ts recv interface > > SYN (TCP option SACK=1), Dest port=5555, Dest ip = random-host > SYN/ACK > ACK (no TCP options) > > will the first SYN reach me? (yes I think, even though the IP is not mine > and well, no, because 5555 != 1234 :-) but, assuming that your rule said 5555, then it would only reach you if it has the ts option set. to be forwarded a packet must match teh rule.. subsequent packewts must ALSO match the rule. you could use dynamic rules to match subsequent packets I think, but I've never used them. > the dest port is not me, the ipfw fwd magic takes care). > Will the ACK from the client reach me? (the dest ip is not me, so will the > stack discard, or will the already created PCB take care of this?) > > I'd like to carry on a normal TCP conversation, but select the local port > that terminates it based on a TCP option. The destination IP will be > somewhere > else (its a transparent proxy application). > > Thanks in advance. > > --don (don@sandvine.com www.sandvine.com) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 26 11:29:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82B9537B404 for ; Tue, 26 Nov 2002 11:29:23 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id B452743E88 for ; Tue, 26 Nov 2002 11:29:22 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Nov 2002 14:29:18 -0500 Message-ID: From: Don Bowman To: 'Julian Elischer' , Don Bowman Cc: "'freebsd-net@freebsd.org'" Subject: RE: IPFW question with options and fwd rule Date: Tue, 26 Nov 2002 14:29:16 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > From: Julian Elischer [mailto:julian@elischer.org] > On Tue, 26 Nov 2002, Don Bowman wrote: > > > > > If I create a rule to 'fwd' packets with a particular TCP option > > set (or IP option) to a specific local port, and then I accept > > on that port, will subsequent packets without that option work? > > ... > well, no, because 5555 != 1234 :-) > but, assuming that your rule said 5555, then it would only > reach you if > it has the ts option set. > > to be forwarded a packet must match teh rule.. > subsequent packewts must ALSO match the rule. Sigh, I guess TANSTAAFL shows true. I was hoping once the PCB was setup that it could act like some sort of packet attractor. Or in other words, to get the packet stream to play follow the leader on the syn. --don (don@sandvine.com www.sandvine.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 26 12:54:26 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2AA437B401 for ; Tue, 26 Nov 2002 12:54:23 -0800 (PST) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id D5EDD43E9C for ; Tue, 26 Nov 2002 12:54:19 -0800 (PST) (envelope-from misho@interbgc.com) Received: (qmail 63099 invoked by alias); 26 Nov 2002 20:54:02 -0000 Message-ID: <20021126205402.63098.qmail@ns1.interbgc.com> References: <127338536921.20021126141359@netasq.com> In-Reply-To: <127338536921.20021126141359@netasq.com> From: Mihail Balikov To: Fabien THOMAS Cc: freebsd-net@freebsd.org X-Priority: 3 Subject: Re: bpf_tap problem with PKTHDR Date: Tue, 26 Nov 2002 22:54:02 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I found similar problem with bpf flag BIOCSSEESENT. Here is simple workaround: if_ethersubr.c: ether_input() /* Check for a BPF tap */ if (ifp->if_bpf != NULL) { /* This kludge is OK; BPF treats the "mbuf" as read-only */ struct mbuf m0; m0.m_next = m; m0.m_data = (char *)eh; m0.m_len = ETHER_HDR_LEN; /* make BOICSSEESENT happy */ m0.m_pkthdr.rcvif = ifp; bpf_mtap(ifp, &m0); } But there's no reason for such "kludge", if ethernet header is first mbuf. regards, Mihail Fabien THOMAS writes: > Hi, > > It seems there is a problem in the bpf_mtap code: > > Actually the code assume in the seesent case that mbuf will have a pkthdr structure. > > There is 2 problems here: > + they did not check for that with (m_flag & M_PKTHDR) > + at the upper level the caller forge fake mbuf that did not > contain any pkthdr and did not initialize the m_flags field > > what do you think about that ? > > if_ethersubr.c case: > > /* Check for a BPF tap */ > if (ifp->if_bpf != NULL) { > struct m_hdr mh; > > /* This kludge is OK; BPF treats the "mbuf" as read-only */ > mh.mh_next = m; > mh.mh_data = (char *)eh; > mh.mh_len = ETHER_HDR_LEN; > bpf_mtap(ifp, (struct mbuf *)&mh); > } > > > bpf_mtap function: > /* > * Incoming linkage from device drivers, when packet is in an mbuf chain. > */ > void > bpf_mtap(ifp, m) > struct ifnet *ifp; > struct mbuf *m; > { > struct bpf_if *bp = ifp->if_bpf; > struct bpf_d *d; > u_int pktlen, slen; > struct mbuf *m0; > > pktlen = 0; > for (m0 = m; m0 != 0; m0 = m0->m_next) > pktlen += m0->m_len; > > for (d = bp->bif_dlist; d != 0; d = d->bd_next) { > if (!d->bd_seesent && (m->m_pkthdr.rcvif == NULL)) > continue; > ++d->bd_rcount; > slen = bpf_filter(d->bd_filter, (u_char *)m, pktlen, 0); > if (slen != 0) > catchpacket(d, (u_char *)m, pktlen, slen, bpf_mcopy); > } > } > > fabien To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 26 13: 2:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD57637B401 for ; Tue, 26 Nov 2002 13:02:21 -0800 (PST) Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8020F43E88 for ; Tue, 26 Nov 2002 13:02:10 -0800 (PST) (envelope-from fabien.thomas@netasq.com) Received: from mel-rta10.wanadoo.fr (193.252.19.193) by mel-rto6.wanadoo.fr (6.5.007) id 3DDA145A004F55C4; Tue, 26 Nov 2002 22:02:04 +0100 Received: from localhost (193.251.33.149) by mel-rta10.wanadoo.fr (6.5.007) id 3DD0D46B008E5F23; Tue, 26 Nov 2002 22:02:04 +0100 Date: Tue, 26 Nov 2002 22:02:09 +0100 From: Fabien THOMAS X-Mailer: The Bat! (v1.61) Business Reply-To: Fabien THOMAS X-Priority: 3 (Normal) Message-ID: <18311239371.20021126220209@wanadoo.fr> To: Mihail Balikov Cc: freebsd-net@freebsd.org Subject: Re: bpf_tap problem with PKTHDR In-Reply-To: <20021126205402.63098.qmail@ns1.interbgc.com> References: <127338536921.20021126141359@netasq.com> <20021126205402.63098.qmail@ns1.interbgc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org MB> I found similar problem with bpf flag BIOCSSEESENT. Here is simple MB> workaround: Yes its the same problem that i've found but it is not limited to the ethernet case. virtually each bpf_mtap must be modified to add support for a 'real' pkthdr. fabien To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Nov 27 6:10:29 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0F2F37B401 for ; Wed, 27 Nov 2002 06:10:26 -0800 (PST) Received: from mail.libertysurf.net (mail.libertysurf.net [213.36.80.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F1443E88 for ; Wed, 27 Nov 2002 06:10:26 -0800 (PST) (envelope-from tayo@nerim.net) Received: from fujitsu (213.36.140.220) by mail.libertysurf.net (6.5.026) id 3DE3A33200023CBD for freebsd-net@freebsd.org; Wed, 27 Nov 2002 15:10:25 +0100 Message-ID: <002501c2961e$d39f6860$dc8c24d5@fujitsu> From: "Michel Gravey" To: Subject: ipv6 question Date: Wed, 27 Nov 2002 15:11:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, My provider does support ipv6. The person in charge of ipv6 has send me this parameters to get ipv6 working on my freebsd boxes. (4.5-p23). IPv6 net : 2001:7a8:10dd::/48 Interconnect : 2001:7a8:1:a0de::/64 (::1 ISP, ::2 User) Endpoint IPv4 : 62.4.16.54 Personally I'm a newbie with ipv6 and freebsd. I tried the next commands: zenith# ifconfig gif0 create zenith# ifconfig gif0 giftunnel 62.212.96.132 64.4.16.54 zenith# ifconfig gif0 inet6 2001:7a8:1:a0de::2/64 zenith# route add -inet6 default 2001:7a8:1:a0de::1 add net default: gateway 2001:7a8:1:a0de::1 zenith# ipf -6f /etc/ipf6.rules --- pass in quick proto ipv6 all pass out quick proto ipv6 all ---- zenith# ping www.kame.net PING apple.kame.net (203.178.141.220): 56 data bytes 64 bytes from 203.178.141.220: icmp_seq=0 ttl=240 time=324.721 ms 64 bytes from 203.178.141.220: icmp_seq=1 ttl=240 time=329.131 ms 64 bytes from 203.178.141.220: icmp_seq=2 ttl=240 time=324.902 ms ^C --- apple.kame.net ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 324.721/326.251/329.131/2.038 ms zenith# ping6 www.kame.net PING6(56=40+8+8 bytes) 2001:7a8:1:a0de::2 --> 2001:200:0:4819:210:f3ff:fe03:4d0 ^C --- apple.kame.net ping6 statistics --- 12 packets transmitted, 0 packets received, 100% packet loss If you have any idea concerning this problem, please email me. Thanks in advance, Michel Gravey --- attached ifconfig --- zenith# ifconfig xl0: flags=8843 mtu 1500 options=3 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::201:2ff:fef1:803f%xl0 prefixlen 64 scopeid 0x1 ether 00:01:02:f1:80:3f media: Ethernet autoselect (100baseTX ) status: active xl1: flags=8843 mtu 1500 options=3 inet 10.0.0.139 netmask 0xffffff00 broadcast 10.0.0.255 inet6 fe80::201:2ff:fea8:1078%xl1 prefixlen 64 scopeid 0x2 ether 00:01:02:a8:10:78 media: Ethernet autoselect (10baseT/UTP) status: active ppp0: flags=8010 mtu 1500 faith0: flags=8002 mtu 1500 stf0: flags=0<> mtu 1280 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 inet 127.0.0.1 netmask 0xff000000 tun0: flags=8051 mtu 1492 inet6 fe80::201:2ff:fef1:803f%tun0 prefixlen 64 scopeid 0x7 inet 62.212.96.132 --> 62.4.16.251 netmask 0xff000000 Opened by PID 55 gif0: flags=8010 mtu 1280 inet 62.212.96.132 --> 64.4.16.54 netmask 0xff000000 inet6 2001:7a8:1:a0de::2 prefixlen 64 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Nov 27 12: 3:48 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2415537B401 for ; Wed, 27 Nov 2002 12:03:46 -0800 (PST) Received: from mail.onlinehome.de (pD9E535F3.dip.t-dialin.net [217.229.53.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3416943EBE for ; Wed, 27 Nov 2002 12:03:34 -0800 (PST) (envelope-from fk@duese.org) Received: from bug.shoki.lan (unknown [192.168.242.25]) by mail.onlinehome.de (Postfix) with SMTP id F3A0C7C33 for ; Wed, 27 Nov 2002 21:06:08 +0100 (CET) Date: Wed, 27 Nov 2002 21:04:49 +0100 From: Florian Kruegl To: freebsd-net@FreeBSD.ORG Subject: pppoe performance problems Message-Id: <20021127210449.299ade52.fk@duese.org> X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi *, I'm trying to set up some kint of test environment for xDSL devices. before wasting much time trying to explain the environment here is a little picture: | | | | | | | | | | | | | | | | | | XDSL Lines +-+-+-+-+-+-+-+-+ | Siemens DSLAM | +-------+-------+ | ATM (OC3 SM) | +-------+-------+ fxp0 +---------------+ | Brick XL +--------X-Over---------+ FreeBSD 4.6 | +-------+-------+ +-------+-------+ | | fxp1 Ethernet Ethernet 192.168.64.2 192.168.64.3 | | --------+---------------------------------------+----------- _Internet_ The BrickXL operates as a bridge and bridges the VPI:VCI combinations intended to be used for PPPoE and DHCP directly over the X-Over link to the FreeBSD Box running pppoed and dhcpd. Using tcp connections for bandwith maessurement show normal values, but when using a Ethernet Test Box (SmartApp / SmartBits), which spits out IP pakets at a defined rate and uses all sent frames where recieved as success criteria to determine the maximum transfer rate, gives rates about 60 f/s. when looking at the logs you can see that at higher rates (2000f/s) there are just one or two frames missing. but it takes till theese mentioned 60 f/s second till all packets are recieved by the testequipment. my pppoe config is nothing special: rc.conf ---------------------------------------- pppoed_enable="YES" pppoed_provider="pppoe" pppoed_flags="-P /var/run/pppoed.pid" pppoed_interface="fxp0" ---------------------------------------- ppp.conf ---------------------------------------- default: set log Phase Chat IPCP CCP tun command pppoe: allow mode direct set timeout 0 disable mppe enable pap set ifaddr 192.168.64.3/32 192.168.100.1-192.168.100.127 allow users accept dns set dns 192.168.64.3 disable lcp accept lqr disable deflate disable pred1 disable vjcomp disable acfcomp disable protocomp set vj slotcomp off ---------------------------------------- mpd is not a good alternative in this cas as AFAIK not capable of acting as a PPPoE-Server. DHCP performs fine. greets flo -- God isn't dead -- he's been busted. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Nov 27 12:50:14 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA5F037B401 for ; Wed, 27 Nov 2002 12:50:10 -0800 (PST) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24A2943ECD for ; Wed, 27 Nov 2002 12:50:10 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc51.attbi.com (rwcrmhc51) with ESMTP id <2002112720500805100aklc6e>; Wed, 27 Nov 2002 20:50:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA63197; Wed, 27 Nov 2002 12:47:21 -0800 (PST) Date: Wed, 27 Nov 2002 12:47:20 -0800 (PST) From: Julian Elischer To: Florian Kruegl Cc: freebsd-net@FreeBSD.ORG Subject: Re: pppoe performance problems In-Reply-To: <20021127210449.299ade52.fk@duese.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 27 Nov 2002, Florian Kruegl wrote: > Hi *, > > I'm trying to set up some kint of test environment for xDSL devices. before wasting much time trying to explain the environment here is a little picture: > > | | | | | | | | | > | | | | | | | | | XDSL Lines > +-+-+-+-+-+-+-+-+ > | Siemens DSLAM | > +-------+-------+ > | > ATM (OC3 SM) > | > +-------+-------+ fxp0 +---------------+ > | Brick XL +--------X-Over---------+ FreeBSD 4.6 | > +-------+-------+ +-------+-------+ > | | fxp1 > Ethernet Ethernet > 192.168.64.2 192.168.64.3 > | | > --------+---------------------------------------+----------- > _Internet_ > > The BrickXL operates as a bridge and bridges the VPI:VCI combinations intended to be used for PPPoE and DHCP directly over the X-Over link to the FreeBSD Box running pppoed and dhcpd. > Using tcp connections for bandwith maessurement show normal values, but when using a Ethernet Test Box (SmartApp / SmartBits), which spits out IP pakets at a defined rate and uses all sent frames where recieved as success criteria to determine the maximum transfer rate, gives rates about 60 f/s. when looking at the logs you can see that at higher rates (2000f/s) there are just one or two frames missing. but it takes till theese mentioned 60 f/s second till all packets are recieved by the testequipment. > > my pppoe config is nothing special: > rc.conf > ---------------------------------------- > pppoed_enable="YES" > pppoed_provider="pppoe" > pppoed_flags="-P /var/run/pppoed.pid" > pppoed_interface="fxp0" > ---------------------------------------- > > ppp.conf > ---------------------------------------- > default: > set log Phase Chat IPCP CCP tun command > > pppoe: > allow mode direct > set timeout 0 > disable mppe > enable pap > set ifaddr 192.168.64.3/32 192.168.100.1-192.168.100.127 > allow users > accept dns > set dns 192.168.64.3 > disable lcp > accept lqr > disable deflate > disable pred1 > disable vjcomp > disable acfcomp > disable protocomp > set vj slotcomp off > ---------------------------------------- > > mpd is not a good alternative in this cas as AFAIK not capable of > acting as a PPPoE-Server. correct. The question is WHERE are the packets being lost?. Are all the generated packets being aimed at a single session? are they all session startup packets, or data packets on an already set up session? I would suspect that the socket buffer size on the netgraph socket that ppp is using may be too short. you can try increase the buffer size in pppoed.c using int newval; int len; len = sizeof (newval); [...] getsockopt( so, SOL_SOCKET, SO_RCVBUF, &newval, &len); newval *= 4; /* make it 4 times as big */ setsockopt( so, SOL_SOCKET, SO_RCVBUF, &newval, len); This should happen in the function Spawn() probably about if (debug) syslog(LOG_INFO, "Sending CONNECT from .:%s -> %s.%s", ngc.ourhook, ngc.path, ngc.peerhook); if (NgSendMsg(cs, ".:", NGM_GENERIC_COOKIE, NGM_CONNECT, &ngc, sizeof ngc) < 0) { syslog(LOG_ERR, "Cannot CONNECT PPPoE and socket nodes: %m"); _exit(EX_OSERR); } /* HERE */ ========new code /* make the data socket buffer larger */ getsockopt( ds, SOL_SOCKET, SO_RCVBUF, &newval, &len); newval *= 4; /* make it 4 times as big */ setsockopt( ds, SOL_SOCKET, SO_RCVBUF, &newval, len); /* * If we tell the socket node not to LINGER, it will go away when * the last hook is removed. */ if (debug) syslog(LOG_INFO, "Sending NGM_SOCK_CMD_NOLINGER to socket"); if (NgSendMsg(cs, ".:", NGM_SOCKET_COOKIE, NGM_SOCK_CMD_NOLINGER, NULL, 0) < 0) { syslog(LOG_ERR, "Cannot send NGM_SOCK_CMD_NOLINGER: %m"); _exit(EX_OSERR); } > > DHCP performs fine. Dhcp is not handling all the traffic, just the setup.. let me know if this helps. > > greets > > flo > -- > God isn't dead -- he's been busted. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Nov 27 17:34:10 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ADCD37B401 for ; Wed, 27 Nov 2002 17:34:09 -0800 (PST) Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4506643EB2 for ; Wed, 27 Nov 2002 17:34:08 -0800 (PST) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:4819:2000:e5d5:6b:6f5a:1eaf]) by shuttle.wide.toshiba.co.jp (8.11.6/8.9.1) with ESMTP id gAS1Xud90153; Thu, 28 Nov 2002 10:33:56 +0900 (JST) Date: Thu, 28 Nov 2002 10:34:01 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: "Michel Gravey" Cc: Subject: Re: ipv6 question In-Reply-To: <002501c2961e$d39f6860$dc8c24d5@fujitsu> References: <002501c2961e$d39f6860$dc8c24d5@fujitsu> User-Agent: Wanderlust/2.6.1 (Upside Down) Emacs/21.2 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 20000228(IM140) Lines: 22 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >>>>> On Wed, 27 Nov 2002 15:11:05 +0100, >>>>> "Michel Gravey" said: > zenith# ping6 www.kame.net > PING6(56=40+8+8 bytes) 2001:7a8:1:a0de::2 --> > 2001:200:0:4819:210:f3ff:fe03:4d0 > ^C > --- apple.kame.net ping6 statistics --- > 12 packets transmitted, 0 packets received, 100% packet loss > If you have any idea concerning this problem, please email me. Please show us the result of % netstat -rn % ping6 2001:7a8:1:a0de::1 (which is your default router) % traceroute6 -n www.kame.net JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Nov 28 5:28:40 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBE9B37B401 for ; Thu, 28 Nov 2002 05:28:38 -0800 (PST) Received: from mail.libertysurf.net (mail.libertysurf.net [213.36.80.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFC0043EAF for ; Thu, 28 Nov 2002 05:28:37 -0800 (PST) (envelope-from tayo@nerim.net) Received: from fujitsu (213.36.114.230) by mail.libertysurf.net (6.5.026) id 3DE4935E0002EB6B; Thu, 28 Nov 2002 14:28:12 +0100 Message-ID: <013001c296e2$1941e780$dc8c24d5@fujitsu> From: "Michel Gravey" To: , "Dima Dorfman" , Cc: References: <002501c2961e$d39f6860$dc8c24d5@fujitsu> Subject: Re: ipv6 question (solved) Date: Thu, 28 Nov 2002 14:28:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, It finally works. It was a firewall problem. I have to had in ipf.rules a pass in quick proto ipv6 from IPV6GATEWAY to MYIPADRESS and a pass out quick proto ipv6 from MYIPADRESS to IPV6GATEWAY. I have to modify the ipf6.rules to (pass in quick all and pass out quick all). I have to use ifconfig gif0 tunnel MYIPADRESS IPV6GATEWAY (like in the handbook) and not ifconfig gif0 giftunnel MYIPADRESS IPV6GATEWAY. Does anybody have a good working ipfilter conf for ipv6 ? (I try some ipv4 rules but it don't seem to work) Michel ----- Original Message ----- From: )> To: "Michel Gravey" Cc: Sent: Thursday, November 28, 2002 2:34 AM Subject: Re: ipv6 question > >>>>> On Wed, 27 Nov 2002 15:11:05 +0100, > >>>>> "Michel Gravey" said: > > > zenith# ping6 www.kame.net > > PING6(56=40+8+8 bytes) 2001:7a8:1:a0de::2 --> > > 2001:200:0:4819:210:f3ff:fe03:4d0 > > ^C > > --- apple.kame.net ping6 statistics --- > > 12 packets transmitted, 0 packets received, 100% packet loss > > > If you have any idea concerning this problem, please email me. > > Please show us the result of > > % netstat -rn > % ping6 2001:7a8:1:a0de::1 (which is your default router) > % traceroute6 -n www.kame.net > > JINMEI, Tatuya > Communication Platform Lab. > Corporate R&D Center, Toshiba Corp. > jinmei@isl.rdc.toshiba.co.jp > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Nov 28 12: 4:42 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58DA037B401 for ; Thu, 28 Nov 2002 12:04:38 -0800 (PST) Received: from mail.onlinehome.de (p5084725C.dip.t-dialin.net [80.132.114.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02B8143EBE for ; Thu, 28 Nov 2002 12:04:16 -0800 (PST) (envelope-from fk@duese.org) Received: from bug.shoki.lan (unknown [192.168.242.25]) by mail.onlinehome.de (Postfix) with SMTP id 220D57C33; Thu, 28 Nov 2002 21:06:52 +0100 (CET) Date: Thu, 28 Nov 2002 21:04:12 +0100 From: Florian Kruegl To: Julian Elischer Cc: freebsd-net@FreeBSD.ORG Subject: Re: pppoe performance problems Message-Id: <20021128210412.7aae42e2.fk@duese.org> In-Reply-To: References: <20021127210449.299ade52.fk@duese.org> X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 27 Nov 2002 12:47:20 -0800 (PST) Julian Elischer wrote: > > > On Wed, 27 Nov 2002, Florian Kruegl wrote: > > > Hi *, > > > > I'm trying to set up some kint of test environment for xDSL devices. before wasting much time trying to explain the environment here is a little picture: > > > > | | | | | | | | | > > | | | | | | | | | XDSL Lines > > +-+-+-+-+-+-+-+-+ > > | Siemens DSLAM | > > +-------+-------+ > > | > > ATM (OC3 SM) > > | > > +-------+-------+ fxp0 +---------------+ > > | Brick XL +--------X-Over---------+ FreeBSD 4.6 | > > +-------+-------+ +-------+-------+ > > | | fxp1 > > Ethernet Ethernet > > 192.168.64.2 192.168.64.3 > > | | > > --------+---------------------------------------+----------- > > _Internet_ > > > > The BrickXL operates as a bridge and bridges the VPI:VCI combinations intended to be used for PPPoE and DHCP directly over the X-Over link to the FreeBSD Box running pppoed and dhcpd. > > Using tcp connections for bandwith maessurement show normal values, but when using a Ethernet Test Box (SmartApp / SmartBits), which spits out IP pakets at a defined rate and uses all sent frames where recieved as success criteria to determine the maximum transfer rate, gives rates about 60 f/s. when looking at the logs you can see that at higher rates (2000f/s) there are just one or two frames missing. but it takes till theese mentioned 60 f/s second till all packets are recieved by the testequipment. > > > > my pppoe config is nothing special: > > rc.conf > > ---------------------------------------- > > pppoed_enable="YES" > > pppoed_provider="pppoe" > > pppoed_flags="-P /var/run/pppoed.pid" > > pppoed_interface="fxp0" > > ---------------------------------------- > > > > ppp.conf > > ---------------------------------------- > > default: > > set log Phase Chat IPCP CCP tun command > > > > pppoe: > > allow mode direct > > set timeout 0 > > disable mppe > > enable pap > > set ifaddr 192.168.64.3/32 192.168.100.1-192.168.100.127 > > allow users > > accept dns > > set dns 192.168.64.3 > > disable lcp > > accept lqr > > disable deflate > > disable pred1 > > disable vjcomp > > disable acfcomp > > disable protocomp > > set vj slotcomp off > > ---------------------------------------- > > > > mpd is not a good alternative in this cas as AFAIK not capable of > > acting as a PPPoE-Server. > > correct. > > The question is WHERE are the packets being lost?. more than a good point, seems that I got some man pages to read, in order to find out who looses those packets. > > Are all the generated packets being aimed at a single session? > are they all session startup packets, or data packets on an > already set up session? > in this case there is only one setup session where only data packets should be transfered in one direction, as this is no tcp it should be a real unidirectional test, I even disabled LCP keepaliving. this is a plain pppoe session. I added the code to increase buffer size to the Spawn function, but I'll have to wait till tomorrow to plug in the testequipment. Willing to send mail no matter if that already fixed the problem or not. Something I got in my mind but forgot to put in the last mail is that this testcycle starts with very tiny frames ( 64 Byte ) and pulls them up in seven steps till it reaches the ethernet maximum. I never tested anything more than with theese 64Byte frames ;( perhaps I should let it run once completely ) > > I would suspect that the socket buffer size on the > netgraph socket that ppp is using may be too short. > > you can try increase the buffer size in pppoed.c using > int newval; > int len; > len = sizeof (newval); > [...] > getsockopt( so, SOL_SOCKET, SO_RCVBUF, &newval, &len); > newval *= 4; /* make it 4 times as big */ > setsockopt( so, SOL_SOCKET, SO_RCVBUF, &newval, len); > > This should happen in the function Spawn() > > probably about > if (debug) > syslog(LOG_INFO, "Sending CONNECT from .:%s -> %s.%s", > ngc.ourhook, ngc.path, ngc.peerhook); > if (NgSendMsg(cs, ".:", NGM_GENERIC_COOKIE, > NGM_CONNECT, &ngc, sizeof ngc) < 0) { > syslog(LOG_ERR, "Cannot CONNECT PPPoE and socket nodes: %m"); > _exit(EX_OSERR); > } > > > /* HERE */ > ========new code > /* make the data socket buffer larger */ > > getsockopt( ds, SOL_SOCKET, SO_RCVBUF, &newval, &len); > newval *= 4; /* make it 4 times as big */ > setsockopt( ds, SOL_SOCKET, SO_RCVBUF, &newval, len); > > > /* > * If we tell the socket node not to LINGER, it will go away when > * the last hook is removed. > */ > if (debug) > syslog(LOG_INFO, "Sending NGM_SOCK_CMD_NOLINGER to socket"); > if (NgSendMsg(cs, ".:", NGM_SOCKET_COOKIE, > NGM_SOCK_CMD_NOLINGER, NULL, 0) < 0) { > syslog(LOG_ERR, "Cannot send NGM_SOCK_CMD_NOLINGER: %m"); > _exit(EX_OSERR); > } > > > > > > > DHCP performs fine. > > Dhcp is not handling all the traffic, just the setup.. > > let me know if this helps. > sure. thats why I wasted some short thoughts about mpd it also only mangages the setup and all the encapsulation stuff will be done in kernelspace. greetings flo -- The difference between this school and a cactus plant is that the cactus has the pricks on the outside. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Nov 28 13:49: 2 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2049537B401 for ; Thu, 28 Nov 2002 13:49:01 -0800 (PST) Received: from sep.oldach.net (sep.oldach.net [194.180.25.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCC5143EAF for ; Thu, 28 Nov 2002 13:48:59 -0800 (PST) (envelope-from hmo@sep.oldach.net) Received: from sep.oldach.net (localhost [127.0.0.1]) by sep.oldach.net (8.12.6/8.12.6/hmo29jun02) with ESMTP id gASLmqr6025734 (version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 28 Nov 2002 22:48:53 +0100 (CET) (envelope-from hmo@sep.oldach.net) Received: (from hmo@localhost) by sep.oldach.net (8.12.6/8.12.6/Submit) id gASLmpas025733 for freebsd-net@freebsd.org; Thu, 28 Nov 2002 22:48:51 +0100 (CET) (envelope-from hmo) Message-Id: <200211282148.gASLmpas025733@sep.oldach.net> Subject: Multihoming - implementing RFC 1122 To: freebsd-net@freebsd.org Date: Thu, 28 Nov 2002 22:48:51 +0100 (CET) From: Helge Oldach MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org All, I wonder whether there are plans to complete implementation of the "strong ES" model as described in RFC 1122 for multihoming hosts on FreeBSD. Essentially this would assure that a multihomed host would send and receive IP packets through the "correct" interface (that is, the physical interface that is configured with the IP address used in the packets). Currently the incoming part is already present through the net.inet.ip.check_interface sysctl. If enabled, this would drop packets which arrive on an interface with a different IP address than the one of the interface. But what about the sending side? This appears to be missing. We would need to forward packets not according to the routing table, but according to the source address of the packet (if already defined, otherwise it would be defined through the routing table first). Is anybody aware of this issue? I personally consider this as beneficial for firewall-type setups. Are there plans to implement it? Regards, Helge To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 1:54:30 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E16837B401 for ; Fri, 29 Nov 2002 01:54:29 -0800 (PST) Received: from migla.ktu.lt (migla.ktu.lt [193.219.160.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2AF543EAF for ; Fri, 29 Nov 2002 01:54:28 -0800 (PST) (envelope-from device@migla.ktu.lt) Received: by migla.ktu.lt (Postfix, from userid 1000) id AE37315752; Fri, 29 Nov 2002 11:54:22 +0200 (EET) Date: Fri, 29 Nov 2002 11:54:22 +0200 From: Nerijus Bendziunas To: freebsd-net@freebsd.org Subject: DNAT on freebsd Message-ID: <20021129095422.GA15876@migla.ktu.lt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, i need to do something like DNAT in iptables on freebsd. I mean to rewrite packets which match some rule dst ip/port. ie: all smtp traffic (any 25) redirect to some ip 25. or if user tries to connect to www.yahoo.com:80 i rewrite dst and he realy connects to www.google.lt:80 or smth. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 2:28:29 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D35437B401 for ; Fri, 29 Nov 2002 02:28:27 -0800 (PST) Received: from mail.libertysurf.net (mail.libertysurf.net [213.36.80.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D4DE43EB2 for ; Fri, 29 Nov 2002 02:28:26 -0800 (PST) (envelope-from tayo@nerim.net) Received: from fujitsu (213.36.28.146) by mail.libertysurf.net (6.5.026) id 3DE4935E0004DCAF for freebsd-net@FreeBSD.ORG; Fri, 29 Nov 2002 11:28:24 +0100 Message-ID: <01f501c29792$256e4c00$dc8c24d5@fujitsu> From: "Michel Gravey" To: Subject: ipv6 question (another) Date: Fri, 29 Nov 2002 11:29:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Ipv6 is now set on one subnet, using prefixlen 64. My provider gives me a tunnel and a /48. Would be possible for my /48 to be divided in two subnet? I have a subnet for windows boxes and a subnet for unix boxes and beetween them an ip330 (nokia, which does support ipv6). For now, only the unix subnet is connected. When i try to add another subnet in my routing table (route add -inet6 -net 2001:7a8:10dd:1:: -host 2001:7a8:10dd::6 -prefixlen 64 ) it appears on the routing table with a /0. I try to ping (ping6 2001:7a8:10dd:1::1) the other firewall (ip330) interface but it does'nt respond. I have configured ipv6 forwarding on the ip330 (net:ip6:forwarding = 1). My freebsd router, which have the gif0 configured is a 4.5-p23. Why does the route appears on netstat -rn with a /0 (2001:7a8:10dd:1::/0 on the good interface, xl0)? I think I'm doing something bad or wrong but I don't know what (newbie in ipv6). If you have any ideas... Thanks in advance, Michel ----- Original Message ----- From: "Michel Gravey" To: ; "Dima Dorfman" ; Cc: Sent: Thursday, November 28, 2002 2:28 PM Subject: Re: ipv6 question (solved) > Hi, > > It finally works. It was a firewall problem. I have to had in ipf.rules a > pass in quick proto ipv6 from IPV6GATEWAY to MYIPADRESS and a > pass out quick proto ipv6 from MYIPADRESS to IPV6GATEWAY. > I have to modify the ipf6.rules to (pass in quick all and pass out quick > all). > I have to use ifconfig gif0 tunnel MYIPADRESS IPV6GATEWAY (like in the > handbook) and not ifconfig gif0 giftunnel MYIPADRESS IPV6GATEWAY. > > Does anybody have a good working ipfilter conf for ipv6 ? (I try some ipv4 > rules but it don't seem to work) > > Michel > > ----- Original Message ----- > From: )> > To: "Michel Gravey" > Cc: > Sent: Thursday, November 28, 2002 2:34 AM > Subject: Re: ipv6 question > > > > >>>>> On Wed, 27 Nov 2002 15:11:05 +0100, > > >>>>> "Michel Gravey" said: > > > > > zenith# ping6 www.kame.net > > > PING6(56=40+8+8 bytes) 2001:7a8:1:a0de::2 --> > > > 2001:200:0:4819:210:f3ff:fe03:4d0 > > > ^C > > > --- apple.kame.net ping6 statistics --- > > > 12 packets transmitted, 0 packets received, 100% packet loss > > > > > If you have any idea concerning this problem, please email me. > > > > Please show us the result of > > > > % netstat -rn > > % ping6 2001:7a8:1:a0de::1 (which is your default router) > > % traceroute6 -n www.kame.net > > > > JINMEI, Tatuya > > Communication Platform Lab. > > Corporate R&D Center, Toshiba Corp. > > jinmei@isl.rdc.toshiba.co.jp > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 4:42:54 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9170C37B401 for ; Fri, 29 Nov 2002 04:42:53 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 484C943EC2 for ; Fri, 29 Nov 2002 04:42:52 -0800 (PST) (envelope-from oppermann@pipeline.ch) Received: (qmail 79956 invoked from network); 29 Nov 2002 12:42:31 -0000 Received: from unknown (HELO pipeline.ch) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 29 Nov 2002 12:42:31 -0000 Message-ID: <3DE76072.DC64205E@pipeline.ch> Date: Fri, 29 Nov 2002 13:41:22 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Helge Oldach Cc: freebsd-net@freebsd.org Subject: Re: Multihoming - implementing RFC 1122 References: <200211282148.gASLmpas025733@sep.oldach.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Helge Oldach wrote: > > All, > > I wonder whether there are plans to complete implementation of the > "strong ES" model as described in RFC 1122 for multihoming hosts on > FreeBSD. Essentially this would assure that a multihomed host would > send and receive IP packets through the "correct" interface (that is, > the physical interface that is configured with the IP address used in > the packets). > > Currently the incoming part is already present through the > net.inet.ip.check_interface sysctl. If enabled, this would drop packets > which arrive on an interface with a different IP address than the one of > the interface. > > But what about the sending side? This appears to be missing. We would > need to forward packets not according to the routing table, but > according to the source address of the packet (if already defined, > otherwise it would be defined through the routing table first). This is also called policy routing. > Is anybody aware of this issue? I personally consider this as beneficial > for firewall-type setups. Are there plans to implement it? Claudio and I are (somewhat slower than expected) working on it. We into detail there once we have completet the new natd (release candidate available) and the TCP hostcache (80% done). -- Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 4:48:33 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FAA637B401 for ; Fri, 29 Nov 2002 04:48:33 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with SMTP id EEECF43E88 for ; Fri, 29 Nov 2002 04:48:31 -0800 (PST) (envelope-from oppermann@pipeline.ch) Received: (qmail 81162 invoked from network); 29 Nov 2002 12:48:21 -0000 Received: from unknown (HELO pipeline.ch) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 29 Nov 2002 12:48:21 -0000 Message-ID: <3DE761D1.F5F96F8C@pipeline.ch> Date: Fri, 29 Nov 2002 13:47:13 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Nerijus Bendziunas Cc: freebsd-net@freebsd.org Subject: Re: DNAT on freebsd References: <20021129095422.GA15876@migla.ktu.lt> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Nerijus Bendziunas wrote: > > Hi, > i need to do something like DNAT in iptables on freebsd. > I mean to rewrite packets which match some rule dst ip/port. > ie: all smtp traffic (any 25) redirect to some ip 25. or if user tries > to connect to www.yahoo.com:80 i rewrite dst and he realy connects to > www.google.lt:80 or smth. We have written one which can do that: http://diehard.n-r-g.com/stuff/freebsd/ -- Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 9:18:35 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F208537B401 for ; Fri, 29 Nov 2002 09:18:33 -0800 (PST) Received: from smtp.uc3m.es (smtp01.uc3m.es [163.117.136.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C25643ECD for ; Fri, 29 Nov 2002 09:18:32 -0800 (PST) (envelope-from jrh@it.uc3m.es) Received: from smtp01.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id 3FCE64319C; Fri, 29 Nov 2002 18:18:31 +0100 (CET) Received: from itserv2.lab.it.uc3m.es (itserv2.lab.it.uc3m.es [163.117.144.121]) by smtp01.uc3m.es (Postfix) with ESMTP id A37AB99E7E; Fri, 29 Nov 2002 18:18:28 +0100 (CET) Received: from it.uc3m.es (zangano.it.uc3m.es [163.117.140.41]) by itserv2.lab.it.uc3m.es (8.9.3/8.9.3) with ESMTP id SAA05117; Fri, 29 Nov 2002 18:18:28 +0100 Message-ID: <3DE7A145.18986834@it.uc3m.es> Date: Fri, 29 Nov 2002 18:17:57 +0100 From: Juan Francisco Rodriguez Hervella X-Mailer: Mozilla 4.74 [es] (X11; U; Linux 2.4.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Cc: snap-user@kame.net Subject: Sysctl and root privileges, how could I avoid them ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello: I'm implementing a modification in the file "getaddrinfo.c", which calls a sysctlbyname function, but the problem is that this sysctlbyname function call requires "root" privileges. But I can not expect all the programs linked to libinet6 (where getaddrinfo is used) to be executed as root ! So I was wondering if there's any option to avoid this, I mean, I'd very much like if my sysctl function didn't require root privileges, then all the applications linked to libinet6.a would get benefit from my modification. Any other suggestion ? If you need more info I'll be glad to explain it deeper. -- JFRH. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 10:12:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C21CB37B401 for ; Fri, 29 Nov 2002 10:12:20 -0800 (PST) Received: from sdf.lonestar.org (sdf.lonestar.org [207.202.214.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5963843E4A for ; Fri, 29 Nov 2002 10:12:20 -0800 (PST) (envelope-from omestre@sdf.lonestar.org) Received: by sdf.lonestar.org (8.11.6+3.4W/8.11.6) id gATICHD04426; Fri, 29 Nov 2002 18:12:17 GMT Date: Fri, 29 Nov 2002 18:12:17 +0000 (UTC) From: lm To: freebsd-net@freebsd.org Subject: file handle Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello all... I have one problem and i guess that you can help me... I have some FreeBSD diskless machines, 4.7 ones, working fine. The kernel have been compiled with root_nfs, bootp, and bootp_nfsroot support. So, the ip, network, mask and other configurations are been set with bootp/dhcp protocol. But the machines have hard drives, and i do not obtain nothing purchaising then without one... So, i use it. To load the kernel and for swap device. The loader.4th is working fine ...I was looking in the bootp_subr.c code, and saw whatit does... i saw the pxe.c code too, and saw the boot.netif variables. Now, because i know what variables to set, i do not want bootp anymore. :) The boot.netif.ip, boot.netif.netmask, boot.netif.rootpath and so on, i set without problems, but the boot.netif.nfshandle not. :( Browsing one more time the bootp_subr.c and pxe.c codes, i saw the procedures that set this variable. I'm trying to reproduce it in autoconf.c code, but i can't. The other variables i can set in loader.conf, but i need a function that retrieve from nfs server the nfs handle for the root filesystem. Somebody knows the nfs protocol to help me in the job to write a patch to autoconf.c and sets this variable? I guess that is not so hard task, but i do not write one c code a long time ago... :) Thanks very much!!! And sory by the english... I guess that freebsd do not think in this situation. Today, HD is not so expansive, and a misc solution is fine! Maybe, one manner for set ip mask and this magic file handle without dynamic protocols... omestre@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 11:24:10 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5193837B404 for ; Fri, 29 Nov 2002 11:24:07 -0800 (PST) Received: from mordrede.visionsix.com (mordrede.visionsix.com [65.202.119.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EAC443E4A for ; Fri, 29 Nov 2002 11:24:06 -0800 (PST) (envelope-from lists@visionsix.com) Received: from yogi (unverified [65.202.119.169]) by mordrede.visionsix.com (Vircom SMTPRS 1.4.232) with SMTP id for ; Fri, 29 Nov 2002 13:24:06 -0600 Message-ID: <005d01c297dc$6939f340$a977ca41@yogi> From: "Lewis Watson" To: "freebsd-net" Subject: FreeBSD Gateway Question / Problem Date: Fri, 29 Nov 2002 13:20:43 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I am currently trying to add another /24 network to my existing network with a FreeBSD machine as the gateway to it. Currently, I have a /24 network connected to the Internet w/ a cisco router. I have specified to the cisco router that the new /24 network is connected to 192.168.0.14, which is the external ip address of the bsd gateway machine. The internal ip address for that machine is 192.168.1.1. which is what I have specified to all systems on the new network as the gateway. I thought I had everything exactly the way it should be, except that specifically my Linux machines on the old network cannot find the new network at all. My windows machines on the old network can find the new network. The bsd machines on the old network can find the new network. Other non-Linux machines on the Internet can find the new network. The machines on the new network can find everything but the linux machines on the old network. It appears that only Linux machines cannot figure out where the new network is and I am not so sure that I have set up the bsd gateway properly. Its only one static route that has to be added so I think that routed and certainly gated is overkill. Please tell me what I need other than to specify enable_gateway="YES". I have tried enable_firewall="YES" and set it to "open" but yet I still am having these problems. What do I need to add here to get this going? Thanks. Lewis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Nov 29 16:12:10 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E45A37B401 for ; Fri, 29 Nov 2002 16:12:06 -0800 (PST) Received: from mail.onlinehome.de (pD951D488.dip.t-dialin.net [217.81.212.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 147B443EB2 for ; Fri, 29 Nov 2002 16:11:49 -0800 (PST) (envelope-from fk@duese.org) Received: from bug.shoki.lan (unknown [192.168.242.25]) by mail.onlinehome.de (Postfix) with SMTP id 3A8827C33; Sat, 30 Nov 2002 01:14:27 +0100 (CET) Date: Sat, 30 Nov 2002 01:11:47 +0100 From: Florian Kruegl To: Julian Elischer Cc: freebsd-net@FreeBSD.ORG Subject: Re: pppoe performance problems Message-Id: <20021130011147.26e4c87b.fk@duese.org> In-Reply-To: <20021128210412.7aae42e2.fk@duese.org> References: <20021127210449.299ade52.fk@duese.org> <20021128210412.7aae42e2.fk@duese.org> X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 28 Nov 2002 21:04:12 +0100 Florian Kruegl wrote: > On Wed, 27 Nov 2002 12:47:20 -0800 (PST) > Julian Elischer wrote: > > > > > > > On Wed, 27 Nov 2002, Florian Kruegl wrote: > > > > > Hi *, > > > > > > I'm trying to set up some kint of test environment for xDSL > > > devices. before wasting much time trying to explain the > > > environment here is a little picture: > > > > > > | | | | | | | | | > > > | | | | | | | | | XDSL Lines > > > +-+-+-+-+-+-+-+-+ > > > | Siemens DSLAM | > > > +-------+-------+ > > > | > > > ATM (OC3 SM) > > > | > > > +-------+-------+ fxp0 +---------------+ > > > | Brick XL +--------X-Over---------+ FreeBSD 4.6 | > > > +-------+-------+ +-------+-------+ > > > | | fxp1 > > > Ethernet Ethernet > > > 192.168.64.2 192.168.64.3 > > > | | > > > --------+---------------------------------------+----------- > > > _Internet_ > > > > > > The BrickXL operates as a bridge and bridges the VPI:VCI > > > combinations intended to be used for PPPoE and DHCP directly over > > > the X-Over link to the FreeBSD Box running pppoed and dhcpd. Using > > > tcp connections for bandwith maessurement show normal values, but > > > when using a Ethernet Test Box (SmartApp / SmartBits), which spits > > > out IP pakets at a defined rate and uses all sent frames where > > > recieved as success criteria to determine the maximum transfer > > > rate, gives rates about 60 f/s. when looking at the logs you can > > > see that at higher rates (2000f/s) there are just one or two > > > frames missing. but it takes till theese mentioned 60 f/s second > > > till all packets are recieved by the testequipment. > > > > > > my pppoe config is nothing special: > > > rc.conf > > > ---------------------------------------- > > > pppoed_enable="YES" > > > pppoed_provider="pppoe" > > > pppoed_flags="-P /var/run/pppoed.pid" > > > pppoed_interface="fxp0" > > > ---------------------------------------- > > > > > > ppp.conf > > > ---------------------------------------- > > > default: > > > set log Phase Chat IPCP CCP tun command > > > > > > pppoe: > > > allow mode direct > > > set timeout 0 > > > disable mppe > > > enable pap > > > set ifaddr 192.168.64.3/32 192.168.100.1-192.168.100.127 > > > allow users > > > accept dns > > > set dns 192.168.64.3 > > > disable lcp > > > accept lqr > > > disable deflate > > > disable pred1 > > > disable vjcomp > > > disable acfcomp > > > disable protocomp > > > set vj slotcomp off > > > ---------------------------------------- > > > > > > mpd is not a good alternative in this cas as AFAIK not capable of > > > acting as a PPPoE-Server. > > > > correct. > > > > The question is WHERE are the packets being lost?. > > more than a good point, seems that I got some man pages to read, in > order to find out who looses those packets. > > > > > Are all the generated packets being aimed at a single session? > > are they all session startup packets, or data packets on an > > already set up session? > > > > in this case there is only one setup session where only data packets > should be transfered in one direction, as this is no tcp it should be > a real unidirectional test, I even disabled LCP keepaliving. this is a > plain pppoe session. I added the code to increase buffer size to the > Spawn function, but I'll have to wait till tomorrow to plug in the > testequipment. Willing to send mail no matter if that already fixed > the problem or not. > > Something I got in my mind but forgot to put in the last mail is that > this testcycle starts with very tiny frames ( 64 Byte ) and pulls them > up in seven steps till it reaches the ethernet maximum. I never tested > anything more than with theese 64Byte frames ;( perhaps I should let > it run once completely ) > > > > > I would suspect that the socket buffer size on the > > netgraph socket that ppp is using may be too short. > > > > you can try increase the buffer size in pppoed.c using > > int newval; > > int len; > > len = sizeof (newval); > > [...] > > getsockopt( so, SOL_SOCKET, SO_RCVBUF, &newval, &len); > > newval *= 4; /* make it 4 times as big */ > > setsockopt( so, SOL_SOCKET, SO_RCVBUF, &newval, len); > > > > This should happen in the function Spawn() > > > > probably about > > if (debug) > > syslog(LOG_INFO, "Sending CONNECT from .:%s -> %s.%s", > > ngc.ourhook, ngc.path, ngc.peerhook); > > if (NgSendMsg(cs, ".:", NGM_GENERIC_COOKIE, > > NGM_CONNECT, &ngc, sizeof ngc) < 0) { > > syslog(LOG_ERR, "Cannot CONNECT PPPoE and socket nodes: > > %m");_exit(EX_OSERR); > > } > > > > > > /* HERE */ > > ========new code > > /* make the data socket buffer larger */ > > > > getsockopt( ds, SOL_SOCKET, SO_RCVBUF, &newval, &len); > > newval *= 4; /* make it 4 times as big */ > > setsockopt( ds, SOL_SOCKET, SO_RCVBUF, &newval, len); > > > > > > /* > > * If we tell the socket node not to LINGER, it will go away > > when* the last hook is removed. > > */ > > if (debug) > > syslog(LOG_INFO, "Sending NGM_SOCK_CMD_NOLINGER to socket"); > > if (NgSendMsg(cs, ".:", NGM_SOCKET_COOKIE, > > NGM_SOCK_CMD_NOLINGER, NULL, 0) < 0) { > > syslog(LOG_ERR, "Cannot send NGM_SOCK_CMD_NOLINGER: %m"); > > _exit(EX_OSERR); > > } > > > > [...] problem is some kind of solved as not any longer loosing some packets all the time, performance for a Pentium II Celeron 300 MHz is somewhere about that: FrameSize Frames/s percent 64 2650 17.81 128 2559 30.30 256 2731 60.30 512 2350 100 1024 1197 100 1280 962 100 1518 813 100 percent are based on a 10MBit half duplex ethernet link as currently no DSLAM available. The BSD Box has a quite heavy load but this is possible to work arround, going to do another test with 100 MBit full duplex link. greetings flo -- God isn't dead -- he's been busted. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 0: 7:53 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B90A37B401 for ; Sat, 30 Nov 2002 00:07:52 -0800 (PST) Received: from tokyo.ccrle.nec.de (tokyo.ccrle.nec.de [195.37.70.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFB2743EB2 for ; Sat, 30 Nov 2002 00:07:50 -0800 (PST) (envelope-from Martin.Stiemerling@ccrle.nec.de) Received: from imap.heidelberg.ccrle.nec.de (imap [192.168.102.11]) by tokyo.ccrle.nec.de (8.11.6/8.11.6) with ESMTP id gAU87ad65136; Sat, 30 Nov 2002 09:07:36 +0100 (CET) (envelope-from Martin.Stiemerling@ccrle.nec.de) Received: from ccrle.nec.de (martin.heidelberg.ccrle.nec.de [192.168.102.180]) by imap.heidelberg.ccrle.nec.de (Postfix on SuSE Linux eMail Server 3.0) with ESMTP id 69E46697D7; Sat, 30 Nov 2002 09:05:48 +0100 (CET) Message-ID: <3DE8745D.8030201@ccrle.nec.de> Date: Sat, 30 Nov 2002 09:18:37 +0100 From: Martin Stiemerling Organization: NEC -- Network Labs Europe User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc3) Gecko/20020619 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lewis Watson Cc: freebsd-net Subject: Re: FreeBSD Gateway Question / Problem References: <005d01c297dc$6939f340$a977ca41@yogi> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Lewis, sounds like your linux computers on your old network have a wrong routing entry. If you can reach any other machine (bsd to windows, windows to bsd, ...) the linux perhaps have a wrong default gateway. Martin Lewis Watson wrote: > Hello, > I am currently trying to add another /24 network to my existing network with > a FreeBSD machine as the gateway to it. Currently, I have a /24 network > connected to the Internet w/ a cisco router. I have specified to the cisco > router that the new /24 network is connected to 192.168.0.14, which is the > external ip address of the bsd gateway machine. The internal ip address for > that machine is 192.168.1.1. which is what I have specified to all systems > on > the new network as the gateway. > > I thought I had everything exactly the way it should be, except that > specifically my Linux machines on the old network cannot find the new > network at all. My windows machines on the old network can find the new > network. The bsd machines on the old network can find the new network. Other > non-Linux machines on the Internet can find the new network. The machines on > the new network can find everything but the linux machines on the old > network. It appears that only Linux machines cannot figure out where the new > network is and I am not so sure that I have set up the bsd gateway properly. > Its only one static route that has to be added so I think that routed and > certainly gated is overkill. > > Please tell me what I need other than to specify enable_gateway="YES". I > have tried enable_firewall="YES" and set it to "open" but yet I still am > having these problems. What do I need to add here to get this going? > Thanks. > Lewis > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- Martin Stiemerling NEC Europe Ltd. -- Network Laboratories Stiemerling@ccrle.nec.de IPv4: http://www.ccrle.nec.de IPv6: http://www.ipv6.ccrle.nec.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 1:16:47 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D1E637B401 for ; Sat, 30 Nov 2002 01:16:44 -0800 (PST) Received: from mordrede.visionsix.com (mordrede.visionsix.com [65.202.119.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90A8343EA9 for ; Sat, 30 Nov 2002 01:16:40 -0800 (PST) (envelope-from lists@visionsix.com) Received: from yogi (unverified [65.202.119.169]) by mordrede.visionsix.com (Vircom SMTPRS 1.4.232) with SMTP id ; Sat, 30 Nov 2002 03:16:25 -0600 Message-ID: <000e01c29850$ae535e20$a977ca41@yogi> From: "Lewis Watson" To: "Martin Stiemerling" Cc: "freebsd-net" References: <005d01c297dc$6939f340$a977ca41@yogi> <3DE8745D.8030201@ccrle.nec.de> Subject: Re: FreeBSD Gateway Question / Problem Date: Sat, 30 Nov 2002 03:13:00 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Martin, I have to agree with your logic but I have double checked and they point to the same default gateway as the other machines on the old network. I went ahead and did a route add for each linux machine (there were three) now they can find the new network as if nothing was wrong. I am still just really confused about it. Maybe they have to have a static route entered even though the router for the old network knows where the new network is.... I have tried every host over the Internet and all seem to find the new network hosts ok.... See below for a simple layout.... Internet --- Old Network --- New Network | | Another Network Anyways, Any other ideas? Thank you for your time and thoghts, Lewis ----- Original Message ----- From: "Martin Stiemerling" To: "Lewis Watson" Cc: "freebsd-net" Sent: Saturday, November 30, 2002 2:18 AM Subject: Re: FreeBSD Gateway Question / Problem > Hi Lewis, > > sounds like your linux computers on your old network have a wrong > routing entry. If you can reach any other machine (bsd to windows, > windows to bsd, ...) the linux perhaps have a wrong default gateway. > > Martin > > Lewis Watson wrote: > > Hello, > > I am currently trying to add another /24 network to my existing network with > > a FreeBSD machine as the gateway to it. Currently, I have a /24 network > > connected to the Internet w/ a cisco router. I have specified to the cisco > > router that the new /24 network is connected to 192.168.0.14, which is the > > external ip address of the bsd gateway machine. The internal ip address for > > that machine is 192.168.1.1. which is what I have specified to all systems > > on > > the new network as the gateway. > > > > I thought I had everything exactly the way it should be, except that > > specifically my Linux machines on the old network cannot find the new > > network at all. My windows machines on the old network can find the new > > network. The bsd machines on the old network can find the new network. Other > > non-Linux machines on the Internet can find the new network. The machines on > > the new network can find everything but the linux machines on the old > > network. It appears that only Linux machines cannot figure out where the new > > network is and I am not so sure that I have set up the bsd gateway properly. > > Its only one static route that has to be added so I think that routed and > > certainly gated is overkill. > > > > Please tell me what I need other than to specify enable_gateway="YES". I > > have tried enable_firewall="YES" and set it to "open" but yet I still am > > having these problems. What do I need to add here to get this going? > > Thanks. > > Lewis > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-net" in the body of the message > > > > -- > Martin Stiemerling > > NEC Europe Ltd. -- Network Laboratories Stiemerling@ccrle.nec.de > IPv4: http://www.ccrle.nec.de IPv6: http://www.ipv6.ccrle.nec.de > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 4:25:19 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD24E37B401; Sat, 30 Nov 2002 04:25:18 -0800 (PST) Received: from hotmail.com (f94.law15.hotmail.com [64.4.23.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F7A943EB2; Sat, 30 Nov 2002 04:25:18 -0800 (PST) (envelope-from soheil_hh@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 30 Nov 2002 04:25:18 -0800 Received: from 80.75.14.11 by lw15fd.law15.hotmail.msn.com with HTTP; Sat, 30 Nov 2002 12:25:18 GMT X-Originating-IP: [80.75.14.11] From: "soheil soheil" To: chris@chrishowells.co.uk Cc: freebsd-net@freebsd.org Subject: Re: Error on installing FreeBSD 4.4 on Dell Inspiron 2650 ( 2.0 GHz ) Date: Sat, 30 Nov 2002 12:25:18 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 30 Nov 2002 12:25:18.0238 (UTC) FILETIME=[8B18DBE0:01C2986B] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear All I found the way : when the kernel is going to being up to install press space at command OK>boot -c and then config:eisa 0 config:quit then install and after FreeBSD is installed do this routine again make the device eisa in config file of the kernel commented out and then compile the kernel You will get the Power of FreeBSD 4.4 over Dell Inspiron THANX _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 4:38:47 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 904F137B404 for ; Sat, 30 Nov 2002 04:38:45 -0800 (PST) Received: from hotmail.com (f101.law15.hotmail.com [64.4.23.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D64843ED1 for ; Sat, 30 Nov 2002 04:38:45 -0800 (PST) (envelope-from soheil_hh@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 30 Nov 2002 04:38:45 -0800 Received: from 80.75.14.11 by lw15fd.law15.hotmail.msn.com with HTTP; Sat, 30 Nov 2002 12:38:44 GMT X-Originating-IP: [80.75.14.11] From: "soheil soheil" To: freebsd-net@freebsd.org Subject: Divert Socket And Q. About Raw Socket Date: Sat, 30 Nov 2002 12:38:44 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 30 Nov 2002 12:38:45.0046 (UTC) FILETIME=[6BFDFD60:01C2986D] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear List first : I want to know if there is any sample of divert socket usage and divert socket programming? I see the ipfw manual it says divert socket is used but when i goto /usr/src/sbin/ipfw and trace ipfw.c i cannot find anything about divert socket i just found a raw socket. second: When i use this code of C (main.c) ....//include sections int main() { int s,fd; char buff[4096]; printf("going to make SD "); s = socket(PF_INET, IP printf("going to read"); soheil: read(s, buff, 4096); // or recv(s,buff,4096, 0); printf("done"); return 0; } After i compile it nothing about output on the screen ( none of printfs are executed ) when i comment out the line labled by soheil it works and output :going to make SD going to read .... I don't know why please help me. THANX alot Soheil hassas yeganeh _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 7: 1:13 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7727D37B401 for ; Sat, 30 Nov 2002 07:01:12 -0800 (PST) Received: from m1.bezeqint.net (m1.bezeqint.net [192.115.106.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3338843E88 for ; Sat, 30 Nov 2002 07:01:11 -0800 (PST) (envelope-from nimrod-me@bezeqint.net) Received: from localhost.bsd.net.il (bzq-231-153.red.bezeqint.net [212.179.231.153]) by m1.bezeqint.net (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id AHM84979; Sat, 30 Nov 2002 17:01:08 +0200 (IST) Received: from localhost.bsd.net.il (nimrodm@localhost [127.0.0.1]) by localhost.bsd.net.il (8.12.6/8.12.6) with ESMTP id gAUErf42001323 for ; Sat, 30 Nov 2002 16:53:41 +0200 (IST) (envelope-from nimrodm@localhost.bsd.net.il) Received: (from nimrodm@localhost) by localhost.bsd.net.il (8.12.6/8.12.3/Submit) id gAUErfeR001322 for freebsd-net@FreeBSD.ORG; Sat, 30 Nov 2002 16:53:41 +0200 (IST) (envelope-from nimrodm) From: Nimrod Mesika Date: Sat, 30 Nov 2002 16:53:41 +0200 To: freebsd-net@FreeBSD.ORG Subject: Re: Divert Socket And Q. About Raw Socket Message-ID: <20021130145341.GA1272@localhost.bsd.net.il> Mail-Followup-To: freebsd-net@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org natd is an example of divert socket usage. Try looking at /usr/src/sbin/natd/natd.c On Sat, Nov 30, 2002 at 12:38:44PM +0000, soheil soheil wrote: > Dear List > first : > I want to know if there is any sample of divert socket usage and divert > socket programming? > I see the ipfw manual it says divert socket is used but when i goto > /usr/src/sbin/ipfw > and trace ipfw.c > i cannot find anything about divert socket i just found a raw socket. -- Nimrod. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 11:45:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FA5C37B401 for ; Sat, 30 Nov 2002 11:45:10 -0800 (PST) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1505F43ECF for ; Sat, 30 Nov 2002 11:45:10 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc53.attbi.com (rwcrmhc53) with ESMTP id <200211301945090530066cj4e>; Sat, 30 Nov 2002 19:45:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA89519; Sat, 30 Nov 2002 11:41:22 -0800 (PST) Date: Sat, 30 Nov 2002 11:41:21 -0800 (PST) From: Julian Elischer To: Nimrod Mesika Cc: freebsd-net@FreeBSD.ORG Subject: Re: Divert Socket And Q. About Raw Socket In-Reply-To: <20021130145341.GA1272@localhost.bsd.net.il> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org also, try: man divert It's is quite detailed. On Sat, 30 Nov 2002, Nimrod Mesika wrote: > natd is an example of divert socket usage. Try looking at > /usr/src/sbin/natd/natd.c > > On Sat, Nov 30, 2002 at 12:38:44PM +0000, soheil soheil wrote: > > Dear List > > first : > > I want to know if there is any sample of divert socket usage and divert > > socket programming? > > I see the ipfw manual it says divert socket is used but when i goto > > /usr/src/sbin/ipfw > > and trace ipfw.c > > i cannot find anything about divert socket i just found a raw socket. > > -- > Nimrod. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 20:10:43 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F06AD37B401 for ; Sat, 30 Nov 2002 20:10:41 -0800 (PST) Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id C962743ECF for ; Sat, 30 Nov 2002 20:10:40 -0800 (PST) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:4819:2000:925:bef9:8ff8:bfad]) by shuttle.wide.toshiba.co.jp (8.11.6/8.9.1) with ESMTP id gB14ASR17569; Sun, 1 Dec 2002 13:10:29 +0900 (JST) Date: Sun, 01 Dec 2002 13:10:35 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Juan Francisco Rodriguez Hervella Cc: freebsd-net@FreeBSD.ORG, snap-user@kame.net Subject: Re: Sysctl and root privileges, how could I avoid them ? In-Reply-To: <3DE7A145.18986834@it.uc3m.es> References: <3DE7A145.18986834@it.uc3m.es> User-Agent: Wanderlust/2.6.1 (Upside Down) Emacs/21.2 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 20000228(IM140) Lines: 24 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >>>>> On Fri, 29 Nov 2002 18:17:57 +0100, >>>>> Juan Francisco Rodriguez Hervella said: > I'm implementing a modification in the > file "getaddrinfo.c", which calls a sysctlbyname > function, but the problem is that > this sysctlbyname function call requires "root" privileges. > But I can not expect all the programs linked to > libinet6 (where getaddrinfo is used) to be executed as root ! Perhaps your code tries the write operation of sysctl, in which case the super user privilege is required by default. If your goal can be achieved without a write operation, the easiest way would be to just avoid the write. If you really need a write operation for every user, you may probably have to reconsider the library design. Since sysctl tends to affect fundamental behavior of kernel, the required privilege is basically reasonable and should not be overridden as an easy compromise. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 20:45:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86B3737B401 for ; Sat, 30 Nov 2002 20:45:10 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id D47BC43EC2 for ; Sat, 30 Nov 2002 20:45:09 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <20021201044508002001g7k6e>; Sun, 1 Dec 2002 04:45:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id UAA92924; Sat, 30 Nov 2002 20:43:42 -0800 (PST) Date: Sat, 30 Nov 2002 20:43:41 -0800 (PST) From: Julian Elischer To: Florian Kruegl Cc: freebsd-net@FreeBSD.ORG Subject: Re: pppoe performance problems In-Reply-To: <20021130011147.26e4c87b.fk@duese.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 30 Nov 2002, Florian Kruegl wrote: > [...] > > problem is some kind of solved as not any longer loosing some packets > all the time, performance for a Pentium II Celeron 300 MHz is somewhere > about that: does this mean that increasing the socket buffer size fixes the problem? > > FrameSize Frames/s percent > 64 2650 17.81 > 128 2559 30.30 > 256 2731 60.30 > 512 2350 100 > 1024 1197 100 > 1280 962 100 > 1518 813 100 > > percent are based on a 10MBit half duplex ethernet link as currently no > DSLAM available. The BSD Box has a quite heavy load but this is possible > to work arround, going to do another test with 100 MBit full duplex > link. > > greetings > > flo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Nov 30 23:49:36 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7728937B401 for ; Sat, 30 Nov 2002 23:49:33 -0800 (PST) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD96243ED1 for ; Sat, 30 Nov 2002 23:49:32 -0800 (PST) (envelope-from babolo@aaz.links.ru) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by aaz.links.ru (8.12.6/8.12.6) with ESMTP id gB17p3Dh068191; Sun, 1 Dec 2002 10:51:03 +0300 (MSK) (envelope-from babolo@aaz.links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.12.6/8.12.6/Submit) id gB17p2BE068188; Sun, 1 Dec 2002 10:51:02 +0300 (MSK) Message-Id: <200212010751.gB17p2BE068188@aaz.links.ru> Subject: Re: FreeBSD Gateway Question / Problem X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: <000e01c29850$ae535e20$a977ca41@yogi> To: Lewis Watson Date: Sun, 1 Dec 2002 10:51:01 +0300 (MSK) From: "."@babolo.ru Cc: Martin Stiemerling , freebsd-net X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Probably default router issue ICMP redirect and do not route packets from the old net to new. And probably linux box firewalls ICMP or in an another way does not install route from this redirect. > Hi Martin, > I have to agree with your logic but I have double checked and they point to > the same default gateway as the other machines on the old network. I went > ahead and did a route add for each linux machine (there were three) now they > can find the new network as if nothing was wrong. I am still just really > confused about it. Maybe they have to have a static route entered even > though the router for the old network knows where the new network is.... I > have tried every host over the Internet and all seem to find the new network > hosts ok.... See below for a simple layout.... > > Internet --- Old Network --- New Network > | > | > Another Network > > > Anyways, Any other ideas? > Thank you for your time and thoghts, > Lewis > > > ----- Original Message ----- > From: "Martin Stiemerling" > To: "Lewis Watson" > Cc: "freebsd-net" > Sent: Saturday, November 30, 2002 2:18 AM > Subject: Re: FreeBSD Gateway Question / Problem > > > > Hi Lewis, > > > > sounds like your linux computers on your old network have a wrong > > routing entry. If you can reach any other machine (bsd to windows, > > windows to bsd, ...) the linux perhaps have a wrong default gateway. > > > > Martin > > > > Lewis Watson wrote: > > > Hello, > > > I am currently trying to add another /24 network to my existing network > with > > > a FreeBSD machine as the gateway to it. Currently, I have a /24 network > > > connected to the Internet w/ a cisco router. I have specified to the > cisco > > > router that the new /24 network is connected to 192.168.0.14, which is > the > > > external ip address of the bsd gateway machine. The internal ip address > for > > > that machine is 192.168.1.1. which is what I have specified to all > systems > > > on > > > the new network as the gateway. > > > > > > I thought I had everything exactly the way it should be, except that > > > specifically my Linux machines on the old network cannot find the new > > > network at all. My windows machines on the old network can find the new > > > network. The bsd machines on the old network can find the new network. > Other > > > non-Linux machines on the Internet can find the new network. The > machines on > > > the new network can find everything but the linux machines on the old > > > network. It appears that only Linux machines cannot figure out where the > new > > > network is and I am not so sure that I have set up the bsd gateway > properly. > > > Its only one static route that has to be added so I think that routed > and > > > certainly gated is overkill. > > > > > > Please tell me what I need other than to specify enable_gateway="YES". I > > > have tried enable_firewall="YES" and set it to "open" but yet I still am > > > having these problems. What do I need to add here to get this going? > > > Thanks. > > > Lewis > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-net" in the body of the message > > > > > > > > -- > > Martin Stiemerling > > > > NEC Europe Ltd. -- Network Laboratories Stiemerling@ccrle.nec.de > > IPv4: http://www.ccrle.nec.de IPv6: http://www.ipv6.ccrle.nec.de > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message