From owner-freebsd-net Sun Mar 10 4:27: 4 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail016.syd.optusnet.com.au (mail016.syd.optusnet.com.au [203.2.75.176]) by hub.freebsd.org (Postfix) with ESMTP id 19CA837B416 for ; Sun, 10 Mar 2002 04:26:49 -0800 (PST) Received: from doorway.homeip.net (c25720.sunsh1.vic.optusnet.com.au [203.164.32.100]) by mail016.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g2ACQm610778 for ; Sun, 10 Mar 2002 23:26:48 +1100 Received: from tbird (tbird.home.lan [192.168.1.5]) by doorway.homeip.net (8.11.6/8.11.0) with SMTP id g2ACQvK32046 for ; Sun, 10 Mar 2002 23:26:57 +1100 (EST) (envelope-from markhannon@optushome.com.au) Message-ID: <001601c1c82e$de575240$0501a8c0@home.lan> From: "Mark Hannon" To: Subject: Timestep/Permit VPN client Date: Sun, 10 Mar 2002 23:26:56 +1100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C1C88B.119E9760" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 Disposition-Notification-To: "Mark Hannon" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 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 multi-part message in MIME format. ------=_NextPart_000_0013_01C1C88B.119E9760 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I can successfully connect from my employers laptop (Win2K, = Permit/Timestep VPN client) through my home lan, through my FreeBSD firewall/NAT box and into work. The = Permit/Timestep login uses a softkey login process (ie I press my PIN code on a little key generator at = login) and seems to be some form of IPSec tunnel (I needed to open up port 500 on the firewall to get things = going) I would like to be able to set this up without Win2K. Does anyone know = anything about this particular VPN client? Is there a FreeBSD equivalent? Regards/Mark ------=_NextPart_000_0013_01C1C88B.119E9760 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I can successfully connect from my = employers laptop=20 (Win2K, Permit/Timestep VPN client) through my
home lan, through my FreeBSD = firewall/NAT box and=20 into work.  The Permit/Timestep login uses a softkey
login process (ie I press my PIN code = on a little=20 key generator at login) and seems to be some form of
IPSec tunnel (I needed to open up port = 500 on the=20 firewall to get things going)
 
I would like to be able to set this up = without=20 Win2K.  Does anyone know = anything about this=20 particular
VPN client?  Is there a FreeBSD=20 equivalent?
 
Regards/Mark
------=_NextPart_000_0013_01C1C88B.119E9760-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Mar 10 10:33:16 2002 Delivered-To: freebsd-net@freebsd.org Received: from arnold.neland.dk (0x3ef34dcd.albnxx2.adsl.tele.dk [62.243.77.205]) by hub.freebsd.org (Postfix) with ESMTP id AABEA37B400 for ; Sun, 10 Mar 2002 10:33:11 -0800 (PST) Received: from gina ([192.168.5.109]) by arnold.neland.dk (8.12.2/8.12.2) with SMTP id g2AIYHQc080921 for ; Sun, 10 Mar 2002 19:34:17 +0100 (CET) (envelope-from leifn@neland.dk) Message-ID: <003f01c1c862$31308c60$6d05a8c0@neland.dk> From: "Leif Neland" To: Subject: Changing MTU via dhcp (OT: how to see it in windows) Date: Sun, 10 Mar 2002 19:34:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 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 SSBoYXZlIGJlZW4gdG9sZCBieSBhIGNsaWVudCB0byBjaGFuZ2UgdGhlIE1UVSBoaXMgd2luZG93 cyBtYWNoaW5lcyB1c2UsIGZyb20gdGhlIGRoY3Atc2VydmVyIG9uIGhpcyBGcmVlQlNELg0KDQpJ IGhhdmUgYWRkZWQgdGhpczoNCiAgIG9wdGlvbiBpbnRlcmZhY2UtbXR1IDUwMDsgKEp1c3QgdG8g Y2hhbmdlIGl0IHRvIHNvbWV0aGluZy4uLikNCg0KVGhlIGJpZyBxdWllc3Rpb24gaXM6IEkgZG9u J3Qga25vdyBpZiB0aGlzIHdvcmtzLCB3aGVuIEkgdHJ5IGl0ICJhdCBob21lIiwgSSBkb24ndCBr bm93IHdoZXJlIHRvIGxvb2sgZm9yIGl0IGluIG15IHdpbjk4Lg0KDQpTaG91bGQgSSB1c2UgdGNw ZHVtcCwgb3IgaXMgaXQgdmlzaWJsZSBpbiB3aW5kb3dzPw0KDQpMZWlmDQoNCg0KDQotLS0NCmh0 dHA6Ly9tZW1iZXJzLnVkLmNvbS9zZXJ2aWNlcy90ZWFtcy90ZWFtLmh0bT9pZD1DNDdGQjc3MC0w QTBBLTQ1MkItODg1MS04NzQ2NDZDMkIzNzUNCg== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Mar 10 12: 1:44 2002 Delivered-To: freebsd-net@freebsd.org Received: from mdv.dhs.org (mdv.xs4all.nl [213.84.209.48]) by hub.freebsd.org (Postfix) with ESMTP id 5F67837B402 for ; Sun, 10 Mar 2002 12:01:35 -0800 (PST) Received: (from root@localhost) by mdv.dhs.org (8.11.6/8.11.6) id g2AK1Xw22893; Sun, 10 Mar 2002 21:01:33 +0100 (CET) (envelope-from mdevries@haveityourway.nl) Received: from marcel.haveityourway.nl (marcel.mdv.int [192.168.1.3]) by mdv.dhs.org (8.11.6/8.11.6av) with ESMTP id g2AK1VJ22885; Sun, 10 Mar 2002 21:01:31 +0100 (CET) (envelope-from mdevries@haveityourway.nl) Message-Id: <5.1.0.14.2.20020310210007.02562278@outshine> X-Sender: mdevries@outshine X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 10 Mar 2002 21:01:38 +0100 To: "Leif Neland" , From: Marcel de Vries Subject: Re: Changing MTU via dhcp (OT: how to see it in windows) In-Reply-To: <003f01c1c862$31308c60$6d05a8c0@neland.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS perl-11 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 Yes, I think or hope for you that it's stored in the registry. there are some tweaks at www.regedit.com that point the location to the MTU. Bye, Marcel At 19:34 10-03-2002 +0100, Leif Neland wrote: >I have been told by a client to change the MTU his windows machines use,=20 >from the dhcp-server on his FreeBSD. > >I have added this: > option interface-mtu 500; (Just to change it to something...) > >The big quiestion is: I don't know if this works, when I try it "at home",= =20 >I don't know where to look for it in my win98. > >Should I use tcpdump, or is it visible in windows? > >Leif > > > >--- >http://members.ud.com/services/teams/team.htm?id=3DC47FB770-0A0A-452B-8851-= 874646C2B375 >A0A0=E8R{.n=C7+=89=B7=ACzwfj)m=A2f=A3=A2=B7h=9A=81ky=E0R=8A=E0=C2+a=BA{.n= =C7+=89=B7=9F=AD=E7=9B=B1=D9=DE=B6)=ED=85=E6=E8w*=B6=A6z=CB=81=C2+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Mar 10 12:24:35 2002 Delivered-To: freebsd-net@freebsd.org Received: from artemis.drwilco.net (diana.drwilco.net [66.48.127.79]) by hub.freebsd.org (Postfix) with ESMTP id 9B46B37B400 for ; Sun, 10 Mar 2002 12:24:28 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g2AKONV09207 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Sun, 10 Mar 2002 15:24:25 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020310213335.01c3dbc8@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 10 Mar 2002 21:35:24 +0100 To: Marcel de Vries , "Leif Neland" , From: "Rogier R. Mulhuijzen" Subject: Re: Changing MTU via dhcp (OT: how to see it in windows) In-Reply-To: <5.1.0.14.2.20020310210007.02562278@outshine> References: <003f01c1c862$31308c60$6d05a8c0@neland.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable 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 With windows this would be a bit dodgy though. Even if it is stored in the= =20 registry, I doubt it reflects runtime values. And thus you still don't know= =20 whether or not the MTU setting is accepted from the DHCP server. I would suggest using tcpdump or some other sniffing tool to see how large= =20 the packets on the wire are. Doc At 21:01 10-3-2002 +0100, Marcel de Vries wrote: >Yes, > >I think or hope for you that it's stored in the registry. >there are some tweaks at www.regedit.com that point the location to the= MTU. > >Bye, > >Marcel > >At 19:34 10-03-2002 +0100, Leif Neland wrote: >>I have been told by a client to change the MTU his windows machines use,= =20 >>from the dhcp-server on his FreeBSD. >> >>I have added this: >> option interface-mtu 500; (Just to change it to something...) >> >>The big quiestion is: I don't know if this works, when I try it "at=20 >>home", I don't know where to look for it in my win98. >> >>Should I use tcpdump, or is it visible in windows? >> >>Leif >> >> >> >>--- >>http://members.ud.com/services/teams/team.htm?id=3DC47FB770-0A0A-452B-8851= -874646C2B375 >>A0A0=E8R{.n=C7+=89=B7=ACzwfj)m=A2f=A3=A2=B7h=9A=81ky=E0R=8A=E0=C2+a=BA{.n= =C7+=89=B7=9F=AD=E7=9B=B1=D9=DE=B6)=ED=85=E6=E8w*=B6=A6z=CB=81=C2+ > > > >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 Sun Mar 10 12:46:17 2002 Delivered-To: freebsd-net@freebsd.org Received: from arnold.neland.dk (0x3ef34dcd.albnxx2.adsl.tele.dk [62.243.77.205]) by hub.freebsd.org (Postfix) with ESMTP id 65F6437B402 for ; Sun, 10 Mar 2002 12:46:14 -0800 (PST) Received: from gina ([192.168.5.109]) by arnold.neland.dk (8.12.2/8.12.2) with SMTP id g2AKl1Qc093201; Sun, 10 Mar 2002 21:47:01 +0100 (CET) (envelope-from leifn@neland.dk) Message-ID: <001d01c1c874$bd11b3a0$6d05a8c0@neland.dk> From: "Leif Neland" To: "Marcel de Vries" , , "Rogier R. Mulhuijzen" References: <003f01c1c862$31308c60$6d05a8c0@neland.dk> <5.1.0.14.0.20020310213335.01c3dbc8@mail.drwilco.net> Subject: Re: Changing MTU via dhcp (OT: how to see it in windows) Date: Sun, 10 Mar 2002 21:47:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 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 DQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KRnJvbTogIlJvZ2llciBSLiBNdWxodWlq emVuIiA8ZHJ3aWxjb0BkcndpbGNvLm5ldD4NClRvOiAiTWFyY2VsIGRlIFZyaWVzIiA8bWRldnJp ZXNAaGF2ZWl0eW91cndheS5ubD47ICJMZWlmIE5lbGFuZCIgPGxlaWZuQG5lbGFuZC5kaz47IDxm cmVlYnNkLW5ldEBGcmVlQlNELk9SRz4NClNlbnQ6IFN1bmRheSwgTWFyY2ggMTAsIDIwMDIgOToz NSBQTQ0KU3ViamVjdDogUmU6IENoYW5naW5nIE1UVSB2aWEgZGhjcCAoT1Q6IGhvdyB0byBzZWUg aXQgaW4gd2luZG93cykNCg0KDQo+IFdpdGggd2luZG93cyB0aGlzIHdvdWxkIGJlIGEgYml0IGRv ZGd5IHRob3VnaC4gIEV2ZW4gaWYgaXQgaXMgc3RvcmVkIGluIHRoZSANCj4gcmVnaXN0cnksIEkg ZG91YnQgaXQgcmVmbGVjdHMgcnVudGltZSB2YWx1ZXMuIEFuZCB0aHVzIHlvdSBzdGlsbCBkb24n dCBrbm93IA0KPiB3aGV0aGVyIG9yIG5vdCB0aGUgTVRVIHNldHRpbmcgaXMgYWNjZXB0ZWQgZnJv bSB0aGUgREhDUCBzZXJ2ZXIuDQo+IA0KPiBJIHdvdWxkIHN1Z2dlc3QgdXNpbmcgdGNwZHVtcCBv ciBzb21lIG90aGVyIHNuaWZmaW5nIHRvb2wgdG8gc2VlIGhvdyBsYXJnZSANCj4gdGhlIHBhY2tl dHMgb24gdGhlIHdpcmUgYXJlLg0KPiANCldpbmRvd3MgcGluZyBjYW4gc2V0IHRoZSAiZG9uJ3Qg ZnJhZ21lbnQiIGJpdCwgYW5kIHRoZW4gZGV0ZXJtaW5lIHRoZSBtdHUgdGhhdCB3YXkgYnkgdHJp YWwgYW5kIGVycm9yIC8gYmluYXJ5IHNlYXJjaC4NCmZwc2QgcGluZyBkb2Vzbid0IGhhdmUgdGhh dCBvcHRpb24uIEhvd2V2ZXIsIGlmIEkgcGluZyB0aGUgd2luLWJveCB3aXRoIHBhY2tldHMgb2Yg MTAwMDAgYnl0ZXMsIEkgc2VlIHRoZSBwaW5nIGdldHMgZnJhZ21lbnRlZCBpbiBwaWVjZXMgb2Yg MTQ4MC4gU28gaXQgYXBwZWFycyB0aGF0IHdpbjk4IGRvZXNuJ3Qgb2JleSB0aGUgbXR1IHNpemUg ZGhjcCBzZXRzLiBEYW1uLi4uDQoNCkxlaWYNCg0KDQoNCg== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Mar 10 17:20:28 2002 Delivered-To: freebsd-net@freebsd.org Received: from web11604.mail.yahoo.com (web11604.mail.yahoo.com [216.136.172.56]) by hub.freebsd.org (Postfix) with SMTP id 32D9337B41F for ; Sun, 10 Mar 2002 17:20:22 -0800 (PST) Message-ID: <20020311012022.30024.qmail@web11604.mail.yahoo.com> Received: from [202.94.0.18] by web11604.mail.yahoo.com via HTTP; Sun, 10 Mar 2002 17:20:21 PST Date: Sun, 10 Mar 2002 17:20:21 -0800 (PST) From: tang hongbin Subject: A problem about TAP under freebsd To: freebsd-net@FreeBSD.ORG In-Reply-To: <20020308142106.A9209@Odin.AC.HMC.Edu> 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 Dear all; After I compile tap driver option into kernel. I can build tapX device and also see them by ifconfig. After assigning IP addresses to these virtual ethernet devices, I try to impose firewall policies on them, blocking in and out data. But I can ping these taps device. These rules don't take effective at all. I used ip_filter v3.4.8 to test. Could you give a hand? bill.tang __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 1:19:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 052BD37B405 for ; Mon, 11 Mar 2002 01:19:14 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2B9JDk40453; Mon, 11 Mar 2002 01:19:13 -0800 (PST) (envelope-from rizzo) Date: Mon, 11 Mar 2002 01:19:13 -0800 From: Luigi Rizzo To: net@freebsd.org Subject: can we set options for nfsroot mount from bootp ? Message-ID: <20020311011913.D40002@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i 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, is there a way to pass nfs mount options to the kernel via bootp ? I notice that the system defaults to very large blocksizes, which causes a lot of IP fragmentation and lots of trouble when going through a bottleneck. You can set the mount options through fstab, but before getting there you need to access the root filesystem... cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 1:30:34 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 5D78B37B405 for ; Mon, 11 Mar 2002 01:30:29 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2B9UT840578 for net@FreeBSD.ORG; Mon, 11 Mar 2002 01:30:29 -0800 (PST) (envelope-from rizzo) Date: Mon, 11 Mar 2002 01:30:29 -0800 From: Luigi Rizzo To: net@FreeBSD.ORG Subject: Re: can we set options for nfsroot mount from bootp ? Message-ID: <20020311013029.E40002@iguana.icir.org> References: <20020311011913.D40002@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020311011913.D40002@iguana.icir.org> User-Agent: Mutt/1.3.23i 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 UTSL... from sys/nfs/bootp_subr.c /* Site specific tags: */ #define TAG_SWAP 128 #define TAG_SWAPSIZE 129 #define TAG_ROOTOPTS 130 #define TAG_SWAPOPTS 131 so something like T130="tcp" does the job... cheers luigi On Mon, Mar 11, 2002 at 01:19:13AM -0800, Luigi Rizzo wrote: > Hi, > is there a way to pass nfs mount options to the kernel via bootp ? > I notice that the system defaults to very large blocksizes, > which causes a lot of IP fragmentation and lots of trouble > when going through a bottleneck. > > You can set the mount options through fstab, but before getting > there you need to access the root filesystem... > > cheers > luigi > > 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 Mon Mar 11 2:10: 8 2002 Delivered-To: freebsd-net@freebsd.org Received: from web20001.mail.yahoo.com (web20001.mail.yahoo.com [216.136.225.46]) by hub.freebsd.org (Postfix) with SMTP id BF62737B405 for ; Mon, 11 Mar 2002 02:10:03 -0800 (PST) Message-ID: <20020311101003.12203.qmail@web20001.mail.yahoo.com> Received: from [61.223.3.15] by web20001.mail.yahoo.com via HTTP; Mon, 11 Mar 2002 02:10:03 PST Date: Mon, 11 Mar 2002 02:10:03 -0800 (PST) From: Vincent Chen Subject: pptp problem? To: freebsd-net@freebsd.org 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 Dear all, I am trying to establish PPTP link between a windows 2000 pro and freebsd 4.5 running mpd 3.6. I must disable encryption or link will failed. Please help! here is the log: [pptp] up: 1 link, total bandwidth 64000 bps [pptp] IPCP: Up event [pptp] IPCP: state change Starting --> Req-Sent [pptp] IPCP: SendConfigReq #1 IPADDR 10.1.2.1 [pptp] CCP: Open event [pptp] CCP: state change Initial --> Starting [pptp] CCP: LayerStart [pptp] CCP: Up event [pptp] CCP: state change Starting --> Req-Sent [pptp] CCP: SendConfigReq #1 [pptp] CCP: rec'd Configure Request #4 link 0 (Req-Sent) MPPC 0x01000040: MPPE, 128 bit, stateless [pptp] CCP: SendConfigRej #4 MPPC 0x01000040: MPPE, 128 bit, stateless [pptp] IPCP: rec'd Configure Request #5 link 0 (Req-Sent) IPADDR 0.0.0.0 NAKing with 10.1.2.251 PRIDNS 0.0.0.0 NAKing with 10.1.2.1 PRINBNS 0.0.0.0 NAKing with 10.1.2.1 SECDNS 0.0.0.0 SECNBNS 0.0.0.0 [pptp] IPCP: SendConfigRej #5 SECDNS 0.0.0.0 SECNBNS 0.0.0.0 [pptp] IPCP: rec'd Configure Ack #1 link 0 (Req-Sent) IPADDR 10.1.2.1 [pptp] IPCP: state change Req-Sent --> Ack-Rcvd pptp0-0: ignoring SetLinkInfo [pptp] CCP: rec'd Configure Nak #1 link 0 (Req-Sent) MPPC 0x00000000: [pptp] CCP: SendConfigReq #2 [pptp] LCP: rec'd Terminate Request #6 link 0 (Opened) [pptp] LCP: state change Opened --> Stopping [pptp] LCP: phase shift NETWORK --> TERMINATE [pptp] up: 0 links, total bandwidth 9600 bps [pptp] IPCP: Down event [pptp] IPCP: state change Ack-Rcvd --> Starting [pptp] CCP: Down event [pptp] CCP: state change Req-Sent --> Starting [pptp] CCP: Close event [pptp] CCP: state change Starting --> Initial [pptp] CCP: LayerFinish [pptp] LCP: SendTerminateAck #2 [pptp] LCP: LayerDown [pptp] LCP: rec'd Terminate Request #7 link 0 (Stopping) [pptp] LCP: SendTerminateAck #3 [pptp] LCP: state change Stopping --> Stopped [pptp] LCP: phase shift TERMINATE --> ESTABLISH [pptp] LCP: LayerFinish [pptp] device: CLOSE event in state UP __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 4:21:44 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.flarion.com (mail.flarion.com [63.103.94.23]) by hub.freebsd.org (Postfix) with ESMTP id E3EE037B402 for ; Mon, 11 Mar 2002 04:21:39 -0800 (PST) Received: by rrmail01.lab.flarion.com with Internet Mail Service (5.5.2653.19) id ; Sun, 10 Mar 2002 14:40:52 -0500 Message-ID: <8C92E23A3E87FB479988285F9E22BE460235FB@ftmail> From: Matt Impett To: "'freebsd-net@freebsd.org'" Subject: FW: policy routing to tunnels.. Date: Sun, 10 Mar 2002 14:40:45 -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 > Hello.. I am working on a mobileIP implementation on freeBSD, and I have a > question about how to do something with the freeBSD IP networking stack. > This is the jist: > > Basically, what I want to be able to do is to add a policy route to a > freebsd router so that it will take packets with specific source addresses > and pass them to a tunnel. Now, I have seen examples of the ipfw command > that would handle this, but I don't think they apply to me. This is why: > > I have created a gif tunnel and have set the physsrc and physdest > addresses of the tunnel but I have not actually given the point to point > interface its addresses (ie, with the ifconfig command, or something > similar). The reason why is that for the majority of the tunnel lifetime, > I do not want to transmit any packets on it, but only receive. Therefore, > I want no route to the tunnel for any IP addresses. However, at some > point during the tunnel lifetime, I may want to redirect packets with > particular source addresses into the tunnel. > > Now, if I had a routing table entry which pointed to the tunnel, something > like this: > Destination Gateway Netif > a.b.c.d gif0 gif0 > > then I guess I could do something like this with ipfw: > ipfw add fwd a.b.c.d ip from to any > > However, I have no routes in my routing table for this tunnel. The reason > why is there is no destination address which I always want to tunnel for. > I really only want to tunnel based on source address. (As I side note, > would the above work?? I ask because I guess a hack to make this work > would be to make up a dummy private IP and put a route in for it using my > tunnel as outgoing interface, then I could use the firewalling code to > direct packets to that "fake route".. ugh..) > > My question then is it is possible to route packets with particular source > addresses directly to a particular interface?? Or, is there some other way > I could accomplish this same thing?? > > Now, for anyone familiar with mobileIP and wondering what exactly I am > trying to do with all this craziness, I am trying to implement mobileIP > reverse tunneling (RFC 2344). > > Also, I have never posted here before, so I don't really know the > protocol, but here is some (potentially) useful info: > FreeBSD version: 4.4-RC5 > > thanks for your time, > matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 6:10:17 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.takas.lt (mail-src.takas.lt [212.59.31.66]) by hub.freebsd.org (Postfix) with ESMTP id 2EE0937B405 for ; Mon, 11 Mar 2002 06:10:09 -0800 (PST) Received: from alpha ([212.59.27.251]) by mail.takas.lt with Microsoft SMTPSVC(5.0.2195.2966); Mon, 11 Mar 2002 16:10:07 +0200 Message-ID: <00bd01c1c906$72f7be30$fb1b3bd4@alpha> From: "alpha" To: "FreeBSD" Subject: help with tcp checksum Date: Mon, 11 Mar 2002 16:10:02 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 11 Mar 2002 14:10:08.0298 (UTC) FILETIME=[7335D8A0:01C1C906] 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, nobody wants to help me with checksum. so i decided to ask very simply. here's my generated all packet from david c. witt site's example code: 0000 00 50 04 35 44 49 00 80 48 AF D8 3E 08 00 45 00 .P.5DI..H..>..E. 0010 00 BC 49 00 00 00 FF 06 F0 E4 C0 A8 00 05 C0 A8 ..I............. 0020 00 01 00 50 04 06 00 AA 00 5F 00 0C 50 62 50 11 ...P....._..PbP. 0030 05 B4 CA CF 00 00 48 54 54 50 2F 31 2E 30 20 32 ......HTTP/1.0.2 0040 30 30 20 4F 4B 0D 0A 43 6F 6E 74 65 6E 74 2D 74 00.OK..Content-t 0050 79 70 65 3A 20 74 65 78 74 2F 68 74 6D 6C 0D 0A ype:.text/html.. 0060 0D 0A 3C 48 54 4D 4C 3E 3C 62 6F 64 79 3E 53 69 ..Si 0070 6D 6D 53 74 69 63 6B 26 72 65 67 3B 20 57 65 62 mmStick®.Web 0080 20 53 65 72 76 65 72 3C 62 72 3E 75 73 69 6E 67 .Server
using 0090 20 61 20 50 49 43 20 31 36 46 38 37 34 3C 62 72 .a.PIC.16F874
by.David.C..Wit 00B0 74 20 28 31 32 2F 32 34 2F 30 30 29 3C 2F 62 6F t.(12/24/00) TCP header begins at 0022h. as you can see checksum generated is CACFh. and simple question: how to get this checksum? i know all algorithms, but they show me CAE3h, but not CACFh. if you don't be lazy and try to calculate it, you'll see that i'm right. but how computer accepts packet with this checksum and rejects with correct - CAE3h. i read rfc1071 and rfc793 and i did all by these documentations and i know this checksum algotirhm, but i can't understand how to get CACFh checksum from this TCP header. help me please! Darius To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 7:19:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from catalyst.sasknow.net (catalyst.sasknow.net [207.195.92.130]) by hub.freebsd.org (Postfix) with ESMTP id F122A37B404 for ; Mon, 11 Mar 2002 07:19:12 -0800 (PST) Received: from localhost (ryan@localhost) by catalyst.sasknow.net (8.11.6/8.11.6) with ESMTP id g2BFKEO04710; Mon, 11 Mar 2002 09:20:16 -0600 (CST) (envelope-from ryan@sasknow.com) X-Authentication-Warning: catalyst.sasknow.net: ryan owned process doing -bs Date: Mon, 11 Mar 2002 09:20:14 -0600 (CST) From: Ryan Thompson To: alpha Cc: FreeBSD Subject: Re: help with tcp checksum In-Reply-To: <00bd01c1c906$72f7be30$fb1b3bd4@alpha> Message-ID: <20020311090940.B99093-100000@catalyst.sasknow.net> 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 alpha wrote to FreeBSD: > TCP header begins at 0022h. as you can see checksum generated is > CACFh. and simple question: how to get this checksum? i know all > algorithms, but they show me CAE3h, but not CACFh. if you > don't be lazy and try to calculate it, ^^^^^^^^^^^^^ :-) Well, honestly, I haven't had my coffee yet, so I'd probably screw it up anyway. I haven't hand-calculated one of these this century, but perhaps you are forgetting to take the checksum of the IP fields? In the implementations, the TCP checksum is filled with zeros and is calculated 1's comp. on most or all of the IP header fields, as well. Yes, this violates layers. No, I don't remember the exact specification. And, what's wrong with send(2), anyway? :-) Maybe if you post some of your work, outline the steps (as opposed to the wrong answer :-), someone can spot how you got that wrong answer. No part marks unless you show your work. :-) - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 7:31:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.takas.lt (mail-src.takas.lt [212.59.31.66]) by hub.freebsd.org (Postfix) with ESMTP id 5BA7C37B41C for ; Mon, 11 Mar 2002 07:30:46 -0800 (PST) Received: from alpha ([212.59.27.166]) by mail.takas.lt with Microsoft SMTPSVC(5.0.2195.2966); Mon, 11 Mar 2002 17:30:44 +0200 Message-ID: <003901c1c911$b5f90f30$a61b3bd4@alpha> From: "alpha" To: "Ryan Thompson" Cc: "FreeBSD" References: <20020311090940.B99093-100000@catalyst.sasknow.net> Subject: Re: help with tcp checksum Date: Mon, 11 Mar 2002 17:29:31 +0200 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 11 Mar 2002 15:30:45.0130 (UTC) FILETIME=[B62FD6A0:01C1C911] 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 the first place thanx for answering. i'm affraid i can't show my work becouse it's confidential. I'm working on one comercial project. > Well, honestly, I haven't had my coffee yet, so I'd probably screw it > up anyway. I haven't hand-calculated one of these this century, but > perhaps you are forgetting to take the checksum of the IP fields? In ?? you mean IP fields must be calculated in TCP header checksum too? > Maybe if you post some of your work, outline the steps (as opposed to > the wrong answer :-), someone can spot how you got that wrong answer. you know, i downloaded free example from internet, but text portion's checksum of TCP header was writed by hand. i relalculated it and i got wrong answer. and i don't know why. here a part from this example: load_TCP_header( 0x5000 | TCP_ACK | TCP_FIN, 0x07AC, 148); ^^^^^^ this is text portion's checksum, but i get 0798h checksum somehow // Number of bytes include in load_IP_header call printf(outdata,"HTTP/1.0 200 OK\r\n"); printf(outdata,"Content-type: text/html\r\n\r\n"); printf(outdata,"SimmStick® Web Server
"); printf(outdata,"using a PIC 16F874
"); printf(outdata,"by David C. Witt (12/24/00)"); ............................................................................ ................................... void load_TCP_header(long int data_flags, long int tcp_chksum, long int tcp_length) { long int prev_chksum; chksum = tcp_chksum; // calculate checksum of pseudo header prev_chksum = chksum; chksum += ((long)my_ip[0]<<8) + my_ip[1]; if (chksum < prev_chksum) chksum++; prev_chksum = chksum; chksum += ((long)my_ip[2]<<8) + my_ip[3]; if (chksum < prev_chksum) chksum++; prev_chksum = chksum; chksum += ((long)source_ip[0]<<8) + source_ip[1]; if (chksum < prev_chksum) chksum++; prev_chksum = chksum; chksum += ((long)source_ip[2]<<8) + source_ip[3]; if (chksum < prev_chksum) chksum++; prev_chksum = chksum; chksum += TCP; if (chksum < prev_chksum) chksum++; prev_chksum = chksum; chksum += tcp_length; if (chksum < prev_chksum) chksum++; // source port outportw(NIC_DATA, tcp_dest_port); // destination port outportw(NIC_DATA, tcp_source_port); // sequence number outportw(NIC_DATA, xm_seq[0]); outportw(NIC_DATA, xm_seq[1]); // acknowledment number outportw(NIC_DATA, xm_ack[0]); outportw(NIC_DATA, xm_ack[1]); // data offset and flags outportw(NIC_DATA, data_flags); // window outportw(NIC_DATA, 1460); // checksum outportw(NIC_DATA, ~chksum); // urgent pointer outportw(NIC_DATA, 0); ............................................................................ ............. be so kind to help me please. Darius To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 12:30: 9 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 04B8237B404 for ; Mon, 11 Mar 2002 12:30:07 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA30159; Mon, 11 Mar 2002 12:21:10 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g2BKKSL62388; Mon, 11 Mar 2002 12:20:28 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200203112020.g2BKKSL62388@arch20m.dellroad.org> Subject: Re: pptp problem? In-Reply-To: <20020311101003.12203.qmail@web20001.mail.yahoo.com> "from Vincent Chen at Mar 11, 2002 02:10:03 am" To: Vincent Chen Date: Mon, 11 Mar 2002 12:20:28 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Vincent Chen writes: > I am trying to establish PPTP link between a windows > 2000 pro and freebsd 4.5 running mpd 3.6. I must > disable encryption or link will failed. Please help! > > here is the log: > > [pptp] up: 1 link, total bandwidth 64000 bps > [pptp] IPCP: Up event > [pptp] IPCP: state change Starting --> Req-Sent > [pptp] IPCP: SendConfigReq #1 > IPADDR 10.1.2.1 > [pptp] CCP: Open event > [pptp] CCP: state change Initial --> Starting > [pptp] CCP: LayerStart > [pptp] CCP: Up event > [pptp] CCP: state change Starting --> Req-Sent > [pptp] CCP: SendConfigReq #1 > [pptp] CCP: rec'd Configure Request #4 link 0 > (Req-Sent) > MPPC > 0x01000040: MPPE, 128 bit, stateless > [pptp] CCP: SendConfigRej #4 > MPPC > 0x01000040: MPPE, 128 bit, stateless You have not configured mpd to enable encryption; this is why it's sending a Config-Reject when the other side requests it. Check the sample mpd.conf for the proper commands to use. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Mar 11 15:59:15 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc54.attbi.com (rwcrmhc54.attbi.com [216.148.227.87]) by hub.freebsd.org (Postfix) with ESMTP id AB33937B400 for ; Mon, 11 Mar 2002 15:59:08 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc54.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020311235908.JCPV1214.rwcrmhc54.attbi.com@blossom.cjclark.org>; Mon, 11 Mar 2002 23:59:08 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g2BNx7330730; Mon, 11 Mar 2002 15:59:07 -0800 (PST) (envelope-from cjc) Date: Mon, 11 Mar 2002 15:59:07 -0800 From: "Crist J. Clark" To: alpha Cc: FreeBSD Subject: Re: help with tcp checksum Message-ID: <20020311155906.B29705@blossom.cjclark.org> References: <00bd01c1c906$72f7be30$fb1b3bd4@alpha> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00bd01c1c906$72f7be30$fb1b3bd4@alpha>; from alpha_byte@centras.lt on Mon, Mar 11, 2002 at 04:10:02PM +0200 X-URL: http://people.freebsd.org/~cjc/ 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 Mon, Mar 11, 2002 at 04:10:02PM +0200, alpha wrote: > hi, > > nobody wants to help me with checksum. so i decided to ask very simply. > here's my generated all packet from david c. witt site's example code: > > 0000 00 50 04 35 44 49 00 80 48 AF D8 3E 08 00 45 00 .P.5DI..H..>..E. > 0010 00 BC 49 00 00 00 FF 06 F0 E4 C0 A8 00 05 C0 A8 ..I............. > 0020 00 01 00 50 04 06 00 AA 00 5F 00 0C 50 62 50 11 ...P....._..PbP. > 0030 05 B4 CA CF 00 00 48 54 54 50 2F 31 2E 30 20 32 ......HTTP/1.0.2 > 0040 30 30 20 4F 4B 0D 0A 43 6F 6E 74 65 6E 74 2D 74 00.OK..Content-t > 0050 79 70 65 3A 20 74 65 78 74 2F 68 74 6D 6C 0D 0A ype:.text/html.. > 0060 0D 0A 3C 48 54 4D 4C 3E 3C 62 6F 64 79 3E 53 69 ..Si > 0070 6D 6D 53 74 69 63 6B 26 72 65 67 3B 20 57 65 62 mmStick®.Web > 0080 20 53 65 72 76 65 72 3C 62 72 3E 75 73 69 6E 67 .Server
using > 0090 20 61 20 50 49 43 20 31 36 46 38 37 34 3C 62 72 .a.PIC.16F874
00A0 3E 62 79 20 44 61 76 69 64 20 43 2E 20 57 69 74 >by.David.C..Wit > 00B0 74 20 28 31 32 2F 32 34 2F 30 30 29 3C 2F 62 6F t.(12/24/00) 00C0 64 79 3E 3C 2F 48 54 4D 4C 3E dy> > > TCP header begins at 0022h. as you can see checksum generated is CACFh. and > simple question: how to get this checksum? i know all algorithms, but they > show me CAE3h, but not CACFh. if you don't be lazy and try to calculate it, > you'll see that i'm right. but how computer accepts packet with this > checksum and rejects with correct - CAE3h. Well, I "did it by hand" and 0xcacf is correct. I took your datagram and using awk and manually building the pseudo-TCP header got it into a format like, C0A8 <---- 0005 C0A8 Pseudo-header 0001 0006 00a8 <---- 0050 <---- 0406 00AA 005F 000C TCP segment 5062 ... 544D 4C3E <--- And then ran it through this simple perl script, $ perl -ne 'chomp; $sum += hex($_); $sum = ( $sum > 65535 ) ? $sum -= 65535 : $sum; printf "0x%x\n", $sum;' And sure enough, the last sum comes out to, ... 0x5f74 0xb3c1 0xffff Which says it is correct. I can check the sender by zeroing the checksum in the input, and the same perl command gives, ... 0x94a4 0xe8f1 0x3530 Which is correct, the ones-complement of 0xcacf. Looks like your calculations are wrong. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@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 Mar 11 23:29:32 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 6A24A37B621 for ; Mon, 11 Mar 2002 23:26:50 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2C7Qoc51216; Mon, 11 Mar 2002 23:26:50 -0800 (PST) (envelope-from rizzo) Date: Mon, 11 Mar 2002 23:26:50 -0800 From: Luigi Rizzo To: net@freebsd.org Subject: bootp tags used in FreeBSD ? Message-ID: <20020311232650.E48429@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i 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, does anyone have up-to-date information on which bootp/dhcp tags are used by FreeBSD ? I am asking because of two reasons: + I would like to pass some info from the bootp/dhcp server to userland, so they can be used at runtime to customize system's behaviour (specific example: I have ~100 clients in different labs booting from the same server, where configuration should be lab-specific but not host-specific. A bootp server could easily pass the "domain" each host belong to. I know I could derive this info using the hostname as a search key, but this would involve an additional configuration file...). + I was going to fix the bootptab manpage and i see that there are several vendor tags used in bootpc_subr and in etherboot which are not documented. Even worse, some of those tags are not consistent across different systems, and even etherboot and bootpc_subr.c have different ideas on T129 and T130 cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 0:10:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from musique.teaser.net (musique.teaser.net [213.91.2.11]) by hub.freebsd.org (Postfix) with ESMTP id 41BEB37B404 for ; Tue, 12 Mar 2002 00:10:19 -0800 (PST) Received: from roadrunner.rominet.net (rominet-tunnel.adsl.teaser.net [213.91.2.229]) by musique.teaser.net (Postfix) with ESMTP id 1FF8C7254A for ; Tue, 12 Mar 2002 09:10:18 +0100 (CET) Received: by roadrunner.rominet.net (Postfix, from userid 1000) id 50ECE80D4; Tue, 12 Mar 2002 09:10:17 +0100 (CET) Date: Tue, 12 Mar 2002 09:10:17 +0100 From: Alain Thivillon To: freebsd-net@freebsd.org Subject: DEVICE_POLLING and kern.polling.{suspect,lost_polls} Message-ID: <20020312081017.GT276@roadrunner.rominet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i X-Organization: Rominet Networks Inc. X-Operating-System: FreeBSD 4.5-STABLE 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, This morning i turned on polling (as in -STABLE of yesterday) on a firewall box running ipfilter. From now everything looks good (but most of users are coming only after 10 AM UTC ...), but i already have: kern.polling.lost_polls: 557 kern.polling.suspect: 468 (with ~ 200 000 routed datagrams) This in on a fxp driver, with vlan enabled. On another box (connected only to 512Kbits adsl network with pppoe) running polling for one week i see: kern.polling.short_ticks: 1158 kern.polling.lost_polls: 13710 kern.polling.suspect: 13603 What exactly mean these variables ? Should i worry ? -- A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 2:28: 9 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id B2B1A37B433 for ; Tue, 12 Mar 2002 02:28:02 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2CARsX52489; Tue, 12 Mar 2002 02:27:54 -0800 (PST) (envelope-from rizzo) Date: Tue, 12 Mar 2002 02:27:54 -0800 From: Luigi Rizzo To: Alain Thivillon Cc: freebsd-net@FreeBSD.ORG Subject: Re: DEVICE_POLLING and kern.polling.{suspect,lost_polls} Message-ID: <20020312022754.B52398@iguana.icir.org> References: <20020312081017.GT276@roadrunner.rominet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020312081017.GT276@roadrunner.rominet.net> User-Agent: Mutt/1.3.23i 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 The short reply is that you have nothing to worry about. The long reply is this: short_ticks can happen when there is some system activity that causes timer interrupts to occur later or earlier than they should. I haven't found out why this happens (there are multiple possible reasons), but it does happen, and it is independent of polling -- you see them on any FreeBSD system. lost_polls is a normal event. It occurs sometimes because of the way the polling scheduler works, and it is handled correctly by the software. "suspect" counts some strange events where a netisr is not properly dispatched. I suspect a bug somewhere in the system, not related to polling (maybe some missing "volatile" declaration or some race condition). Normally this bug is harmless, because schednetisr is normally invoked even if there is already a pending netisr. Polling tries to optimise this by not scheduling a netisr if there is already a pending one, but this bug would cause a stall. So i have implemented a workaround which quickly detects the problem, flags it and recovers from it. The fix does not cause any performance problem, though of course I'd like to know why the netisr sometimes is not dispatched... cheers luigi On Tue, Mar 12, 2002 at 09:10:17AM +0100, Alain Thivillon wrote: > Hello, > > This morning i turned on polling (as in -STABLE of yesterday) on a > firewall box running ipfilter. From now everything looks good (but most > of users are coming only after 10 AM UTC ...), but i already have: > > kern.polling.lost_polls: 557 > kern.polling.suspect: 468 > > (with ~ 200 000 routed datagrams) > > This in on a fxp driver, with vlan enabled. > > On another box (connected only to 512Kbits adsl network with pppoe) > running polling for one week i see: > > kern.polling.short_ticks: 1158 > kern.polling.lost_polls: 13710 > kern.polling.suspect: 13603 > > What exactly mean these variables ? Should i worry ? > > -- > A. > > 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 Mar 12 7:40:49 2002 Delivered-To: freebsd-net@freebsd.org Received: from web.cs.ndsu.nodak.edu (web.cs.ndsu.NoDak.edu [134.129.125.7]) by hub.freebsd.org (Postfix) with ESMTP id 9C96837B662 for ; Tue, 12 Mar 2002 07:40:14 -0800 (PST) Received: (from tinguely@localhost) by web.cs.ndsu.nodak.edu (8.11.4/8.11.4) id g2CFcYA03380; Tue, 12 Mar 2002 09:38:34 -0600 (CST) (envelope-from tinguely) Date: Tue, 12 Mar 2002 09:38:34 -0600 (CST) From: mark tinguely Message-Id: <200203121538.g2CFcYA03380@web.cs.ndsu.nodak.edu> To: alpha_byte@centras.lt, ryan@sasknow.com Subject: Re: help with tcp checksum Cc: freebsd-net@FreeBSD.ORG In-Reply-To: <003901c1c911$b5f90f30$a61b3bd4@alpha> 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 just a PS reminder that you need to put the IP/ports in network byte order. appropriate htonl() and htons() must be used if the the values are not already in network byte order. You may get away with not doing this on a Sparc (or Alpha?) because of their endian is network byte order. --mark tinguely. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 10:15:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id F329337B416 for ; Tue, 12 Mar 2002 10:15:05 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id KAA37475; Tue, 12 Mar 2002 10:09:44 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g2CI90966696; Tue, 12 Mar 2002 10:09:00 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200203121809.g2CI90966696@arch20m.dellroad.org> Subject: Re: bootp tags used in FreeBSD ? In-Reply-To: <20020311232650.E48429@iguana.icir.org> "from Luigi Rizzo at Mar 11, 2002 11:26:50 pm" To: Luigi Rizzo Date: Tue, 12 Mar 2002 10:09:00 -0800 (PST) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Luigi Rizzo writes: > does anyone have up-to-date information on which bootp/dhcp > tags are used by FreeBSD ? If you use dhclient instead of bootp then all of this stuff is entirely configurable. dhclient will run a shell script that you can customize to read in the custom options and do whatever with them. Read dhclient(8), dhclient-script(8), dhclient.conf(4) for more info.. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 12:11:15 2002 Delivered-To: freebsd-net@freebsd.org Received: from ns.cancom.net (ns.cancom.net [209.167.119.13]) by hub.freebsd.org (Postfix) with ESMTP id D815437B416 for ; Tue, 12 Mar 2002 12:10:51 -0800 (PST) Received: from monk.cancom.ca (monk.cancom.ca [216.218.36.38]) by ns.cancom.net (8.8.8/8.8.8) with ESMTP id PAA09300 for ; Tue, 12 Mar 2002 15:10:50 -0500 (EST) Received: from monk.cancom.ca (localhost.cancom.ca [127.0.0.1]) by monk.cancom.ca (8.11.6/8.11.6) with ESMTP id g2CKAoL17005 for ; Tue, 12 Mar 2002 15:10:50 -0500 (EST) (envelope-from doug@monk.cancom.ca) Message-Id: <200203122010.g2CKAoL17005@monk.cancom.ca> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-net@FreeBSD.ORG From: "Douglas Berry" Reply-To: "Douglas Berry" Subject: ipfw 'iplen' keyword in STABLE? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 12 Mar 2002 15:10:50 -0500 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 Over on -questions, i asked ... > I would like to be able, on a multi-homed squid cache box, to route > based on packet size (assuming both interfaces *can* reach the > client). Packets under ~256 bytes go one way, 256 and over go > another. > > I can't see a way to do this with ipfw, is there another method? Dan Nelson was kind enough to suggest... > The ipfw 'iplen' keyword should let you do this. i can't find this documented, Dan says he's using CURRENT. Will this make it to 4.6-RELEASE? doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 12:38:33 2002 Delivered-To: freebsd-net@freebsd.org Received: from ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by hub.freebsd.org (Postfix) with ESMTP id 7118A37B400 for ; Tue, 12 Mar 2002 12:38:21 -0800 (PST) Received: (from ambrisko@localhost) by ambrisko.com (8.11.6/8.11.6) id g2CKbH609035; Tue, 12 Mar 2002 12:37:17 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200203122037.g2CKbH609035@ambrisko.com> Subject: Re: bootp tags used in FreeBSD ? In-Reply-To: <20020311232650.E48429@iguana.icir.org> To: Luigi Rizzo Date: Tue, 12 Mar 2002 12:37:17 -0800 (PST) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Luigi Rizzo writes: | Hi, | does anyone have up-to-date information on which bootp/dhcp | tags are used by FreeBSD ? | I am asking because of two reasons: | | + I would like to pass some info from the bootp/dhcp server | to userland, so they can be used at runtime to customize | system's behaviour (specific example: I have ~100 clients | in different labs booting from the same server, where | configuration should be lab-specific but not host-specific. | A bootp server could easily pass the "domain" each host | belong to. I know I could derive this info using the hostname | as a search key, but this would involve an additional configuration | file...). | | + I was going to fix the bootptab manpage and i see that there are | several vendor tags used in bootpc_subr and in etherboot | which are not documented. Even worse, some of those tags are | not consistent across different systems, and even etherboot | and bootpc_subr.c have different ideas on T129 and T130 I'd suggest look at isc-dhcp 3 and get dhclient working in a netboot environment so you can deal with "vendor-class-identifier". Then just have it do the right things without more over loading of common things and then run into a collision which there are several. For example here are parts of my dhcpd.conf file; option etherboot-freebsd-howto code 132 = integer 32; option etherboot-kernel-env code 133 = string; option etherboot-menu-count code 176 = integer 8; option etherboot-menu-config code 160 = string; option etherboot-menu-1 code 192 = string; option etherboot-menu-2 code 193 = string; option etherboot-menu-3 code 194 = string; option etherboot-menu-4 code 195 = string; option etherboot-menu-5 code 196 = string; option etherboot-menu-6 code 197 = string; option freebsd-swap-path code 128 = string; option dhcp-vendor-identifier code 60 = string; option load-control code 160 = string; class "etherboot" { match if substring (option vendor-class-identifier, 0, 9) = "Etherboot"; option etherboot-menu-count 5; option etherboot-menu-config "timeout=30:default=192:"; option etherboot-menu-1 "BSD:::/tftpboot/kernel.bsd:"; option etherboot-menu-2 "DOS:::/tftpboot/netdos:"; option etherboot-menu-3 "TEST:::/tftpboot/kernel.test:"; option etherboot-menu-4 "DISK:::/dev/hda"; option etherboot-menu-5 "GRUB:::/tftpboot/nbgrub"; option etherboot-menu-6 "PXE:::/tftpboot/pxeboot"; option etherboot-kernel-env "hw.ata.wc=1"; # option etherboot-freebsd-howto 0x00001002; # serial & single option etherboot-freebsd-howto 0x00001000; # serial # option etherboot-freebsd-howto 0x00001800; # serial & verbose } class "pxe" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; # filename "/tftpboot/pxeboot"; } class "ambit-load" { match if option dhcp-vendor-identifier = "Load"; option root-path "ftp://192.168.99.254/ambit-1.5.43-am"; option load-control "stuff that only this cares"; } Then in my dhclient.conf (version 3) option load-control code 160 = string; send vendor-class-identifier "Load"; request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, root-path, option-160; and then dhclient-exit-hooks do what I need with the parameters passed. I also have a fully working proxyDHCP & bootserver functionality so I can do menus, DOS boots etc via PXE compliant roms via patches to isc-dhcp that are on the net. Now I don't have to worry about bpBatch, Etherboot, PXE, FreeBSD, Linux all fighting over the same parameter and making the packet to big. BTW it would be nice to add a Vendor Indentifier to the kernel DHCP request to filter out just those things. I think jdp was working on making dhclient not kill the network when run from a netbooted environment. I forget the status of that. Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 15:48:49 2002 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id B730037B400 for ; Tue, 12 Mar 2002 15:48:45 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1098) id 92258AE1FE; Tue, 12 Mar 2002 15:48:45 -0800 (PST) Date: Tue, 12 Mar 2002 15:48:45 -0800 From: Bill Fumerola To: Douglas Berry Cc: freebsd-net@FreeBSD.ORG Subject: Re: ipfw 'iplen' keyword in STABLE? Message-ID: <20020312234845.GF803@elvis.mu.org> References: <200203122010.g2CKAoL17005@monk.cancom.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200203122010.g2CKAoL17005@monk.cancom.ca> User-Agent: Mutt/1.3.27i X-Operating-System: FreeBSD 4.5-MUORG-20020215 i386 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, Mar 12, 2002 at 03:10:50PM -0500, Douglas Berry wrote: > > The ipfw 'iplen' keyword should let you do this. > > i can't find this documented, Dan says he's using CURRENT. > > Will this make it to 4.6-RELEASE? yes. -- - bill fumerola / fumerola@yahoo-inc.com / billf@FreeBSD.org / billf@mu.org - my anger management counselor can beat up your self-affirmation therapist To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 17:27:34 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 8023A37B416 for ; Tue, 12 Mar 2002 17:27:32 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020313012732.ORWS2626.rwcrmhc51.attbi.com@blossom.cjclark.org>; Wed, 13 Mar 2002 01:27:32 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g2D1RRS34399; Tue, 12 Mar 2002 17:27:27 -0800 (PST) (envelope-from cjc) Date: Tue, 12 Mar 2002 17:27:27 -0800 From: "Crist J. Clark" To: mark tinguely Cc: alpha_byte@centras.lt, ryan@sasknow.com, freebsd-net@FreeBSD.org Subject: Re: help with tcp checksum Message-ID: <20020312172727.I29705@blossom.cjclark.org> References: <003901c1c911$b5f90f30$a61b3bd4@alpha> <200203121538.g2CFcYA03380@web.cs.ndsu.nodak.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200203121538.g2CFcYA03380@web.cs.ndsu.nodak.edu>; from tinguely@web.cs.ndsu.nodak.edu on Tue, Mar 12, 2002 at 09:38:34AM -0600 X-URL: http://people.freebsd.org/~cjc/ 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, Mar 12, 2002 at 09:38:34AM -0600, mark tinguely wrote: > > just a PS reminder that you need to put the IP/ports in network byte > order. appropriate htonl() and htons() must be used if the the values > are not already in network byte order. You may get away with not doing > this on a Sparc (or Alpha?) because of their endian is network byte > order. Well... It depends. Due to the nature of the checksum algorithm, it really doesn't matter whether the data is in host order or network order provided all of the data is stored consistently. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 17:44: 7 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail2.hostonfly.net (services2.sc1.hostonfly.net [216.65.107.16]) by hub.freebsd.org (Postfix) with ESMTP id 2A60937B427 for ; Tue, 12 Mar 2002 17:43:48 -0800 (PST) Received: from mail1.hostonfly.net (http.server2.sc1.hostonfly.net [216.65.107.33]) by mail2.hostonfly.net (Postfix) with ESMTP id C69396B340 for ; Wed, 13 Mar 2002 01:39:53 +0000 (GMT) From: Dmitry Koltsov To: freebsd-net@FreeBSD.ORG Subject: Apache/TCP stack issues Received: from 10009 by s-mail at www.server2.sc1.hostonfly.net Message-Id: <20020313013953.C69396B340@mail2.hostonfly.net> Date: Wed, 13 Mar 2002 01:39:53 +0000 (GMT) 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 have some issues with TCP stack and/or Apache. Issue: I'm getting "Connection refused" error when trying to connect to Apache over Internet when packet loss is 1-2%. Not all connection attempts fail but about 3% of attempts. When I'm trying to connect over local network(from another machine and localhost) in the same time, all is ok. In order to get this statistics, I've made 20000 attempts from each place in the same time. I guess apache is ok because from local network and localhost it gives no errors. Is there solution? Couple of examples: 00:55:24.794637 195.252.103.127.4389 > 216.65.107.31.80: S 15459564:15459564(0) win 8192 (DF) 00:55:24.794720 216.65.107.31.80 > 195.252.103.127.4389: S 2478638582:2478638582(0) ack 15459565 win 33232 (DF) 00:55:26.521535 216.65.107.31.80 > 195.252.103.127.4389: R 1:1(0) ack 1 win 33232 (DF) 00:55:27.813385 195.252.103.127.4389 > 216.65.107.31.80: S 15459564:15459564(0) win 8192 (DF) 00:55:27.813485 216.65.107.31.80 > 195.252.103.127.4389: S 2939404798:2939404798(0) ack 15459565 win 33232 (DF) 00:55:27.994115 195.252.103.127.4389 > 216.65.107.31.80: . ack 3834201081 win 8576 (DF) 00:55:27.994156 216.65.107.31.80 > 195.252.103.127.4389: R 2478638583:2478638583(0) win 0 00:55:28.042403 195.252.103.127.4389 > 216.65.107.31.80: P 1:309(308) ack 3834201081 win 8576 (DF) 00:55:28.042466 216.65.107.31.80 > 195.252.103.127.4389: R 2478638583:2478638583(0) win 0 00:55:28.217906 195.252.103.127.4389 > 216.65.107.31.80: R 15459565:15459565(0) win 0 00:55:26.893251 151.27.40.210.1560 > 216.65.107.31.80: S 37780527:37780527(0) win 8192 (DF) 00:55:26.893329 216.65.107.31.80 > 151.27.40.210.1560: S 2578149080:2578149080(0) ack 37780528 win 33232 (DF) 00:55:27.300599 216.65.107.31.80 > 151.27.40.210.1560: R 1:1(0) ack 1 win 33232(DF) 00:55:27.316952 151.27.40.210.1560 > 216.65.107.31.80: . ack 1 win 8576 (DF) 00:55:27.317038 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 00:55:27.467521 151.27.40.210.1560 > 216.65.107.31.80: P 1:369(368) ack 1 win 8576 (DF) 00:55:27.467567 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 00:38:52.468064 194.85.102.167.46350 > 216.65.107.31.80: S 1156823521:1156823521 (0) win 16384 (DF) 00:38:52.468137 216.65.107.31.80 > 194.85.102.167.46350: S 4104358926:4104358926 (0) ack 1156823522 win 33580 (DF) 00:38:55.462633 216.65.107.31.80 > 194.85.102.167.46350: S 4104358926:4104358926 (0) ack 1156823522 win 33580 (DF) 00:38:57.544738 216.65.107.31.80 > 194.85.102.167.46350: R 1:1(0) ack 1 win 33580 (DF) Best regards, Dmitry Koltsov Host On Fly S.A. tel: + 7 812 9404403 tel: + 41 78 8286002 fax: + 1 775 2426205 ICQ: 44656213 mailto:root@hostonfly.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 18:15:39 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail2.hostonfly.net (services2.sc1.hostonfly.net [216.65.107.16]) by hub.freebsd.org (Postfix) with ESMTP id A9AEC37B499 for ; Tue, 12 Mar 2002 18:13:00 -0800 (PST) Received: from mail1.hostonfly.net (http.server2.sc1.hostonfly.net [216.65.107.33]) by mail2.hostonfly.net (Postfix) with ESMTP id 57D566B345 for ; Wed, 13 Mar 2002 02:09:06 +0000 (GMT) From: Dmitry Koltsov To: freebsd-net@FreeBSD.ORG Subject: Re: Apache/TCP stack issues Received: from 10009 by s-mail at www.server2.sc1.hostonfly.net Message-Id: <20020313020906.57D566B345@mail2.hostonfly.net> Date: Wed, 13 Mar 2002 02:09:06 +0000 (GMT) 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 Got some additional info. Will be happy if someone can tell me when this may occur? 01:55:23.982208 194.85.102.167.57108 > 216.65.107.31.80: S 2350650611:2350650611(0) win 16384 (DF) 01:55:23.982315 216.65.107.31.80 > 194.85.102.167.57108: S 2904333827:2904333827(0) ack 2350650612 win 33580 (DF) 01:55:24.122543 216.65.107.31.80 > 194.85.102.167.57108: R 1:1(0) ack 1 win 33580 (DF) 01:55:24.196289 194.85.102.167.57108 > 216.65.107.31.80: . ack 1 win 17520 (DF) 01:55:24.196353 216.65.107.31.80 > 194.85.102.167.57108: R 2904333828:2904333828(0) win 0 01:55:24.205524 194.85.102.167.57108 > 216.65.107.31.80: P 1:37(36) ack 1 win 17520 (DF) 01:55:24.205717 216.65.107.31.80 > 194.85.102.167.57108: R 2904333828:2904333828(0) win 0 01:59:54.515119 194.85.102.167.42645 > 216.65.107.31.80: S 2425785201:2425785201(0) win 16384 (DF) 01:59:54.515250 216.65.107.31.80 > 194.85.102.167.42645: S 1586387235:1586387235(0) ack 2425785202 win 33580 (DF) 01:59:54.621855 216.65.107.31.80 > 194.85.102.167.42645: R 1:1(0) ack 1 win 33580 (DF) 01:59:54.745854 194.85.102.167.42645 > 216.65.107.31.80: . ack 1 win 17520 (DF) 01:59:54.745920 216.65.107.31.80 > 194.85.102.167.42645: R 1586387236:1586387236(0) win 0 01:59:54.754934 194.85.102.167.42645 > 216.65.107.31.80: P 1:37(36) ack 1 win 17520 (DF) 01:59:54.754981 216.65.107.31.80 > 194.85.102.167.42645: R 1586387236:1586387236(0) win 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 18:41:15 2002 Delivered-To: freebsd-net@freebsd.org Received: from paix.pilosoft.com (paix.pilosoft.com [216.66.12.246]) by hub.freebsd.org (Postfix) with ESMTP id 35FF137B400 for ; Tue, 12 Mar 2002 18:40:23 -0800 (PST) Received: from localhost (alex@localhost) by paix.pilosoft.com (8.11.6/8.11.6) with ESMTP id g2CLTLK12775; Tue, 12 Mar 2002 16:29:21 -0500 Date: Tue, 12 Mar 2002 16:29:21 -0500 (EST) From: alex@pilosoft.com To: Dmitry Koltsov Cc: freebsd-net@FreeBSD.ORG Subject: Re: Apache/TCP stack issues In-Reply-To: <20020313013953.C69396B340@mail2.hostonfly.net> 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, 13 Mar 2002, Dmitry Koltsov wrote: > I have some issues with TCP stack and/or Apache. Issue: I'm getting > "Connection refused" error when trying to connect to Apache over > Internet when packet loss is 1-2%. Not all connection attempts fail but > about 3% of attempts. When I'm trying to connect over local network(from > another machine and localhost) in the same time, all is ok. In order to > get this statistics, I've made 20000 attempts from each place in the > same time. Some thoughts for you: > 00:55:24.794637 195.252.103.127.4389 > 216.65.107.31.80: S 15459564:15459564(0) win 8192 (DF) > 00:55:24.794720 216.65.107.31.80 > 195.252.103.127.4389: S 2478638582:2478638582(0) ack 15459565 win 33232 (DF) > 00:55:26.521535 216.65.107.31.80 > 195.252.103.127.4389: R 1:1(0) ack 1 win 33232 (DF) A major note that the source port (4389) is the same for many queries. This is not normal. Local port should not be reused until X time has passed. (X being at least time for TCP connection to go from TIME_WAIT to closed). I'm not sure what FreeBSD's policy on outgoing port reuse is, but this is definitely a problem. Why is it a problem: Since the tuple that identifies the connection is (sourceIP, sourcePort, destIP, destPort), which would be same for many of your TCP connections, server will consider this to be a syn-spoofing attack. Here's the logic: First connection (everything is good, seq1 and seq2 are sequence numbers) client.4389->server.80 SYN (seq1) server.80 ->client.4389 SYN ACK (seq2) ...some time passes... server.80 ->client.4389 RST client.4389->server.80 RST Now, assume that the RST from client got lost, following exchange: client.4389->server.80 SYN (seq3) server.80 ->client.4389 SYN ACK (seq4) ...some time passes... server.80 ->client.4389 RST client.4389->server.80 RST (LOST!) Now, on the server, the connection is still in TIME_WAIT state. On client, connection is gone, and the client immediately reuses the local port. Now, next connection: client.4389->server.80 SYN (seq5) Now, server is thinking "WTF? the sequence number doesn't match up for an _existing_ connection", and sends you back an RST, which is exactly what you are seeing. So, a question: Are you doing anything funky to cause local port reuse? I don't know what freebsd does, and haven't looked at RFC whether there's a requirement NOT to reuse port until at least TCP_FIN_TIMEOUT (or whatever's freebsd equivalent sysctl is) time passes, but it appears that it would be the right thing to do. -alex > 00:55:27.813385 195.252.103.127.4389 > 216.65.107.31.80: S 15459564:15459564(0) win 8192 (DF) > 00:55:27.813485 216.65.107.31.80 > 195.252.103.127.4389: S 2939404798:2939404798(0) ack 15459565 win 33232 (DF) > 00:55:27.994115 195.252.103.127.4389 > 216.65.107.31.80: . ack 3834201081 win 8576 (DF) > 00:55:27.994156 216.65.107.31.80 > 195.252.103.127.4389: R 2478638583:2478638583(0) win 0 > 00:55:28.042403 195.252.103.127.4389 > 216.65.107.31.80: P 1:309(308) ack 3834201081 win 8576 (DF) > 00:55:28.042466 216.65.107.31.80 > 195.252.103.127.4389: R 2478638583:2478638583(0) win 0 > 00:55:28.217906 195.252.103.127.4389 > 216.65.107.31.80: R 15459565:15459565(0) win 0 > > > 00:55:26.893251 151.27.40.210.1560 > 216.65.107.31.80: S 37780527:37780527(0) win 8192 (DF) > 00:55:26.893329 216.65.107.31.80 > 151.27.40.210.1560: S 2578149080:2578149080(0) ack 37780528 win 33232 (DF) > 00:55:27.300599 216.65.107.31.80 > 151.27.40.210.1560: R 1:1(0) ack 1 win 33232(DF) > 00:55:27.316952 151.27.40.210.1560 > 216.65.107.31.80: . ack 1 win 8576 (DF) > 00:55:27.317038 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 > 00:55:27.467521 151.27.40.210.1560 > 216.65.107.31.80: P 1:369(368) ack 1 win 8576 (DF) > 00:55:27.467567 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 > > > 00:38:52.468064 194.85.102.167.46350 > 216.65.107.31.80: S 1156823521:1156823521 (0) win 16384 (DF) > 00:38:52.468137 216.65.107.31.80 > 194.85.102.167.46350: S 4104358926:4104358926 (0) ack 1156823522 win 33580 (DF) > 00:38:55.462633 216.65.107.31.80 > 194.85.102.167.46350: S 4104358926:4104358926 (0) ack 1156823522 win 33580 (DF) > 00:38:57.544738 216.65.107.31.80 > 194.85.102.167.46350: R 1:1(0) ack 1 win 33580 (DF) > > > Best regards, > Dmitry Koltsov > Host On Fly S.A. > tel: + 7 812 9404403 > tel: + 41 78 8286002 > fax: + 1 775 2426205 > ICQ: 44656213 > mailto:root@hostonfly.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 Mar 12 18:41:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id 51E2B37B405 for ; Tue, 12 Mar 2002 18:41:49 -0800 (PST) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.6/8.11.6) with ESMTP id g2D2fgY28844; Tue, 12 Mar 2002 21:41:42 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200203130241.g2D2fgY28844@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: mark tinguely Cc: alpha_byte@centras.lt, ryan@sasknow.com, freebsd-net@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: help with tcp checksum References: <200203121538.g2CFcYA03380@web.cs.ndsu.nodak.edu> In-reply-to: Your message of "Tue, 12 Mar 2002 09:38:34 CST." <200203121538.g2CFcYA03380@web.cs.ndsu.nodak.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 12 Mar 2002 21:41:42 -0500 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 > > just a PS reminder that you need to put the IP/ports in network byte > order. appropriate htonl() and htons() must be used if the the values > are not already in network byte order. You may get away with not doing > this on a Sparc (or Alpha?) because of their endian is network byte > order. This actually isn't necessary, as long as you do all the math on the fields in the same byte order. Since 1's complement arithmetic used to compute the Internet checksum includes end-around carry, it just works out. louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 19: 0:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by hub.freebsd.org (Postfix) with SMTP id 3F97C37B41A for ; Tue, 12 Mar 2002 19:00:01 -0800 (PST) Received: (qmail 86283 invoked by uid 1001); 13 Mar 2002 12:59:59 +1000 X-Posted-By: GJB-Post 2.25 04-Mar-2002 X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Uptime: 62 days, 19:18 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-PGP-Public-Keys: http://www.gbch.net/keys.html Message-Id: Date: Wed, 13 Mar 2002 12:59:59 +1000 From: Greg Black To: Brian Somers Cc: "Matthew Emmerton" , freebsd-net@FreeBSD.ORG Subject: Re: ppp -nat fails with adsl, but ok with modem References: <200203071339.g27DdQH6073865@hak.lan.Awfulhak.org> In-reply-to: <200203071339.g27DdQH6073865@hak.lan.Awfulhak.org> of Thu, 07 Mar 2002 13:39:26 GMT 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 Brian Somers wrote: | > > "Matthew Emmerton" wrote: | > > | From: "Greg Black" | > > | To: | > > | Sent: Friday, February 22, 2002 10:39 PM | > > | Subject: ppp -nat fails with adsl, but ok with modem | > > | | > > | > I've had ppp -nat working just fine over a normal modem link, | > > | > but it is not working at all well on my ADSL link to the same | > > | > provider. | > > | > | > > | > To quantify "not working at all well", although I can ping and | > > | > traceroute ok from the hosts on my LAN, HTTP and FTP traffic is | > > | > so slow and bursty as to be useless. Clicking on a link with | > > | > Netscape will see short bursts of data with long periods (of a | > > | > minute or more) where it says "stalled". | > > | > | > > | > Clicking on from | > > | > my gateway host gets the page in an eye-blink, but on the NAT | > > | > hosts, it will take 40 seconds to load the top banner and the | > > | > "FreeBSD GNOME News Flash" heading, then another delay of 40 or | > > | > so seconds before the rest of the page will be displayed. Even | > > | > then, Netscape thinks it has stalled and keeps waiting for the | > > | > last bit of data. | > > | > | > > | > With FTP, a small transfer (e.g., a directory listing of / on | > > | > ftp.freebsd.org) will complete normally; but something slightly | > > | > larger (e.g., a listing of /pub/FreeBSD on the same server), | > > | > will produce: | > > | > | > > | > ftp> cd /pub/FreeBSD | > > | > 250 CWD command successful. | > > | > ftp> dir | > > | > 200 PORT command successful. | > > | > 150 Opening ASCII mode data connection for '/bin/ls'. | > > | > ftp: netin: Connection reset by peer | > > | > 226 Transfer complete. | > > | > ftp> quit | > > | > 421 Timeout (60 seconds): closing control connection. | > > | > | > > | > If I do the same things from the host that is connected to the | > > | > modem(s), everything works fine, for both types of connections. | > > | > | > > | > I'm finding this very frustrating, and I'm wondering if there's | > > | > something weird about PPPoE with the ADSL link that needs some | > > | > special magic in order for things to work properly. | > > | > | > > | > If anybody can point me at the truth, I'd be most grateful. | > > | > | > > | > Alternatively, if anybody can suggest steps I could take to | > > | > identify the nature of the problem, that would also be most | > > | > welcome. | > > | > | > > | > Greg Black | > > | > | > > | What version of FreeBSD are you using? The ppp included in early 4.x | > > | distributions doesn't have the TCP MSS fixup code that is required to | > > | make | > > | things work properly with a PPPoE connection, and cause the kinds of | > > | symptoms that you describe. | > > | > > The NAT box is running 4.2-RELEASE -- is that a problem? | > | > Yes. This problem was first fixed in 4.2-STABLE. There are two safe ways to | > fix this: | > - upgrade to a newer -RELEASE or -STABLE | > - run the tcpmssd program (which is in the ports collection - | > /usr/ports/net/tcpmssd) | | - Install the latest version of ppp from http://www.Awfulahk.org/ppp.html OK, I'll grab it and give it a try. Will it be OK to install that on a 4.1-RELEASE box? Should I still use the following lines in my ppp.conf? set mru 1492 set mtu 1492 Thanks in advance, Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 19:43:30 2002 Delivered-To: freebsd-net@freebsd.org Received: from patrocles.silby.com (d9.as7.nwbl0.wi.voyager.net [169.207.128.137]) by hub.freebsd.org (Postfix) with ESMTP id EE87337B417 for ; Tue, 12 Mar 2002 19:42:00 -0800 (PST) Received: from patrocles.silby.com (localhost [127.0.0.1]) by patrocles.silby.com (8.12.2/8.12.2) with ESMTP id g2CLjgjJ017281; Tue, 12 Mar 2002 21:45:42 GMT (envelope-from silby@silby.com) Received: from localhost (silby@localhost) by patrocles.silby.com (8.12.2/8.12.2/Submit) with ESMTP id g2CLiwdn017275; Tue, 12 Mar 2002 21:45:41 GMT X-Authentication-Warning: patrocles.silby.com: silby owned process doing -bs Date: Tue, 12 Mar 2002 21:44:58 +0000 (GMT) From: Mike Silbersack To: Dmitry Koltsov Cc: freebsd-net@FreeBSD.ORG Subject: Re: Apache/TCP stack issues In-Reply-To: <20020313013953.C69396B340@mail2.hostonfly.net> Message-ID: <20020312213811.Q16449-100000@patrocles.silby.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 Wed, 13 Mar 2002, Dmitry Koltsov wrote: > Hello > > I have some issues with TCP stack and/or Apache. > Issue: > I'm getting "Connection refused" error when trying to connect to Apache over Internet when packet loss is 1-2%. Not all connection attempts fail but about 3% of attempts. > When I'm trying to connect over local network(from another machine and localhost) in the same time, all is ok. > In order to get this statistics, I've made 20000 attempts from each place in the same time. > > I guess apache is ok because from local network and localhost it gives no errors. > > Is there solution? What release of FreeBSD are you running? From what you describe and the logs, it appears you're overloading the server and causing the listen queue to overflow. One piece of information you're omitting is how quickly you're sending those 20000 connection attempts. If that's over 20000 seconds, I wouldn't expect any listen queue overflows. If it's over 1 second, I'd expect a lot of listen queue overflows. The listen queue overflows indicate to me that you're running a version of FreeBSD that does not include Jonathan Lemon's syncache/syncookie implementation. This was added just shortly before 4.5-release, and should help your situation greatly. If you are running 4.5, then I'm stumped. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 20:41:59 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail2.hostonfly.net (services2.sc1.hostonfly.net [216.65.107.16]) by hub.freebsd.org (Postfix) with ESMTP id 6F61537B400 for ; Tue, 12 Mar 2002 20:41:56 -0800 (PST) Received: from mail1.hostonfly.net (http.server2.sc1.hostonfly.net [216.65.107.33]) by mail2.hostonfly.net (Postfix) with ESMTP id CF41A6B345; Wed, 13 Mar 2002 04:38:01 +0000 (GMT) From: Dmitry Koltsov To: Mike Silbersack Cc: freebsd-net@freebsd.org Subject: Re: Apache/TCP stack issues Received: from 10009 by s-mail at www.server2.sc1.hostonfly.net Message-Id: <20020313043801.CF41A6B345@mail2.hostonfly.net> Date: Wed, 13 Mar 2002 04:38:01 +0000 (GMT) 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'm running on 4.4-stable I have 1-3 connections in queue and in the same time I have "listen queue overflows" counter growing. How it may be? Current listen queue sizes (qlen/incqlen/maxqlen) Listen Local Address 1/1/128 216.65.107.31.80 Best regards, Dmitry Koltsov Host On Fly S.A. tel: + 7 812 9404403 tel: + 41 78 8286002 fax: + 1 775 2426205 ICQ: 44656213 mailto:root@hostonfly.com Wednesday, March 13, 2002, you wrote to me: MS> On Wed, 13 Mar 2002, Dmitry Koltsov wrote: >> Hello >> >> I have some issues with TCP stack and/or Apache. >> Issue: >> I'm getting "Connection refused" error when trying to connect to Apache over Internet when packet loss is 1-2%. Not all connection attempts fail but about 3% of attempts. >> When I'm trying to connect over local network(from another machine and localhost) in the same time, all is ok. >> In order to get this statistics, I've made 20000 attempts from each place in the same time. >> >> I guess apache is ok because from local network and localhost it gives no errors. >> >> Is there solution? MS> What release of FreeBSD are you running? >>From what you describe and the logs, it appears you're overloading the MS> server and causing the listen queue to overflow. One piece of information MS> you're omitting is how quickly you're sending those 20000 connection MS> attempts. If that's over 20000 seconds, I wouldn't expect any listen MS> queue overflows. If it's over 1 second, I'd expect a lot of listen queue MS> overflows. MS> The listen queue overflows indicate to me that you're running a version of MS> FreeBSD that does not include Jonathan Lemon's syncache/syncookie MS> implementation. This was added just shortly before 4.5-release, and MS> should help your situation greatly. MS> If you are running 4.5, then I'm stumped. MS> Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Mar 12 21: 5:50 2002 Delivered-To: freebsd-net@freebsd.org Received: from patrocles.silby.com (d9.as7.nwbl0.wi.voyager.net [169.207.128.137]) by hub.freebsd.org (Postfix) with ESMTP id E5DFE37B405 for ; Tue, 12 Mar 2002 21:05:22 -0800 (PST) Received: from patrocles.silby.com (localhost [127.0.0.1]) by patrocles.silby.com (8.12.2/8.12.2) with ESMTP id g2CNAEjJ017589 for ; Tue, 12 Mar 2002 23:10:14 GMT (envelope-from silby@silby.com) Received: from localhost (silby@localhost) by patrocles.silby.com (8.12.2/8.12.2/Submit) with ESMTP id g2CN8qhY017583; Tue, 12 Mar 2002 23:10:13 GMT X-Authentication-Warning: patrocles.silby.com: silby owned process doing -bs Date: Tue, 12 Mar 2002 23:08:51 +0000 (GMT) From: Mike Silbersack To: Dmitry Koltsov Cc: freebsd-net@freebsd.org Subject: Re: Apache/TCP stack issues In-Reply-To: <20020313043801.CF41A6B345@mail2.hostonfly.net> Message-ID: <20020312230104.M16449-100000@patrocles.silby.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 Wed, 13 Mar 2002, Dmitry Koltsov wrote: > I'm running on 4.4-stable > > I have 1-3 connections in queue and in the same time I have "listen queue overflows" counter growing. > How it may be? > > Current listen queue sizes (qlen/incqlen/maxqlen) > Listen Local Address > 1/1/128 216.65.107.31.80 Well, the listen queue may be occasionally spiking due to network latency. You're probably not going to be able to observe such an event via netstat because the bursts are probably quite short. You could increase the listen queue length (via a sysctl I've now forgotten), or update to 4.5-stable. If this is just a load test and not real usage, you could also ignore the problem for now; you'll have to make the determination. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Mar 13 1:48:58 2002 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id D28EB37B404 for ; Wed, 13 Mar 2002 01:48:48 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id g2D9mi581232; Wed, 13 Mar 2002 09:48:44 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.2/8.12.2) with ESMTP id g2D9mgGd003975; Wed, 13 Mar 2002 09:48:42 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200203130948.g2D9mgGd003975@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Greg Black Cc: Brian Somers , "Matthew Emmerton" , freebsd-net@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: ppp -nat fails with adsl, but ok with modem In-Reply-To: Message from Greg Black of "Wed, 13 Mar 2002 12:59:59 +1000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 13 Mar 2002 09:48:42 +0000 From: Brian Somers 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 > Brian Somers wrote: > | > > "Matthew Emmerton" wrote: > | > > | From: "Greg Black" > | > > | To: > | > > | Sent: Friday, February 22, 2002 10:39 PM > | > > | Subject: ppp -nat fails with adsl, but ok with modem > | > > | > | > > | > I've had ppp -nat working just fine over a normal modem link, > | > > | > but it is not working at all well on my ADSL link to the same > | > > | > provider. > | > > | > > | > > | > To quantify "not working at all well", although I can ping and > | > > | > traceroute ok from the hosts on my LAN, HTTP and FTP traffic is > | > > | > so slow and bursty as to be useless. Clicking on a link with > | > > | > Netscape will see short bursts of data with long periods (of a > | > > | > minute or more) where it says "stalled". > | > > | > > | > > | > Clicking on from > | > > | > my gateway host gets the page in an eye-blink, but on the NAT > | > > | > hosts, it will take 40 seconds to load the top banner and the > | > > | > "FreeBSD GNOME News Flash" heading, then another delay of 40 or > | > > | > so seconds before the rest of the page will be displayed. Even > | > > | > then, Netscape thinks it has stalled and keeps waiting for the > | > > | > last bit of data. > | > > | > > | > > | > With FTP, a small transfer (e.g., a directory listing of / on > | > > | > ftp.freebsd.org) will complete normally; but something slightly > | > > | > larger (e.g., a listing of /pub/FreeBSD on the same server), > | > > | > will produce: > | > > | > > | > > | > ftp> cd /pub/FreeBSD > | > > | > 250 CWD command successful. > | > > | > ftp> dir > | > > | > 200 PORT command successful. > | > > | > 150 Opening ASCII mode data connection for '/bin/ls'. > | > > | > ftp: netin: Connection reset by peer > | > > | > 226 Transfer complete. > | > > | > ftp> quit > | > > | > 421 Timeout (60 seconds): closing control connection. > | > > | > > | > > | > If I do the same things from the host that is connected to the > | > > | > modem(s), everything works fine, for both types of connections. > | > > | > > | > > | > I'm finding this very frustrating, and I'm wondering if there's > | > > | > something weird about PPPoE with the ADSL link that needs some > | > > | > special magic in order for things to work properly. > | > > | > > | > > | > If anybody can point me at the truth, I'd be most grateful. > | > > | > > | > > | > Alternatively, if anybody can suggest steps I could take to > | > > | > identify the nature of the problem, that would also be most > | > > | > welcome. > | > > | > > | > > | > Greg Black > | > > | > > | > > | What version of FreeBSD are you using? The ppp included in early 4.x > | > > | distributions doesn't have the TCP MSS fixup code that is required to > | > > | make > | > > | things work properly with a PPPoE connection, and cause the kinds of > | > > | symptoms that you describe. > | > > > | > > The NAT box is running 4.2-RELEASE -- is that a problem? > | > > | > Yes. This problem was first fixed in 4.2-STABLE. There are two safe ways to > | > fix this: > | > - upgrade to a newer -RELEASE or -STABLE > | > - run the tcpmssd program (which is in the ports collection - > | > /usr/ports/net/tcpmssd) > | > | - Install the latest version of ppp from http://www.Awfulahk.org/ppp.html > > OK, I'll grab it and give it a try. > > Will it be OK to install that on a 4.1-RELEASE box? Should be. > Should I still use the following lines in my ppp.conf? > > set mru 1492 > set mtu 1492 These shouldn't be required any more. > Thanks in advance, > > Greg -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Mar 13 6:48:59 2002 Delivered-To: freebsd-net@freebsd.org Received: from magellan.palisadesys.com (magellan.palisadesys.com [192.188.162.211]) by hub.freebsd.org (Postfix) with ESMTP id 0F42137B402 for ; Wed, 13 Mar 2002 06:48:28 -0800 (PST) Received: from mira (mira.palisadesys.com [192.188.162.116]) (authenticated (0 bits)) by magellan.palisadesys.com (8.11.6/8.11.6) with ESMTP id g2DEm1w28598 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO) for ; Wed, 13 Mar 2002 08:48:04 -0600 From: "Guy Helmer" To: Subject: Crashes in fxp driver with polling enabled Date: Wed, 13 Mar 2002 08:48:21 -0600 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal 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 I am encountering a problem in the fxp driver that seems to be exposed by enabling polling under high packet load (~12000pps). I have been corresponding with Luigi regarding this problem but would like to see if anyone else might have any ideas that could help. I'm using FreeBSD 4.5-stable kernels on two completely different hardware platforms, a P-III 800 Intel ISP1100 and a homebrew Celeron with an Intel EtherExpress Pro-100B. Both machines panic with the same results. The machines panic with a kernel page fault, usually right after I enable polling but sometimes the machines will keep running until I do some other I/O-intensive tasks or run "top". There usually isn't an IP address on the fxp interface, but the interface is UP and listening to packets in promiscuous mode. I have verified that the crashes do occur when there is an IP address on the interface and when the interface is not in promiscuous mode. I noticed that after the kernel page fault trap occurs, fxp0 is sending the same bogus frame (containing junk) every millisecond or so. I don't understand why fxp0 is sending anything because the machine shouldn't be transmitting anything on that interface. I have the exact same code running on a system that has a SIS interface, and that system runs fine. The crash occurs in line 1847 of if_fxp.c: MCLGET(m, M_DONTWAIT) (in the expansion of MCLALLOC()). It looks like there is a bad index generated by mtocl(_mp) when "mclrefcnt[mtocl(_mp)]++;" is performed. mclfree is 0xc0306524 and mbutl is 0xc0306578 after the crash. I think there is some free mbuf list corruption triggered somewhere else in the driver, but I can't find anything in if_fxp.c that looks suspicious. Backtrace: fxp_add_rfabuf(c04e1400, c04e2900) at fxp_add_rfabuf+0x9f fxp_intr_body(c04e1400, e0, 3, 0, 5) at fxp_intr_body+0xd8 fxp_poll(c04e1400, 0, 5) at fxp_poll+0x9a netisr_poll(c026b4cf, bfbf002f, bfbf002f, bfbf002f) at netisr_poll+0x16b swi_net_next() at swi_net_next Registers: eax: 0x01bfb12 ecx: 0xa026b000 edx: 0xc04d7000 ebx: 0xc052ae00 esp: 0xc3cdbf1c ebp: 0xc3cdbf2c esi: 0x660c00 edi: 0xc052ae00 eip: 0xc0137d87 cs: 0x8 ds: 0xc0190010 es: 0xc3cd0010 fs: c04e0010 ss: 0x10 objdump of fxp_add_rfabuf: 00002f58 : fxp_add_rfabuf(): 2f58: 55 push %ebp 2f59: 89 e5 mov %esp,%ebp 2f5b: 83 ec 04 sub $0x4,%esp 2f5e: 57 push %edi 2f5f: 56 push %esi 2f60: 53 push %ebx 2f61: bf 01 00 00 00 mov $0x1,%edi 2f66: bb 01 00 00 00 mov $0x1,%ebx 2f6b: e8 fc ff ff ff call 2f6c 2f70: 89 c6 mov %eax,%esi 2f72: 83 3d 00 00 00 00 00 cmpl $0x0,0x0 2f79: 75 0d jne 2f88 2f7b: 6a 01 push $0x1 2f7d: 6a 01 push $0x1 2f7f: e8 fc ff ff ff call 2f80 2f84: 83 c4 08 add $0x8,%esp 2f87: 90 nop 2f88: 8b 15 00 00 00 00 mov 0x0,%edx 2f8e: 85 d2 test %edx,%edx 2f90: 0f 85 16 01 00 00 jne 30ac 2f96: 56 push %esi 2f97: e8 fc ff ff ff call 2f98 2f9c: 53 push %ebx 2f9d: 57 push %edi 2f9e: e8 fc ff ff ff call 2f9f 2fa3: 89 c2 mov %eax,%edx 2fa5: 83 c4 0c add $0xc,%esp 2fa8: 85 d2 test %edx,%edx 2faa: 75 08 jne 2fb4 2fac: 85 ff test %edi,%edi 2fae: 0f 84 e4 00 00 00 je 3098 2fb4: 89 d7 mov %edx,%edi 2fb6: 85 ff test %edi,%edi 2fb8: 0f 84 46 01 00 00 je 3104 2fbe: 89 fb mov %edi,%ebx 2fc0: e8 fc ff ff ff call 2fc1 2fc5: 89 c6 mov %eax,%esi 2fc7: 83 3d 00 00 00 00 00 cmpl $0x0,0x0 2fce: 75 0c jne 2fdc 2fd0: 6a 01 push $0x1 2fd2: 6a 01 push $0x1 2fd4: e8 fc ff ff ff call 2fd5 2fd9: 83 c4 08 add $0x8,%esp 2fdc: 8b 0d 00 00 00 00 mov 0x0,%ecx 2fe2: 85 c9 test %ecx,%ecx 2fe4: 74 32 je 3018 2fe6: 89 c8 mov %ecx,%eax 2fe8: 2b 05 00 00 00 00 sub 0x0,%eax 2fee: c1 e8 0b shr $0xb,%eax 2ff1: 8b 15 00 00 00 00 mov 0x0,%edx 2ff7: fe 04 10 incb (%eax,%edx,1) 2ffa: ff 0d 0c 00 00 00 decl 0xc 3000: 8b 01 mov (%ecx),%eax 3002: a3 00 00 00 00 mov %eax,0x0 3007: 89 4b 2c mov %ecx,0x2c(%ebx) 300a: 56 push %esi 300b: e8 fc ff ff ff call 300c 3010: 83 c4 04 add $0x4,%esp 3013: eb 26 jmp 303b 3015: 8d 76 00 lea 0x0(%esi),%esi 3018: 56 push %esi 3019: e8 fc ff ff ff call 301a 301e: 83 c4 04 add $0x4,%esp 3021: b8 01 00 00 00 mov $0x1,%eax 3026: 85 c0 test %eax,%eax 3028: 75 0a jne 3034 302a: e8 fc ff ff ff call 302b 302f: 89 43 2c mov %eax,0x2c(%ebx) 3032: eb 07 jmp 303b 3034: c7 43 2c 00 00 00 00 movl $0x0,0x2c(%ebx) 303b: 83 7b 2c 00 cmpl $0x0,0x2c(%ebx) 303f: 74 1f je 3060 3041: 8b 43 2c mov 0x2c(%ebx),%eax 3044: 89 43 08 mov %eax,0x8(%ebx) 3047: 80 4b 12 01 orb $0x1,0x12(%ebx) 304b: c7 43 30 00 00 00 00 movl $0x0,0x30(%ebx) 3052: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx) 3059: c7 43 34 00 08 00 00 movl $0x800,0x34(%ebx) 3060: f6 47 12 01 testb $0x1,0x12(%edi) 3064: 0f 85 c0 00 00 00 jne 312a 306a: 68 00 04 00 00 push $0x400 306f: 8b 55 08 mov 0x8(%ebp),%edx 3072: ff b2 50 01 00 00 pushl 0x150(%edx) 3078: e8 fc ff ff ff call 3079 307d: 57 push %edi 307e: e8 fc ff ff ff call 307f 3083: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 3087: 0f 85 94 00 00 00 jne 3121 308d: b8 01 00 00 00 mov $0x1,%eax 3092: e9 4e 01 00 00 jmp 31e5 3097: 90 nop 3098: 53 push %ebx 3099: 6a 01 push $0x1 309b: e8 fc ff ff ff call 309c 30a0: 89 c7 mov %eax,%edi 30a2: 83 c4 08 add $0x8,%esp 30a5: e9 0c ff ff ff jmp 2fb6 30aa: 89 f6 mov %esi,%esi 30ac: 8b 02 mov (%edx),%eax 30ae: a3 00 00 00 00 mov %eax,0x0 30b3: ff 0d 00 00 00 00 decl 0x0 30b9: 66 89 5a 10 mov %bx,0x10(%edx) 30bd: ff 04 9d 00 00 00 00 incl 0x0(,%ebx,4) 30c4: c7 02 00 00 00 00 movl $0x0,(%edx) 30ca: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) 30d1: 8d 42 2c lea 0x2c(%edx),%eax 30d4: 89 42 08 mov %eax,0x8(%edx) 30d7: 66 c7 42 12 02 00 movw $0x2,0x12(%edx) 30dd: c7 42 14 00 00 00 00 movl $0x0,0x14(%edx) 30e4: c7 42 20 00 00 00 00 movl $0x0,0x20(%edx) 30eb: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) 30f2: 89 d7 mov %edx,%edi 30f4: 56 push %esi 30f5: e8 fc ff ff ff call 30f6 30fa: 83 c4 04 add $0x4,%esp 30fd: e9 b4 fe ff ff jmp 2fb6 3102: 89 f6 mov %esi,%esi 3104: 68 40 04 00 00 push $0x440 3109: 8b 55 08 mov 0x8(%ebp),%edx 310c: ff b2 50 01 00 00 pushl 0x150(%edx) 3112: e8 fc ff ff ff call 3113 3117: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 311b: 0f 84 6c ff ff ff je 308d 3121: 8b 7d 0c mov 0xc(%ebp),%edi 3124: 8b 47 2c mov 0x2c(%edi),%eax 3127: 89 47 08 mov %eax,0x8(%edi) 312a: 8b 47 08 mov 0x8(%edi),%eax 312d: 8d 48 02 lea 0x2(%eax),%ecx 3130: 8d 50 12 lea 0x12(%eax),%edx 3133: 89 57 08 mov %edx,0x8(%edi) 3136: 66 c7 41 0e ee 07 movw $0x7ee,0xe(%ecx) 313c: 66 c7 40 02 00 00 movw $0x0,0x2(%eax) 3142: 66 c7 41 02 00 80 movw $0x8000,0x2(%ecx) 3148: 66 c7 41 0c 00 00 movw $0x0,0xc(%ecx) 314e: c7 45 fc ff ff ff ff movl $0xffffffff,0xfffffffc(%ebp) 3155: 8b 55 fc mov 0xfffffffc(%ebp),%edx 3158: 89 50 06 mov %edx,0x6(%eax) 315b: 8b 55 fc mov 0xfffffffc(%ebp),%edx 315e: 89 50 0a mov %edx,0xa(%eax) 3161: 8b 45 08 mov 0x8(%ebp),%eax 3164: 83 b8 08 01 00 00 00 cmpl $0x0,0x108(%eax) 316b: 74 5b je 31c8 316d: 8b 80 0c 01 00 00 mov 0x10c(%eax),%eax 3173: 8b 58 2c mov 0x2c(%eax),%ebx 3176: 83 c3 02 add $0x2,%ebx 3179: 89 38 mov %edi,(%eax) 317b: 89 c8 mov %ecx,%eax 317d: c1 e8 16 shr $0x16,%eax 3180: 8b 14 85 00 00 00 00 mov 0x0(,%eax,4),%edx 3187: 84 d2 test %dl,%dl 3189: 7d 11 jge 319c 318b: 81 e2 00 00 c0 ff and $0xffc00000,%edx 3191: 89 c8 mov %ecx,%eax 3193: 25 ff ff 3f 00 and $0x3fffff,%eax 3198: eb 1b jmp 31b5 319a: 89 f6 mov %esi,%esi 319c: 89 c8 mov %ecx,%eax 319e: c1 e8 0c shr $0xc,%eax 31a1: 8b 14 85 00 00 00 00 mov 0x0(,%eax,4),%edx 31a8: 81 e2 00 f0 ff ff and $0xfffff000,%edx 31ae: 89 c8 mov %ecx,%eax 31b0: 25 ff 0f 00 00 and $0xfff,%eax 31b5: 09 c2 or %eax,%edx 31b7: 89 55 fc mov %edx,0xfffffffc(%ebp) 31ba: 89 d0 mov %edx,%eax 31bc: 89 43 04 mov %eax,0x4(%ebx) 31bf: 66 c7 43 02 00 00 movw $0x0,0x2(%ebx) 31c5: eb 0a jmp 31d1 31c7: 90 nop 31c8: 8b 55 08 mov 0x8(%ebp),%edx 31cb: 89 ba 08 01 00 00 mov %edi,0x108(%edx) 31d1: 8b 45 08 mov 0x8(%ebp),%eax 31d4: 89 b8 0c 01 00 00 mov %edi,0x10c(%eax) 31da: 3b 7d 0c cmp 0xc(%ebp),%edi 31dd: 0f 94 c0 sete %al 31e0: 25 ff 00 00 00 and $0xff,%eax 31e5: 8d 65 f0 lea 0xfffffff0(%ebp),%esp 31e8: 5b pop %ebx 31e9: 5e pop %esi 31ea: 5f pop %edi 31eb: c9 leave 31ec: c3 ret 31ed: 8d 76 00 lea 0x0(%esi),%esi The assembler code generated by the compiler for fxp_add_rfabuf: .stabs "fxp_add_rfabuf:f(0,1)",36,0,1840,fxp_add_rfabuf .stabs "sc:p(0,28)",160,0,1839,8 .stabs "oldm:p(20,2)",160,0,1839,12 .type fxp_add_rfabuf,@function fxp_add_rfabuf: .LBB1061: .LBB1062: pushl %ebp movl %esp,%ebp subl $4,%esp pushl %edi pushl %esi pushl %ebx .stabn 68,0,1845,.LM2786-fxp_add_rfabuf .LM2786: movl $1,%edi movl $1,%ebx call splimp movl %eax,%esi cmpl $0,mmbfree jne .L1934 pushl $1 pushl $1 call m_mballoc addl $8,%esp .p2align 2,0x90 .L1934: movl mmbfree,%edx testl %edx,%edx jne .L1968 pushl %esi call splx pushl %ebx pushl %edi call m_retryhdr movl %eax,%edx addl $12,%esp testl %edx,%edx jne .L1937 testl %edi,%edi je .L1969 .L1937: movl %edx,%edi .LBE1062: .L1932: .stabn 68,0,1846,.LM2787-fxp_add_rfabuf .LM2787: testl %edi,%edi je .L1940 .stabn 68,0,1847,.LM2788-fxp_add_rfabuf .LM2788: .LBB1063: movl %edi,%ebx .LBB1064: call splimp movl %eax,%esi cmpl $0,mclfree jne .L1947 pushl $1 pushl $1 call m_clalloc addl $8,%esp .p2align 2,0x90 .L1947: movl mclfree,%ecx testl %ecx,%ecx je .L1948 movl %ecx,%eax subl mbutl,%eax shrl $11,%eax movl mclrefcnt,%edx incb (%eax,%edx) decl mbstat+12 movl (%ecx),%eax movl %eax,mclfree movl %ecx,44(%ebx) pushl %esi call splx addl $4,%esp jmp .L1945 .p2align 2,0x90 .L1948: pushl %esi call splx addl $4,%esp movl $1,%eax testl %eax,%eax jne .L1950 call m_clalloc_wait movl %eax,44(%ebx) jmp .L1945 .p2align 2,0x90 .L1950: movl $0,44(%ebx) .LBE1064: .L1945: cmpl $0,44(%ebx) je .L1942 movl 44(%ebx),%eax movl %eax,8(%ebx) orb $1,18(%ebx) movl $0,48(%ebx) movl $0,56(%ebx) movl $2048,52(%ebx) .LBE1063: .L1942: .stabn 68,0,1848,.LM2789-fxp_add_rfabuf .LM2789: testb $1,18(%edi) jne .L1957 .stabn 68,0,1849,.LM2790-fxp_add_rfabuf .LM2790: pushl $.LC40 movl 8(%ebp),%edx pushl 336(%edx) call device_printf .stabn 68,0,1851,.LM2791-fxp_add_rfabuf .LM2791: pushl %edi call m_freem .stabn 68,0,1852,.LM2792-fxp_add_rfabuf .LM2792: cmpl $0,12(%ebp) jne .L1958 .stabn 68,0,1853,.LM2793-fxp_add_rfabuf .LM2793: .L1970: movl $1,%eax jmp .L1967 .p2align 2,0x90 .L1969: pushl %ebx pushl $1 call m_mballoc_wait movl %eax,%edi addl $8,%esp jmp .L1932 .p2align 2,0x90 .L1968: movl (%edx),%eax movl %eax,mmbfree decl mbtypes movw %bx,16(%edx) incl mbtypes(,%ebx,4) movl $0,(%edx) movl $0,4(%edx) leal 44(%edx),%eax movl %eax,8(%edx) movw $2,18(%edx) movl $0,20(%edx) movl $0,32(%edx) movl $0,40(%edx) movl %edx,%edi pushl %esi call splx addl $4,%esp jmp .L1932 .p2align 2,0x90 .L1940: .stabn 68,0,1858,.LM2794-fxp_add_rfabuf .LM2794: pushl $.LC41 movl 8(%ebp),%edx pushl 336(%edx) call device_printf .stabn 68,0,1860,.LM2795-fxp_add_rfabuf .LM2795: cmpl $0,12(%ebp) je .L1970 .L1958: .stabn 68,0,1862,.LM2796-fxp_add_rfabuf .LM2796: movl 12(%ebp),%edi .stabn 68,0,1863,.LM2797-fxp_add_rfabuf .LM2797: movl 44(%edi),%eax movl %eax,8(%edi) .L1957: .stabn 68,0,1870,.LM2798-fxp_add_rfabuf .LM2798: movl 8(%edi),%eax .stabn 68,0,1876,.LM2799-fxp_add_rfabuf .LM2799: leal 2(%eax),%ecx .stabn 68,0,1877,.LM2800-fxp_add_rfabuf .LM2800: leal 18(%eax),%edx movl %edx,8(%edi) .stabn 68,0,1878,.LM2801-fxp_add_rfabuf .LM2801: movw $2030,14(%ecx) .stabn 68,0,1886,.LM2802-fxp_add_rfabuf .LM2802: movw $0,2(%eax) .stabn 68,0,1887,.LM2803-fxp_add_rfabuf .LM2803: movw $32768,2(%ecx) .stabn 68,0,1888,.LM2804-fxp_add_rfabuf .LM2804: movw $0,12(%ecx) .stabn 68,0,1890,.LM2805-fxp_add_rfabuf .LM2805: movl $-1,-4(%ebp) .stabn 68,0,251,.LM2806-fxp_add_rfabuf .LM2806: .LBB1065: .stabn 68,0,253,.LM2807-fxp_add_rfabuf .LM2807: movl -4(%ebp),%edx movl %edx,6(%eax) .stabn 68,0,261,.LM2808-fxp_add_rfabuf .LM2808: .LBE1065: .stabn 68,0,251,.LM2809-fxp_add_rfabuf .LM2809: .LBB1066: .stabn 68,0,253,.LM2810-fxp_add_rfabuf .LM2810: movl -4(%ebp),%edx movl %edx,10(%eax) .stabn 68,0,261,.LM2811-fxp_add_rfabuf .LM2811: .LBE1066: .stabn 68,0,1898,.LM2812-fxp_add_rfabuf .LM2812: movl 8(%ebp),%eax cmpl $0,264(%eax) je .L1961 .stabn 68,0,1899,.LM2813-fxp_add_rfabuf .LM2813: movl 268(%eax),%eax movl 44(%eax),%ebx addl $2,%ebx .stabn 68,0,1901,.LM2814-fxp_add_rfabuf .LM2814: movl %edi,(%eax) .stabs "machine/pmap.h",132,0,0,.Ltext801 .Ltext801: .stabn 68,0,175,.LM2815-fxp_add_rfabuf .LM2815: .LBB1067: .stabn 68,0,176,.LM2816-fxp_add_rfabuf .LM2816: .LBB1068: .stabn 68,0,177,.LM2817-fxp_add_rfabuf .LM2817: movl %ecx,%eax shrl $22,%eax movl PTD(,%eax,4),%edx testb %dl,%dl jge .L1962 .stabn 68,0,178,.LM2818-fxp_add_rfabuf .LM2818: andl $-4194304,%edx movl %ecx,%eax andl $4194303,%eax .stabn 68,0,179,.LM2819-fxp_add_rfabuf .LM2819: jmp .L1971 .p2align 2,0x90 .L1962: .stabn 68,0,180,.LM2820-fxp_add_rfabuf .LM2820: movl %ecx,%eax shrl $12,%eax .stabn 68,0,181,.LM2821-fxp_add_rfabuf .LM2821: movl PTmap(,%eax,4),%edx andl $-4096,%edx movl %ecx,%eax andl $4095,%eax .L1971: orl %eax,%edx .stabn 68,0,184,.LM2822-fxp_add_rfabuf .LM2822: .LBE1068: .LBE1067: .stabs "../../dev/fxp/if_fxp.c",132,0,0,.Ltext802 .Ltext802: .stabn 68,0,1902,.LM2823-fxp_add_rfabuf .LM2823: movl %edx,-4(%ebp) .stabn 68,0,251,.LM2824-fxp_add_rfabuf .LM2824: .LBB1069: .stabn 68,0,253,.LM2825-fxp_add_rfabuf .LM2825: movl %edx,%eax movl %eax,4(%ebx) .stabn 68,0,261,.LM2826-fxp_add_rfabuf .LM2826: .LBE1069: .stabn 68,0,1904,.LM2827-fxp_add_rfabuf .LM2827: movw $0,2(%ebx) .stabn 68,0,1905,.LM2828-fxp_add_rfabuf .LM2828: jmp .L1966 .p2align 2,0x90 .L1961: .stabn 68,0,1906,.LM2829-fxp_add_rfabuf .LM2829: movl 8(%ebp),%edx movl %edi,264(%edx) .L1966: .stabn 68,0,1908,.LM2830-fxp_add_rfabuf .LM2830: movl 8(%ebp),%eax movl %edi,268(%eax) .stabn 68,0,1910,.LM2831-fxp_add_rfabuf .LM2831: cmpl 12(%ebp),%edi sete %al andl $255,%eax .L1967: leal -16(%ebp),%esp popl %ebx popl %esi popl %edi leave ret .stabn 68,0,1911,.LM2832-fxp_add_rfabuf .LM2832: .LBE1061: .Lfe27: .size fxp_add_rfabuf,.Lfe27-fxp_add_rfabuf .stabs "fxp_add_rfabuf:f(0,1)",36,0,1840,fxp_add_rfabuf .stabs "sc:p(0,28)",160,0,1839,8 .stabs "oldm:p(20,2)",160,0,1839,12 .stabs "v:(3,9)",128,0,1841,-4 .stabs "m:r(20,2)",64,0,1842,7 .stabs "rfa:r(0,30)",64,0,1843,1 .stabs "p_rfa:r(0,30)",64,0,1843,3 .stabn 192,0,0,.LBB1061-fxp_add_rfabuf .stabs "_mm:r(20,2)",64,0,1845,2 .stabs "_mhow:r(0,1)",64,0,1845,7 .stabs "_mtype:r(0,1)",64,0,1845,3 .stabs "_ms:r(0,1)",64,0,1845,6 .stabn 192,0,0,.LBB1062-fxp_add_rfabuf .stabn 224,0,0,.LBE1062-fxp_add_rfabuf .stabs "_mm:r(20,2)",64,0,1847,3 .stabn 192,0,0,.LBB1063-fxp_add_rfabuf .stabs "_mp:r(3,15)",64,0,1847,1 .stabs "_ms:r(0,1)",64,0,1847,6 .stabn 192,0,0,.LBB1064-fxp_add_rfabuf .stabn 224,0,0,.LBE1064-fxp_add_rfabuf .stabn 224,0,0,.LBE1063-fxp_add_rfabuf .stabn 192,0,0,.LBB1065-fxp_add_rfabuf .stabn 224,0,0,.LBE1065-fxp_add_rfabuf .stabn 192,0,0,.LBB1066-fxp_add_rfabuf .stabn 224,0,0,.LBE1066-fxp_add_rfabuf .stabs "va:r(7,8)",64,0,1902,1 .stabn 192,0,0,.LBB1067-fxp_add_rfabuf .stabs "pa:r(7,8)",64,0,176,2 .stabn 192,0,0,.LBB1068-fxp_add_rfabuf .stabn 224,0,0,.LBE1068-fxp_add_rfabuf .stabn 224,0,0,.LBE1067-fxp_add_rfabuf .stabn 192,0,0,.LBB1069-fxp_add_rfabuf .stabn 224,0,0,.LBE1069-fxp_add_rfabuf .stabn 224,0,0,.LBE1061-fxp_add_rfabuf .Lscope26: .stabs "",36,0,0,.Lscope26-fxp_add_rfabuf .section .rodata .p2align 5 .LC42: .byte 0x66,0x78,0x70,0x5f,0x6d,0x69,0x69,0x62,0x75,0x73 .byte 0x5f,0x72,0x65,0x61,0x64,0x72,0x65,0x67,0x3a,0x20 .byte 0x74,0x69,0x6d,0x65,0x64,0x20,0x6f,0x75,0x74,0xa .byte 0x0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Mar 13 8:48:40 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail2.hostonfly.net (services2.sc1.hostonfly.net [216.65.107.16]) by hub.freebsd.org (Postfix) with ESMTP id D0BE137B417; Wed, 13 Mar 2002 08:48:35 -0800 (PST) Received: from mail1.hostonfly.net (http.server2.sc1.hostonfly.net [216.65.107.33]) by mail2.hostonfly.net (Postfix) with ESMTP id D28A16B349; Wed, 13 Mar 2002 16:44:34 +0000 (GMT) From: Dmitry Koltsov To: freebsd-net@FreeBSD.ORG Cc: freebsd-questions@freebsd.org Subject: ADD TO(NEW Info): Apache/TCP stack issues Received: from 10009 by s-mail at www.server2.sc1.hostonfly.net Message-Id: <20020313164434.D28A16B349@mail2.hostonfly.net> Date: Wed, 13 Mar 2002 16:44:34 +0000 (GMT) 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 running on 4.4-stable. Seems like my problem is (connection refused) caused by listen queue. I have 1-10 requsts in apache listen queue (port 80), queue len is 511 connections and have counter "listen queue overflows" growing in the same time (!) Current listen queue sizes (qlen/incqlen/maxqlen) Listen Local Address 11/11/511 216.65.107.31.80 How it may be? Is there solution? Also I have tested queue with simple program (socket(), bind(), listen(sock,128), do nothing in the loop) and received this amazing stats: Current listen queue sizes (qlen/incqlen/maxqlen) Listen Local Address 193/0/128 216.65.107.31.81 (queue len >> queue maxlen) !!! Wednesday, March 13, 2002, I wrote: DK> I have some issues with TCP stack and/or Apache. DK> Issue: DK> I'm getting "Connection refused" error when trying to connect to Apache over Internet when packet loss is 1-2%. Not all connection attempts fail but about 3% of attempts. DK> When I'm trying to connect over local network(from another machine and localhost) in the same time, all is ok. DK> In order to get this statistics, I've made 20000 attempts from each place in the same time. DK> I guess apache is ok because from local network and localhost it gives no errors. DK> Is there solution? DK> Couple of examples: DK> 00:55:26.893251 151.27.40.210.1560 > 216.65.107.31.80: S 37780527:37780527(0) win 8192 (DF) DK> 00:55:26.893329 216.65.107.31.80 > 151.27.40.210.1560: S 2578149080:2578149080(0) ack 37780528 win 33232 (DF) DK> 00:55:27.300599 216.65.107.31.80 > 151.27.40.210.1560: R 1:1(0) ack 1 win 33232(DF) DK> 00:55:27.316952 151.27.40.210.1560 > 216.65.107.31.80: . ack 1 win 8576 (DF) DK> 00:55:27.317038 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 DK> 00:55:27.467521 151.27.40.210.1560 > 216.65.107.31.80: P 1:369(368) ack 1 win 8576 (DF) DK> 00:55:27.467567 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Mar 13 11:37:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from web21102.mail.yahoo.com (web21102.mail.yahoo.com [216.136.227.104]) by hub.freebsd.org (Postfix) with SMTP id 5553B37B400 for ; Wed, 13 Mar 2002 11:37:36 -0800 (PST) Message-ID: <20020313193735.75894.qmail@web21102.mail.yahoo.com> Received: from [152.15.24.197] by web21102.mail.yahoo.com via HTTP; Wed, 13 Mar 2002 11:37:35 PST Date: Wed, 13 Mar 2002 11:37:35 -0800 (PST) From: Vinod Subject: FreeBSD Vs. Linux Stack To: freebsd-net@freebsd.org 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 Hi there.I am a relative newbie to FreeBSD and UNIX in general.I am a Computer Science major and have some research work to be done at the ip kernel level of FreeBSD.I found this link "Linux IP Networking A Guide to the Implementation and Modification of the Linux Protocol Stack " at http://kernelnewbies.org/documents/ipnetworking/linuxipnetworking.html . An overview tells me this is exactly what i would have needed to start with if i were doing my work in Linux.Can anyone who has a good idea of both linux and FreeBSd tell me if this will pretty much suffice for FreeBSD too? I know the concepts are going to be similar like ip networking.But when it comes to system calls and stuff is it much different? Wouldappreciate the help very much. Vinod __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Mar 13 11:51: 0 2002 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id B4FD937B405 for ; Wed, 13 Mar 2002 11:50:58 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 91F4AAE1FC; Wed, 13 Mar 2002 11:50:58 -0800 (PST) Date: Wed, 13 Mar 2002 11:50:58 -0800 From: Alfred Perlstein To: Vinod Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD Vs. Linux Stack Message-ID: <20020313195058.GP32410@elvis.mu.org> References: <20020313193735.75894.qmail@web21102.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020313193735.75894.qmail@web21102.mail.yahoo.com> User-Agent: Mutt/1.3.27i 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 * Vinod [020313 11:37] wrote: > An overview tells me this is exactly what i would have > needed to start with if i were doing my work in > Linux.Can anyone who has a good idea of both linux and > FreeBSd tell me if this will pretty much suffice for > FreeBSD too? I know the concepts are going to be > similar like ip networking.But when it comes to system > calls and stuff is it much different? > Wouldappreciate the help very much. > Vinod The Stevens TCP/IP book Vol II is what you want for a FreeBSD kernel networking internals walkthrough. -- -Alfred Perlstein [alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Mar 13 11:59:25 2002 Delivered-To: freebsd-net@freebsd.org Received: from web20105.mail.yahoo.com (web20105.mail.yahoo.com [216.136.226.42]) by hub.freebsd.org (Postfix) with SMTP id 1F09B37B400 for ; Wed, 13 Mar 2002 11:59:22 -0800 (PST) Message-ID: <20020313195921.70952.qmail@web20105.mail.yahoo.com> Received: from [62.147.134.86] by web20105.mail.yahoo.com via HTTP; Wed, 13 Mar 2002 11:59:21 PST Date: Wed, 13 Mar 2002 11:59:21 -0800 (PST) From: ome ome Subject: MPD and Mysterious socket node To: freebsd-net@freebsd.org 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 What is the aim of the socket node in MPD which appear when i establish a pppoe session and the link becomes UP? It is the one which is created at the same time of the pppoe node and which disapear when the link is down. Thanks in advance, OME __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Mar 13 12:30:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 20DA737B425 for ; Wed, 13 Mar 2002 12:30:04 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA46634; Wed, 13 Mar 2002 12:15:41 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g2DKEtc73383; Wed, 13 Mar 2002 12:14:55 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200203132014.g2DKEtc73383@arch20m.dellroad.org> Subject: Re: MPD and Mysterious socket node In-Reply-To: <20020313195921.70952.qmail@web20105.mail.yahoo.com> "from ome ome at Mar 13, 2002 11:59:21 am" To: ome ome Date: Wed, 13 Mar 2002 12:14:55 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 ome ome writes: > What is the aim of the socket node in MPD which appear > when i establish a pppoe session and the link becomes UP? > It is the one which is created at the same time of the > pppoe node and which disapear when the link is down. The pppoe device layer in mpd needs to talk to the ng_pppoe node. The only way for a user process to talk to other netgraph nodes is by using an ng_socket(4) node. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 0: 6:49 2002 Delivered-To: freebsd-net@freebsd.org Received: from web20106.mail.yahoo.com (web20106.mail.yahoo.com [216.136.226.43]) by hub.freebsd.org (Postfix) with SMTP id 4FA9237B405 for ; Thu, 14 Mar 2002 00:06:44 -0800 (PST) Message-ID: <20020314080644.11418.qmail@web20106.mail.yahoo.com> Received: from [212.234.238.114] by web20106.mail.yahoo.com via HTTP; Thu, 14 Mar 2002 00:06:44 PST Date: Thu, 14 Mar 2002 00:06:44 -0800 (PST) From: ome ome Subject: Re: MPD and Mysterious socket node To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG In-Reply-To: <200203132014.g2DKEtc73383@arch20m.dellroad.org> 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 OK, but why don't you use the socket node used for MPD and connected to the PPP node ? Is it for make a cleaner code or is there a specific reason ? --- Archie Cobbs wrote: > ome ome writes: > > What is the aim of the socket node in MPD which > appear > > when i establish a pppoe session and the link > becomes UP? > > It is the one which is created at the same time of > the > > pppoe node and which disapear when the link is > down. > > The pppoe device layer in mpd needs to talk to the > ng_pppoe node. > The only way for a user process to talk to other > netgraph nodes > is by using an ng_socket(4) node. > > -Archie > > __________________________________________________________________________ > Archie Cobbs * Packet Design * > http://www.packetdesign.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 0:19:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from spidey.speakeasy.net (webmail.speakeasy.net [216.254.0.16]) by hub.freebsd.org (Postfix) with ESMTP id BC73537B416 for ; Thu, 14 Mar 2002 00:19:48 -0800 (PST) Received: (from nobody@localhost) by spidey.speakeasy.net (8.11.6/8.11.2) id g2E81mm01565; Thu, 14 Mar 2002 00:01:48 -0800 Message-Id: <200203140801.g2E81mm01565@spidey.speakeasy.net> Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 Date: Thu, 14 Mar 2002 00:01:48 -0800 From: failure@speakeasy.net To: freebsd-net@freebsd.org Subject: NAT and firewall X-Sender: failure@speakeasy.net X-Originating-Ip: [12.224.49.230] X-Mailer: Speakeasy Network Webmail 2.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 hi, i've just added a freebsd 4.3 host to our NAT'd LAN and i'm having trouble getting online. we have an SDSL line running into an ENI Speedstream 5871 router, which then runs into our SOHO Watchguard firewall. all 4 hosts on the LAN are plugged directly into the firewall. i've ran: $ ifconfig xl0 inet 192.168.254.254 netmask 255.255.255.0 $ route add -net default 192.168.254.254 which then shows: Dest Gateway Flags ---- ------- ----- default 192.168.254.254 UGSc i'm still not able to ping other hosts on the LAN or the firewall (gateway). what have i forgotten? thanks, jared To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 3:48:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from bps.jodocus.org (c115139.upc-c.chello.nl [212.187.115.139]) by hub.freebsd.org (Postfix) with ESMTP id 3E36237B400 for ; Thu, 14 Mar 2002 03:48:44 -0800 (PST) Received: (from joost@localhost) by bps.jodocus.org (8.11.6/8.11.6) id g2EBmr263968; Thu, 14 Mar 2002 12:48:53 +0100 (CET) (envelope-from joost) Date: Thu, 14 Mar 2002 12:48:53 +0100 From: Joost Bekkers To: failure@speakeasy.net Cc: freebsd-net@FreeBSD.ORG Subject: Re: NAT and firewall Message-ID: <20020314124853.A63946@bps.jodocus.org> Mail-Followup-To: Joost Bekkers , failure@speakeasy.net, freebsd-net@FreeBSD.ORG References: <200203140801.g2E81mm01565@spidey.speakeasy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200203140801.g2E81mm01565@spidey.speakeasy.net>; from failure@speakeasy.net on Thu, Mar 14, 2002 at 12:01:48AM -0800 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, Mar 14, 2002 at 12:01:48AM -0800, failure@speakeasy.net wrote: > hi, > > i've just added a freebsd 4.3 host to our NAT'd LAN and i'm having trouble getting online. > > we have an SDSL line running into an ENI Speedstream 5871 router, which then runs into our SOHO Watchguard firewall. all 4 hosts on the LAN are plugged directly into the firewall. > > i've ran: > > $ ifconfig xl0 inet 192.168.254.254 netmask 255.255.255.0 > $ route add -net default 192.168.254.254 > Somehow I don't think the FreeBSD machine is your default router. Assuming your soho is on .254 you should assign a different address to your bsd machine. eg. ifconfig xl0 inet 192.168.254.253 netmask 255.255.255.0 ^^^ change this to a free one ---/ greetz Joost To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 4:19:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from lex.balt.net (lex.balt.net [195.14.162.1]) by hub.freebsd.org (Postfix) with SMTP id 3531637B404 for ; Thu, 14 Mar 2002 04:19:14 -0800 (PST) Received: (qmail 6338 invoked from network); 14 Mar 2002 12:19:10 -0000 Received: from observer.lt (195.14.167.39) by lex.balt.net with SMTP; 14 Mar 2002 12:19:10 -0000 Received: from ksaveras ([10.11.0.2]) by observer.lt ( IA Mail Server Version: 3.2.4. Build: 1100 ) ) ; Thu, 14 Mar 2002 14:19:10 +0100 Message-ID: <001501c1cb5b$48dba060$02000b0a@ksaveras> From: "Xawiers" To: Subject: Trouble to connect FreeBSD 4.5 to internet Date: Thu, 14 Mar 2002 14:22:26 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01C1CB63.AA8F3F80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 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 This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C1CB63.AA8F3F80 Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: quoted-printable Hello, I have trouble to connect FreeBSD to internet. Our ISP gave me these datas about network Gateway: 192.168.100.254 My external IP: 195.14.167.39 Netmask: 255.255.255.254 what i did: First I added alias, because I cant see my gateway - no ping response = (not in the same subnet) ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 alias And I add default gateway: route add default 192.168.100.254 now my GW responses for ping, but internet - no=20 How I coud resolve this problem. P.S. sorry for my english Best regards Xawiers ------=_NextPart_000_0012_01C1CB63.AA8F3F80 Content-Type: text/html; charset="windows-1257" Content-Transfer-Encoding: quoted-printable
Hello,
I have trouble to connect FreeBSD to internet.
Our ISP gave me these datas about network
Gateway: 192.168.100.254
My external IP: 195.14.167.39
Netmask: 255.255.255.254
 
what i did:
First I added alias, because I cant see my gateway - no ping = response (not=20 in the same subnet)
 
ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 alias
 
And I add default gateway:
 
route add default 192.168.100.254
 
now my GW responses for ping, but internet - no
How I coud resolve this problem.
 
P.S. sorry for my english
Best regards
Xawiers
------=_NextPart_000_0012_01C1CB63.AA8F3F80-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 9:30: 8 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id C8BAC37B402 for ; Thu, 14 Mar 2002 09:30:04 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id JAA53585; Thu, 14 Mar 2002 09:19:21 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g2EHIWI77198; Thu, 14 Mar 2002 09:18:32 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200203141718.g2EHIWI77198@arch20m.dellroad.org> Subject: Re: MPD and Mysterious socket node In-Reply-To: <20020314080644.11418.qmail@web20106.mail.yahoo.com> "from ome ome at Mar 14, 2002 00:06:44 am" To: ome ome Date: Thu, 14 Mar 2002 09:18:32 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 ome ome writes: > OK, but why don't you use the socket node used for MPD > and connected to the PPP node ? > Is it for make a cleaner code or is there a specific > reason ? It's for cleaner code: the addition socket node is completely private to the pppoe device layer. Are you just curious, or are you actually running out of file descriptors or something? -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 13:37:26 2002 Delivered-To: freebsd-net@freebsd.org Received: from moutvdomng1.kundenserver.de (moutvdomng1.kundenserver.de [212.227.126.181]) by hub.freebsd.org (Postfix) with ESMTP id 32A7037B400 for ; Thu, 14 Mar 2002 13:37:22 -0800 (PST) Received: from [195.20.224.208] (helo=mrvdom01.kundenserver.de) by moutvdomng1.kundenserver.de with esmtp (Exim 3.22 #2) id 16lcuX-0007YN-00 for freebsd-net@freebsd.org; Thu, 14 Mar 2002 22:37:21 +0100 Received: from [212.202.192.129] (helo=neuromancer) by mrvdom01.kundenserver.de with smtp (Exim 2.12 #2) id 16lcuX-0001xF-00 for freebsd-net@freebsd.org; Thu, 14 Mar 2002 22:37:21 +0100 Message-ID: <01ed01c1cba0$7c49c5e0$0a00a8c0@neuromancer> From: "Thomas 'Neo666' Weber [yae/vof/gc]" To: Subject: what does "session out of mcls" with pppoe mean? Date: Thu, 14 Mar 2002 22:37:47 +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.2600.0000 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, i am running a server over a german Q-DSL-connection with FreeBSD 4.4 After some hours (fron ~4 to ~24) connected to dsl, pppoe floods the console with messages "session out of mcls" and the complete network crashes, even a ping over my lan to the server is not possible. I found no dokumentation about this error in the net, only the line in the sourcecode, wich i cannot understand. Please help with this prob, thanks, Thomas 'Neo' Weber --- thomas@youngarts.org neo@gothic-chat.de Webmaster @ www.gothic-chat.de www.deep-art.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 14:21: 3 2002 Delivered-To: freebsd-net@freebsd.org Received: from grace.speakeasy.org (grace.speakeasy.org [216.254.0.2]) by hub.freebsd.org (Postfix) with SMTP id C45DD37B405 for ; Thu, 14 Mar 2002 14:21:00 -0800 (PST) Received: (qmail 10575 invoked by uid 31413); 14 Mar 2002 22:21:00 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 14 Mar 2002 22:21:00 -0000 Date: Thu, 14 Mar 2002 14:21:00 -0800 (PST) From: BURNT MELTING MONKEY FACE To: freebsd-net@freebsd.org Subject: DSL router, firewall, NAT 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 hi, i've just added a freebsd 4.3 host to our NAT'd LAN and i'm having trouble getting online. we have an SDSL line running into an ENI Speedstream 5871 router, which then runs into our SOHO Watchguard firewall. all 4 hosts on the LAN are plugged directly into the firewall. i've ran: $ ifconfig xl0 inet 192.168.254.251 netmask 255.255.255.0 $ route add -net default 192.168.254.254 which then shows: Dest Gateway Flags ---- ------- ----- default 192.168.254.254 UGSc i'm still not able to ping other hosts on the LAN or the firewall (gateway). what have i forgotten? thanks, jared To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 16:39: 9 2002 Delivered-To: freebsd-net@freebsd.org Received: from artemis.drwilco.net (diana.drwilco.net [66.48.127.79]) by hub.freebsd.org (Postfix) with ESMTP id 525CD37B417 for ; Thu, 14 Mar 2002 16:39:03 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g2F0d3V94658 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Thu, 14 Mar 2002 19:39:05 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020315014903.01d37078@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Mar 2002 01:50:08 +0100 To: BURNT MELTING MONKEY FACE , freebsd-net@FreeBSD.ORG From: "Rogier R. Mulhuijzen" Subject: Re: DSL router, firewall, NAT In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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'm still not able to ping other hosts on the LAN or the firewall (gateway). > >what have i forgotten? Is the net.inet.ip.forwarding sysctl set to 1? (gateway_enable="YES" in /etc/rc.conf to set on boot) Doc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Mar 14 23:36:23 2002 Delivered-To: freebsd-net@freebsd.org Received: from tesla.foo.is (tesla.reverse-bias.org [217.151.166.96]) by hub.freebsd.org (Postfix) with ESMTP id 6A6CA37B419 for ; Thu, 14 Mar 2002 23:36:20 -0800 (PST) Received: from germanium (germanium.reverse-bias.org [192.168.1.1]) by tesla.foo.is (Postfix) with SMTP id 246F32768; Fri, 15 Mar 2002 07:36:14 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Baldur Gislason To: BURNT MELTING MONKEY FACE Subject: Re: DSL router, firewall, NAT Date: Fri, 15 Mar 2002 07:37:50 +0000 X-Mailer: KMail [version 1.2] References: In-Reply-To: Cc: freebsd-net@freebsd.org MIME-Version: 1.0 Message-Id: <02031507375001.03229@germanium> Content-Transfer-Encoding: 8bit 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 A patch cable would help... Baldur On Thursday 14 March 2002 22:21, you wrote: > hi, > > i've just added a freebsd 4.3 host to our NAT'd LAN and i'm having trouble > getting online. > > we have an SDSL line running into an ENI Speedstream 5871 router, which > then runs into our SOHO Watchguard firewall. all 4 hosts on the LAN are > plugged directly into the firewall. > > i've ran: > > $ ifconfig xl0 inet 192.168.254.251 netmask 255.255.255.0 > $ route add -net default 192.168.254.254 > > which then shows: > > Dest Gateway Flags > ---- ------- ----- > default 192.168.254.254 UGSc > > i'm still not able to ping other hosts on the LAN or the firewall > (gateway). > > what have i forgotten? > > thanks, > > jared > > > > > 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 Fri Mar 15 0:12: 2 2002 Delivered-To: freebsd-net@freebsd.org Received: from web20107.mail.yahoo.com (web20107.mail.yahoo.com [216.136.226.44]) by hub.freebsd.org (Postfix) with SMTP id DCD7737B419 for ; Fri, 15 Mar 2002 00:12:00 -0800 (PST) Message-ID: <20020315081200.60579.qmail@web20107.mail.yahoo.com> Received: from [212.234.238.114] by web20107.mail.yahoo.com via HTTP; Fri, 15 Mar 2002 00:12:00 PST Date: Fri, 15 Mar 2002 00:12:00 -0800 (PST) From: ome ome Subject: Re: MPD and Mysterious socket node To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG In-Reply-To: <200203141718.g2EHIWI77198@arch20m.dellroad.org> 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 --- Archie Cobbs wrote: > ome ome writes: > > OK, but why don't you use the socket node used for > MPD > > and connected to the PPP node ? > > Is it for make a cleaner code or is there a > specific > > reason ? > > It's for cleaner code: the addition socket node is > completely > private to the pppoe device layer. > > Are you just curious, or are you actually running > out of file > descriptors or something? > > -Archie No problems, it's OK, thanks! It's only for well understanding the graph of MPD and all nodes functionalities (I'm quiet poor in C). __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 0:51:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from ns.tumgasa.ru (tumgasa.ru [217.150.49.15]) by hub.freebsd.org (Postfix) with ESMTP id 492EF37B402 for ; Fri, 15 Mar 2002 00:51:13 -0800 (PST) Received: from darkstar (darkstar.inner.tumgasa.ru [192.168.1.28]) by ns.tumgasa.ru (8.11.6/8.11.6) with SMTP id g2F8pBP01325 for ; Fri, 15 Mar 2002 13:51:11 +0500 (YEKT) (envelope-from frozer@tumgasa.ru) Content-Type: text/plain; charset="koi8-r" From: "Denis I. Morozov" Organization: TumGASA To: freebsd-net@FreeBSD.ORG Subject: Cant to up PPP Date: Fri, 15 Mar 2002 13:50:59 +0500 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02031513505907.01094@darkstar> Content-Transfer-Encoding: 8bit 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 all! I'm try to setup PPP-link between my FreeBSD 4.5 boxes, I have leased line and two a-sinchro modems for link connected to COM1 ports. Also I wrote in /etc/ppp/ppp.conf in Router1 ========== ppp.conf ============== default: set device /dev/cuaa0 set log Phase Chat LCP IPCP CCP tun command comlink: set speed 115200 set mtu 576 set mru 576 set ifaddr 192.168.12.1 192.168.12.2 255.255.255.252 0.0.0.0 add default HISADDR ========= ppp.conf END ========== in Router2 everithing is same, exclude: set ifaddr 192.168.12.2 192.168.12.1 255.255.255.252 0.0.0.0 Ok, I start ppp with command: # ppp -dedicated comlink Working in dedicated mode Using interface tun0 # All indicators on my modem says that link is up and everinthing ok. I see what ifconfig utility said: ppp0: flags=8010 mtu 1500 tun0: flags=8051 mtu 1500 inet6 fe80:2d0:4cff:fe49:a97%tun0 prefixlen 64 scopeid 0x8 So, MTU value not set (1500 must be 576) and IP not set. What I doing wrong? -- Denis I. Morozov -- PGP Key: D38CD5C8 - Keyserver: www.keyserver.net Key fingerprint = 365D 04F2 A90A 764C DE4F F7ED B2A2 CF78 D38C D5C8 mailto: frozer@tumgasa.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 1:11:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from www.example.org (dhcp-nic-val-26-83.cisco.com [64.103.26.83]) by hub.freebsd.org (Postfix) with SMTP id 4AE9D37B41A for ; Fri, 15 Mar 2002 01:10:56 -0800 (PST) Received: (qmail 18140 invoked by uid 1000); 15 Mar 2002 09:10:28 -0000 Date: Fri, 15 Mar 2002 10:10:28 +0100 From: Marco Molteni To: freebsd-net@freebsd.org Subject: Fwd: [e2e] TCP tuning software from web100 Message-ID: <20020315101028.B17665@cobweb.example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.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 FYI Marco ----- Forwarded message from Matt Mathis ----- From: Matt Mathis To: end2end-interest@postel.org Date: Thu, 14 Mar 2002 23:57:45 -0500 (EST) Subject: [e2e] TCP tuning software from web100 The web100 project just released TCP performance instrumentation software. This software consists of Linux kernel patches that (loosely) implement draft-ietf-tsvwg-tcp-mib-extension-00.txt as well as a set of user tools that make it easier for a moderately cluefull network administrator or user to get TCP to run at line rate. >From the abstract in the I-D: This draft describes extended performance statistics for TCP. They are designed to use TCP's ideal vantage point to diagnose performance problems in both the network and the application. If a network based application is performing poorly, TCP can determine if the bottleneck is in the sender, the receiver or the network itself. If the bottle- neck is in the network, TCP can provide specific information about its nature. Neither the software nor the draft is done yet. If you have suggestions or ideas for TCP events that should be instrumented please let us know. Also, you might find it interesting to speculate how this might change the traffic dynamics of the Internet as a whole. There is more information and software at www.web100.org If you have any questions or comments, I will be at the IETF. Thanks, --MM-- ----- End forwarded message ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 13: 0:34 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 762E837B404; Fri, 15 Mar 2002 13:00:30 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2FL0Ul92006; Fri, 15 Mar 2002 13:00:30 -0800 (PST) (envelope-from rizzo) Date: Fri, 15 Mar 2002 13:00:30 -0800 From: Luigi Rizzo To: net@freebsd.org Subject: recent change to netinet/in.c panics bootp kernels w/ >1 interface Message-ID: <20020315130030.B91788@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i 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 The part shown below of a recent commit to in.c (1.60->1.61, MFC'ed as 1.44.2.7 -> 1.44.2.8) always causes a panic when using 'options BOOTP' on a system with more than 1 interface. ad0: 15MB [490/2/32] at ata0-master BIOSPIO panic: bootpc_fakeup_interface: set if broadcast addr, error=49 Debugger("panic") Stopped at Debugger+0x34: movb $0,0xc03a7420 db> trace Debugger(c030677b) at Debugger+0x34 panic(c0310120,31,0,c08c7000,c08c5000) at panic+0x70 nfs_writebp(c08c7000,c08c5000,c03a9c80) at nfs_writebp+0x1059 bootpc_init(c03cfff8,c015fd68,0,3ccc00,3d4000) at bootpc_init+0x14b cpu_rootconf(0,3ccc00,3d4000,0,c01267d0) at cpu_rootconf+0x8 mi_startup(0,0,0,0,0) at mi_startup+0x68 btext() at btext+0xb0 db> This was noticed by Doug Ambrisko who nailed down the problem to this commit. Now, I see two possibilities for a fix here: either move the new block after the EEXIST check (but this would nullify its effects), or add checks in sys/nfs/bootpc_subr.c to ignore errors from ifioctl (the EEXIST is apparently mapped into EADDRNOTAVAIL), as it used to be in the past. Of course, hoping that the "ia->ia_addr = oldaddr;" assignment does not cause other problems. I can work on the latter, the problem is rather critical and urgent to fix as it basically breaks most diskless setups. thanks luigi @@ -716,6 +725,12 @@ in_ifinit(ifp, ia, sin, scrub) } if ((error = rtinit(&(ia->ia_ifa), (int)RTM_ADD, flags)) == 0) ia->ia_flags |= IFA_ROUTE; + + if (error != 0 && ia->ia_dstaddr.sin_family == AF_INET) { + ia->ia_addr = oldaddr; + return (error); + } + /* XXX check if the subnet route points to the same interface */ if (error == EEXIST) error = 0; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 13:15: 8 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 24CE237B405; Fri, 15 Mar 2002 13:15:04 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2FLF4o92140; Fri, 15 Mar 2002 13:15:04 -0800 (PST) (envelope-from rizzo) Date: Fri, 15 Mar 2002 13:15:03 -0800 From: Luigi Rizzo To: net@FreeBSD.ORG Subject: Re: recent change to netinet/in.c panics bootp kernels w/ >1 interface Message-ID: <20020315131503.E91788@iguana.icir.org> References: <20020315130030.B91788@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020315130030.B91788@iguana.icir.org> User-Agent: Mutt/1.3.23i 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 As a followup, this seems to fix the problem, if there are no objections I am going to commit this soon. cheers luigi > lcvs diff -u bootp_subr.c Index: bootp_subr.c =================================================================== RCS file: /home/ncvs/src/sys/nfs/Attic/bootp_subr.c,v retrieving revision 1.20.2.7 diff -u -r1.20.2.7 bootp_subr.c --- bootp_subr.c 1 Feb 2002 17:22:55 -0000 1.20.2.7 +++ bootp_subr.c 15 Mar 2002 21:08:16 -0000 @@ -1044,10 +1044,11 @@ ifctx->broadcast.sin_addr.s_addr = sin->sin_addr.s_addr; error = ifioctl(so, SIOCSIFBRDADDR, (caddr_t)ireq, procp); - if (error != 0) + if (error != 0 && error != EADDRNOTAVAIL) panic("bootpc_fakeup_interface: " "set if broadcast addr, error=%d", error); + error = 0; /* Get HW address */ @@ -1109,7 +1110,7 @@ sin = (struct sockaddr_in *) &ireq->ifr_addr; clear_sinaddr(sin); error = ifioctl(so, SIOCDIFADDR, (caddr_t) ireq, procp); - if (error != 0 && (error != EEXIST || + if (error != 0 && (error != EADDRNOTAVAIL || ifctx == gctx->interfaces)) panic("bootpc_adjust_interface: " "SIOCDIFADDR, error=%d", error); On Fri, Mar 15, 2002 at 01:00:30PM -0800, Luigi Rizzo wrote: > The part shown below of a recent commit to in.c (1.60->1.61, > MFC'ed as 1.44.2.7 -> 1.44.2.8) always causes a panic when > using 'options BOOTP' on a system with more than 1 interface. ... > This was noticed by Doug Ambrisko who nailed down the problem > to this commit. > > Now, I see two possibilities for a fix here: either move the new > block after the EEXIST check (but this would nullify its effects), > or add checks in sys/nfs/bootpc_subr.c to ignore errors from > ifioctl (the EEXIST is apparently mapped into EADDRNOTAVAIL), > as it used to be in the past. Of course, hoping that > the "ia->ia_addr = oldaddr;" assignment does not cause other > problems. > > I can work on the latter, the problem is rather critical > and urgent to fix as it basically breaks most diskless setups. > > thanks > luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 14:29:47 2002 Delivered-To: freebsd-net@freebsd.org Received: from ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by hub.freebsd.org (Postfix) with ESMTP id 6484737B402 for ; Fri, 15 Mar 2002 14:29:40 -0800 (PST) Received: (from ambrisko@localhost) by ambrisko.com (8.11.6/8.11.6) id g2FMSxg43104; Fri, 15 Mar 2002 14:28:59 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200203152228.g2FMSxg43104@ambrisko.com> Subject: Re: recent change to netinet/in.c panics bootp kernels w/ >1 interface In-Reply-To: <20020315131503.E91788@iguana.icir.org> To: Luigi Rizzo Date: Fri, 15 Mar 2002 14:28:59 -0800 (PST) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Luigi Rizzo writes: | As a followup, this seems to fix the problem, if there are no | objections I am going to commit this soon. | | cheers | luigi | | | > lcvs diff -u bootp_subr.c | Index: bootp_subr.c | =================================================================== | RCS file: /home/ncvs/src/sys/nfs/Attic/bootp_subr.c,v | retrieving revision 1.20.2.7 | diff -u -r1.20.2.7 bootp_subr.c | --- bootp_subr.c 1 Feb 2002 17:22:55 -0000 1.20.2.7 | +++ bootp_subr.c 15 Mar 2002 21:08:16 -0000 | @@ -1044,10 +1044,11 @@ | ifctx->broadcast.sin_addr.s_addr = sin->sin_addr.s_addr; | | error = ifioctl(so, SIOCSIFBRDADDR, (caddr_t)ireq, procp); | - if (error != 0) | + if (error != 0 && error != EADDRNOTAVAIL) | panic("bootpc_fakeup_interface: " | "set if broadcast addr, error=%d", | error); | + error = 0; | | /* Get HW address */ | | @@ -1109,7 +1110,7 @@ | sin = (struct sockaddr_in *) &ireq->ifr_addr; | clear_sinaddr(sin); | error = ifioctl(so, SIOCDIFADDR, (caddr_t) ireq, procp); | - if (error != 0 && (error != EEXIST || | + if (error != 0 && (error != EADDRNOTAVAIL || | ifctx == gctx->interfaces)) | panic("bootpc_adjust_interface: " | "SIOCDIFADDR, error=%d", error); | | On Fri, Mar 15, 2002 at 01:00:30PM -0800, Luigi Rizzo wrote: | > The part shown below of a recent commit to in.c (1.60->1.61, | > MFC'ed as 1.44.2.7 -> 1.44.2.8) always causes a panic when | > using 'options BOOTP' on a system with more than 1 interface. | ... | > This was noticed by Doug Ambrisko who nailed down the problem | > to this commit. | > | > Now, I see two possibilities for a fix here: either move the new | > block after the EEXIST check (but this would nullify its effects), | > or add checks in sys/nfs/bootpc_subr.c to ignore errors from | > ifioctl (the EEXIST is apparently mapped into EADDRNOTAVAIL), | > as it used to be in the past. Of course, hoping that | > the "ia->ia_addr = oldaddr;" assignment does not cause other | > problems. | > | > I can work on the latter, the problem is rather critical | > and urgent to fix as it basically breaks most diskless setups. That fixes the panic and makes the first interface work. However, I recall it used to send BOOTP/DHCP request out on all interfaces and indeed it claims to: IPsec: Initialized Security Association Processing. ad0: 19092MB [38792/16/63] at ata0-master UDMA100 Sending DHCP Discover packet from interface sis0 (00:e0:18:50:d5:54) Sending DHCP Discover packet from interface fxp0 (00:02:b3:39:2f:c8) bootpc_call: sosend: 51 state 00000000 Sending DHCP Discover packet from interface faith0 (00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00) however, a packet capture via a connect to fxp0 showed that was not the case. The packets seem to be only going out the first interface. The others are ignored. I also seem to have run into a bug with the 630ET support and netbooting via Etherboot. Linux/Etherboot does SIS_SETBIT(sc, SIS_CSR, SIS_CSR_ACCESS_MODE); Adding: if (sc->sis_rev == SIS_REV_630ET) SIS_CLRBIT(sc, SIS_CSR, SIS_CSR_ACCESS_MODE); to the FreeBSD driver fixes this. Seems like FreeBSD driver does not using this mode or it can't detect the PHYS. I'm going to do some more tests with this and then commit that. Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 15: 2:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 59CE737B492 for ; Fri, 15 Mar 2002 15:02:14 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2FN2CC92937; Fri, 15 Mar 2002 15:02:12 -0800 (PST) (envelope-from rizzo) Date: Fri, 15 Mar 2002 15:02:12 -0800 From: Luigi Rizzo To: Doug Ambrisko Cc: net@FreeBSD.ORG Subject: Re: recent change to netinet/in.c panics bootp kernels w/ >1 interface Message-ID: <20020315150212.A92612@iguana.icir.org> References: <20020315131503.E91788@iguana.icir.org> <200203152228.g2FMSxg43104@ambrisko.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200203152228.g2FMSxg43104@ambrisko.com> User-Agent: Mutt/1.3.23i 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, Mar 15, 2002 at 02:28:59PM -0800, Doug Ambrisko wrote: ... > That fixes the panic and makes the first interface work. However, > I recall it used to send BOOTP/DHCP request out on all interfaces and > indeed it claims to: right... the only way i found to fix that problem is, in netinet/in.c, to move the code that ignores EEXIST before the section that traps the error. Basically, almost nuke the second part of the change to in.c cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 18: 8:48 2002 Delivered-To: freebsd-net@freebsd.org Received: from outboundx.mv.meer.net (outboundx.mv.meer.net [209.157.152.12]) by hub.freebsd.org (Postfix) with ESMTP id 797C737B402 for ; Fri, 15 Mar 2002 18:08:34 -0800 (PST) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outboundx.mv.meer.net (8.11.6/8.11.6) with ESMTP id g2G28Ss47848 for ; Fri, 15 Mar 2002 18:08:28 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from neville-neil.com ([209.157.133.226]) by mail.meer.net (8.12.1/8.12.1/meer) with ESMTP id g2G28SGg009713 for ; Fri, 15 Mar 2002 18:08:33 -0800 (PST) Message-Id: <200203160208.g2G28SGg009713@mail.meer.net> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-net@freebsd.org Subject: Graphical view of netstat -rA Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 15 Mar 2002 18:08:28 -0800 From: "George V. Neville-Neil" 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 Folks, Does anyone know of a script that converts netstat -rA output (i.e. a dump of the routing table) into something suitable for processing by dot (which makes nice graphs)? Thanks, George -- George V. Neville-Neil gnn@neville-neil.com Neville-Neil Consulting www.neville-neil.com "We should not be ashamed to acknowledge truth from whatever source it comes to us, even if it is brought to us by former generations and foreign peoples. For him who seeks the truth there is nothing of higher value than truth itself." al-Kindi (c 801-66) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 18:54:45 2002 Delivered-To: freebsd-net@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by hub.freebsd.org (Postfix) with SMTP id 12E6237B416 for ; Fri, 15 Mar 2002 18:54:38 -0800 (PST) Received: (qmail 40848 invoked by uid 1001); 16 Mar 2002 12:54:36 +1000 X-Posted-By: GJB-Post 2.25 04-Mar-2002 X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Uptime: 65 days, 19:12 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-PGP-Public-Keys: http://www.gbch.net/keys.html Message-Id: Date: Sat, 16 Mar 2002 12:54:36 +1000 From: Greg Black To: Brian Somers Cc: freebsd-net@FreeBSD.ORG Subject: Re: ppp -nat fails with adsl, but ok with modem References: <200203130948.g2D9mgGd003975@hak.lan.Awfulhak.org> In-reply-to: <200203130948.g2D9mgGd003975@hak.lan.Awfulhak.org> of Wed, 13 Mar 2002 09:48:42 GMT 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 Brian Somers wrote: [lots of early history of this thread snipped] | > | > > | What version of FreeBSD are you using? The ppp included in early 4.x | > | > > | distributions doesn't have the TCP MSS fixup code that is required to | > | > > | make | > | > > | things work properly with a PPPoE connection, and cause the kinds of | > | > > | symptoms that you describe. | > | > > | > | > > The NAT box is running 4.2-RELEASE -- is that a problem? | > | > | > | > Yes. This problem was first fixed in 4.2-STABLE. There are two safe ways to | > | > fix this: | > | > - upgrade to a newer -RELEASE or -STABLE | > | > - run the tcpmssd program (which is in the ports collection - | > | > /usr/ports/net/tcpmssd) | > | | > | - Install the latest version of ppp from http://www.Awfulahk.org/ppp.html | > | > OK, I'll grab it and give it a try. | > | > Will it be OK to install that on a 4.1-RELEASE box? | | Should be. | | > Should I still use the following lines in my ppp.conf? | > | > set mru 1492 | > set mtu 1492 | | These shouldn't be required any more. OK, I have just built and installed ppp-020311 on my 4.2 box, but it seems not to make any difference -- nothing works, even from the ppp host, unless I also run tcpmssd. In case I've done something wrong, here are all the relevant lines from my ppp.conf (with auth data disguised): my-label: set device PPPoE:xl0 set authname xxxxxxx set authkey yyyyyyy set speed sync enable lqr set cd 5 set dial set login set redial 0 0 set ifaddr 203.143.238.93 0.0.0.0/0 add default HISADDR set timeout 0 default: set log Phase Chat IPCP CCP tun command Have I done something wrong here, or is there further info needed to answer that? Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Mar 15 20:35:50 2002 Delivered-To: freebsd-net@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by hub.freebsd.org (Postfix) with SMTP id 73ABE37B41A for ; Fri, 15 Mar 2002 20:35:46 -0800 (PST) Received: (qmail 47429 invoked by uid 1001); 16 Mar 2002 14:35:45 +1000 X-Posted-By: GJB-Post 2.25 04-Mar-2002 X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Uptime: 65 days, 20:53 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-PGP-Public-Keys: http://www.gbch.net/keys.html Message-Id: Date: Sat, 16 Mar 2002 14:35:45 +1000 From: Greg Black To: Brian Somers Cc: freebsd-net@FreeBSD.ORG Subject: Re: ppp -nat fails with adsl, but ok with modem References: <200203130948.g2D9mgGd003975@hak.lan.Awfulhak.org> In-reply-to: of Sat, 16 Mar 2002 12:54:36 +1000 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 Greg Black wrote: | Brian Somers wrote: | | [lots of early history of this thread snipped] | | | > | > > | What version of FreeBSD are you using? The ppp included in early 4.x | | > | > > | distributions doesn't have the TCP MSS fixup code that is required to | | > | > > | make | | > | > > | things work properly with a PPPoE connection, and cause the kinds of | | > | > > | symptoms that you describe. | | > | > > | | > | > > The NAT box is running 4.2-RELEASE -- is that a problem? | | > | > | | > | > Yes. This problem was first fixed in 4.2-STABLE. There are two safe ways to | | > | > fix this: | | > | > - upgrade to a newer -RELEASE or -STABLE | | > | > - run the tcpmssd program (which is in the ports collection - | | > | > /usr/ports/net/tcpmssd) | | > | | | > | - Install the latest version of ppp from http://www.Awfulahk.org/ppp.html | | > | | > OK, I'll grab it and give it a try. | | > | | > Will it be OK to install that on a 4.1-RELEASE box? | | | | Should be. | | | | > Should I still use the following lines in my ppp.conf? | | > | | > set mru 1492 | | > set mtu 1492 | | | | These shouldn't be required any more. | | OK, I have just built and installed ppp-020311 on my 4.2 box, | but it seems not to make any difference -- nothing works, even | from the ppp host, unless I also run tcpmssd. Sorry, just ignore me or shoot me or whatever takes your fancy. In a nice case of brain fade, I turned off tcpmssd, but forgot all about the ipfw divert rule that was sending everything to tcpmssd. With the divert rule gone, all is well and all the hosts on my LAN are talking successfully to the rest of the world. Thanks for the help, and apologies for the stupidity at the end. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Mar 16 2: 0:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from ns.mmk.ru (ns1.mmk.ru [195.54.3.19]) by hub.freebsd.org (Postfix) with ESMTP id 7DB7037B417 for ; Sat, 16 Mar 2002 02:00:04 -0800 (PST) Received: from antivirus.mmk.ru (sinful [161.8.100.3]) by ns.mmk.ru (8.11.6/8.11.6) with ESMTP id g2G9xls60312 for ; Sat, 16 Mar 2002 14:59:47 +0500 (YEKT) Received: from dimasic (localhost [127.0.0.1]) by antivirus.mmk.ru (8.11.6/8.11.6) with SMTP id g2G9w9o20683 for ; Sat, 16 Mar 2002 14:58:11 +0500 (ESK) Message-ID: <01fb01c1ccd1$19c0ee30$02020101@dimasic> From: "Dmitry A. Bondareff" To: References: <001501c1cb5b$48dba060$02000b0a@ksaveras> Subject: Re: Trouble to connect FreeBSD 4.5 to internet Date: Sat, 16 Mar 2002 14:58:16 +0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01F8_01C1CCFB.00802420" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 multi-part message in MIME format. ------=_NextPart_000_01F8_01C1CCFB.00802420 Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: quoted-printable Hmm. It's too strange configuration.=20 The ISP must to do translation to 195.14.167.39 on him box. May be he think that you must do it. Try to using NAT on your box. And netmask wrong too ! Regards, aka Dimasic. ----- Original Message -----=20 From: Xawiers=20 To: freebsd-net@FreeBSD.ORG=20 Sent: Thursday, March 14, 2002 6:22 PM Subject: Trouble to connect FreeBSD 4.5 to internet Hello, I have trouble to connect FreeBSD to internet. Our ISP gave me these datas about network Gateway: 192.168.100.254 My external IP: 195.14.167.39 Netmask: 255.255.255.254 what i did: First I added alias, because I cant see my gateway - no ping response = (not in the same subnet) ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 alias And I add default gateway: route add default 192.168.100.254 now my GW responses for ping, but internet - no=20 How I coud resolve this problem. P.S. sorry for my english Best regards Xawiers ------=_NextPart_000_01F8_01C1CCFB.00802420 Content-Type: text/html; charset="windows-1257" Content-Transfer-Encoding: quoted-printable
Hmm.
It's too strange configuration. =
The ISP must to do translation to = 195.14.167.39 on him box.
May be he think that you must do=20 it.
Try to using NAT on your = box.
 
And netmask wrong too !
 
Regards,
aka Dimasic.
 
 
----- Original Message -----
From:=20 Xawiers =
To: freebsd-net@FreeBSD.ORG
Sent: Thursday, March 14, 2002 = 6:22=20 PM
Subject: Trouble to connect = FreeBSD 4.5=20 to internet

Hello,
I have trouble to connect FreeBSD to internet.
Our ISP gave me these datas about network
Gateway: 192.168.100.254
My external IP: 195.14.167.39
Netmask: 255.255.255.254
 
what i did:
First I added alias, because I cant see my gateway - no ping = response=20 (not in the same subnet)
 
ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 = alias
 
And I add default gateway:
 
route add default 192.168.100.254
 
now my GW responses for ping, but internet - no
How I coud resolve this problem.
 
P.S. sorry for my english
Best regards
Xawiers
------=_NextPart_000_01F8_01C1CCFB.00802420-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Mar 16 2:34:54 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.broadpark.no (217-13-4-9.dd.nextgentel.com [217.13.4.9]) by hub.freebsd.org (Postfix) with ESMTP id 502F737B402; Sat, 16 Mar 2002 02:34:52 -0800 (PST) Received: from ninja.amphex.com (213-187-172-124.dd.nextgentel.com [213.187.172.124]) by mail.broadpark.no (Postfix) with SMTP id 1A21C7D4A; Sat, 16 Mar 2002 11:34:51 +0100 (MET) Date: Sat, 16 Mar 2002 11:34:50 +0100 From: J.S. To: net@freebsd.org Cc: alfred@freebsd.org Subject: Unsupported TRENDnet ethernet card Message-Id: <20020316113450.7017a1f8.johann@broadpark.no> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) 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 recently bought this TRENDnet TE100-PCIWN ethernet card which integrity I now strongly doubt: 1. Device unknown at bootup 2. No reference in LINT 3. Minimal documentation I was hoping you guys would be so kind and make it available to, most likely, a lot of people. Chip 1: GTS FC-515LS Chip 2: RMC RTL8139C pci0: (vendor=0x10ec, dev=0x8139) at 14.0 irq 10 Thanks. Regards, Johann Sharizan (Alfred, you there?) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Mar 16 3:12: 3 2002 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 50B0637B402 for ; Sat, 16 Mar 2002 03:12:00 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 3241DAE2FD; Sat, 16 Mar 2002 03:12:00 -0800 (PST) Date: Sat, 16 Mar 2002 03:12:00 -0800 From: Alfred Perlstein To: "J. S." Cc: net@freebsd.org Subject: Re: Unsupported TRENDnet ethernet card Message-ID: <20020316111200.GR4857@elvis.mu.org> References: <20020316113450.7017a1f8.johann@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020316113450.7017a1f8.johann@broadpark.no> User-Agent: Mutt/1.3.27i 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 * J. S. [020316 02:34] wrote: > Hi. > > I recently bought this TRENDnet TE100-PCIWN ethernet card which integrity > I now strongly doubt: > > 1. Device unknown at bootup > 2. No reference in LINT > 3. Minimal documentation > > I was hoping you guys would be so kind and make it available to, most > likely, a lot of people. > > Chip 1: GTS FC-515LS > Chip 2: RMC RTL8139C > > pci0: (vendor=0x10ec, dev=0x8139) at 14.0 irq 10 > > (Alfred, you there?) Er, yes, what version of FreeBSD are you running? It looks like the latest 4.5 version has this chipset... You aren't running an older release or a custom kernel are you? It should work with the 'rl' driver if you've got 4.5. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Mar 16 5:22: 1 2002 Delivered-To: freebsd-net@freebsd.org Received: from lex.balt.net (lex.balt.net [195.14.162.1]) by hub.freebsd.org (Postfix) with SMTP id D530037B404 for ; Sat, 16 Mar 2002 05:21:49 -0800 (PST) Received: (qmail 4698 invoked from network); 16 Mar 2002 13:21:43 -0000 Received: from observer.lt (195.14.167.39) by lex.balt.net with SMTP; 16 Mar 2002 13:21:43 -0000 Received: from ksaveras ([10.11.0.2]) by observer.lt ( IA Mail Server Version: 3.2.4. Build: 1100 ) ) ; Sat, 16 Mar 2002 15:21:47 +0100 Message-ID: <001101c1ccf6$215abb60$02000b0a@ksaveras> From: "Xawiers" To: "Dmitry A. Bondareff" , References: <001501c1cb5b$48dba060$02000b0a@ksaveras> <01fb01c1ccd1$19c0ee30$02020101@dimasic> Subject: Re: Trouble to connect FreeBSD 4.5 to internet Date: Sat, 16 Mar 2002 15:23:23 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000E_01C1CCFE.830532C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 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 This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C1CCFE.830532C0 Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: quoted-printable Hello again so how shoult I config that with natd ? Could someone write any examples? -------------------- Xawiers ----- Original Message -----=20 From: Dmitry A. Bondareff=20 To: freebsd-net@FreeBSD.ORG=20 Sent: Saturday, March 16, 2002 10:58 AM Subject: Re: Trouble to connect FreeBSD 4.5 to internet Hmm. It's too strange configuration.=20 The ISP must to do translation to 195.14.167.39 on him box. May be he think that you must do it. Try to using NAT on your box. And netmask wrong too ! Regards, aka Dimasic. ----- Original Message -----=20 From: Xawiers=20 To: freebsd-net@FreeBSD.ORG=20 Sent: Thursday, March 14, 2002 6:22 PM Subject: Trouble to connect FreeBSD 4.5 to internet Hello, I have trouble to connect FreeBSD to internet. Our ISP gave me these datas about network Gateway: 192.168.100.254 My external IP: 195.14.167.39 Netmask: 255.255.255.254 what i did: First I added alias, because I cant see my gateway - no ping = response (not in the same subnet) ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 alias And I add default gateway: route add default 192.168.100.254 now my GW responses for ping, but internet - no=20 How I coud resolve this problem. P.S. sorry for my english Best regards Xawiers ------=_NextPart_000_000E_01C1CCFE.830532C0 Content-Type: text/html; charset="windows-1257" Content-Transfer-Encoding: quoted-printable
Hello again
so how shoult I config that with natd=20 ?
Could someone write any = examples?
 
--------------------
Xawiers
 
----- Original Message -----
From:=20 Dmitry A. = Bondareff=20
Sent: Saturday, March 16, 2002 = 10:58=20 AM
Subject: Re: Trouble to connect = FreeBSD=20 4.5 to internet

Hmm.
It's too strange configuration. =
The ISP must to do translation = to=20 195.14.167.39 on him box.
May be he think that you must = do=20 it.
Try to using NAT on your = box.
 
And netmask wrong too !
 
Regards,
aka Dimasic.
 
 
----- Original Message -----
From:=20 Xawiers
Sent: Thursday, March 14, = 2002 6:22=20 PM
Subject: Trouble to connect = FreeBSD 4.5=20 to internet

Hello,
I have trouble to connect FreeBSD to internet.
Our ISP gave me these datas about network
Gateway: 192.168.100.254
My external IP: 195.14.167.39
Netmask: 255.255.255.254
 
what i did:
First I added alias, because I cant see my gateway - no ping = response=20 (not in the same subnet)
 
ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 = alias
 
And I add default gateway:
 
route add default 192.168.100.254
 
now my GW responses for ping, but internet - no
How I coud resolve this problem.
 
P.S. sorry for my english
Best regards
Xawiers
------=_NextPart_000_000E_01C1CCFE.830532C0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Mar 16 18:11:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from medusa.oit.pdx.edu (medusa.oit.pdx.edu [131.252.120.41]) by hub.freebsd.org (Postfix) with ESMTP id 248B437B405 for ; Sat, 16 Mar 2002 18:11:18 -0800 (PST) Received: from gere.odin.pdx.edu (gere.odin.pdx.edu [131.252.120.42]) by medusa.oit.pdx.edu (8.11.6/8.11.6) with ESMTP id g2H2BG818916; Sat, 16 Mar 2002 18:11:16 -0800 (PST) Received: from localhost (singh@localhost) by gere.odin.pdx.edu (8.11.6/8.11.6) with ESMTP id g2H2BF805885; Sat, 16 Mar 2002 18:11:15 -0800 (PST) X-Authentication-Warning: gere.odin.pdx.edu: singh owned process doing -bs Date: Sat, 16 Mar 2002 18:11:15 -0800 (PST) From: Harkirat Singh X-X-Sender: To: Julian Elischer Cc: Luigi Rizzo , Mike Silbersack , Brian White , Subject: Re: SACK (and older TCP stack) availability? 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 Hello, I am sorry due to some reasons I have not been able to check this mail account in the past. I faced problem in validation of Implementation due to lack of efficient tools, I used wireless bed so by default tcpdump (at wi0 interface) was in promiscuous-mode and one packet was dumped appx three times. I used Ostermann's tcptrace and tcpdump and then did a packet by pkt trace, SACK was behaving as desirable. However, I wish if there would have been more efficient tool. I also verified implementation in a wireless testbed of 3 hop network and using Dummynet for creating reorder, loss, delay etc..(many thanks to Rizzo for such a magnificent tool!). SACK showed higher thruput than Reno and Newreno under various test conditions. I was doing an Energy performance of Reno, NewReno and SACK part of my thesis and I used kernel.GENERIC (FreeBSD4.3) for reno and NewReno. Please let me know if I can be of any of help. Regards, Harkirat On Thu, 21 Feb 2002, Julian Elischer wrote: > tehn we need to tell teh author.. > he seems to want then to be used . I'm sure he'd be reponsive to being > told about the problems.. > > > On Thu, 21 Feb 2002, Luigi Rizzo wrote: > > > On Thu, Feb 21, 2002 at 01:54:20AM +0000, Mike Silbersack wrote: > > > > > > > I tracked a thread from Aug 2001 in which Harkirat Singh announced his > > > > SACK implementation. But, this thread seems to have ended prematurely and > > > > grep'ing for SACK in current does not turn up anything interesting. What > > > > is it's status? Was the 4.3 SACK diff stable? > > > > > > I never got time to test it, nor did any other committer I'm aware of. > > > If someone were to do some good testing of the patch and post the results, > > > that would be highly helpful in getting it on the road to being committed. > > > Unadvocated patches ususally don't get committed. > > > > I actually looked at the patches, and by visual inspection, > > they broke the flow for standard TCP connections when SACK > > was disabled. This was also verified with TBIT. > > So even if the SACK implementation was correct > > (which I haven't checked in detail) they are a no-go > > unless someone puts significant work on them. > > > > cheers > > luigi > > ----------------------------------+----------------------------------------- > > Luigi RIZZO, luigi@iet.unipi.it . ICSI (on leave from Univ. di Pisa) > > http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 > > Phone: (510) 666 2927 > > ----------------------------------+----------------------------------------- > > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Mar 16 21:47:42 2002 Delivered-To: freebsd-net@freebsd.org Received: from mumba.junik.lv (mail.junik.lv [195.216.160.134]) by hub.freebsd.org (Postfix) with ESMTP id 9D1EB37B404 for ; Sat, 16 Mar 2002 21:47:39 -0800 (PST) Received: (from root@localhost) by mumba.junik.lv (8.8.8/8.8.8) id HAA19556 for freebsd-net@freebsd.org; Sun, 17 Mar 2002 07:47:34 +0200 Received: from Adam3 ([213.182.206.215]) by mumba.junik.lv (8.8.8/8.8.8) with SMTP id HAA19506 for ; Sun, 17 Mar 2002 07:47:29 +0200 Message-ID: <000901c1cd77$ae3b2ac0$d7ceb6d5@junik.lv> From: "Adam@junik.lv" To: Subject: Date: Sun, 17 Mar 2002 07:50:44 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 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, I would appreciate it if you could suggest some soft for traffic monitoring on a Freebsd 4.5 default router. I need to monitor the incoming and outgoing traffic of all the subnets for which this machine is the defaultrouter. Many thanks in anticipation, Adam ______________________________________ Scanned and protected by Inflex http://pldaniels.com/inflex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message