From owner-freebsd-net@FreeBSD.ORG Sun Dec 28 14:15:12 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8560316A4D0 for ; Sun, 28 Dec 2003 14:15:12 -0800 (PST) Received: from web21509.mail.yahoo.com (web21509.mail.yahoo.com [66.163.169.58]) by mx1.FreeBSD.org (Postfix) with SMTP id E057F43D45 for ; Sun, 28 Dec 2003 14:15:11 -0800 (PST) (envelope-from afshinbsdbox@yahoo.com) Message-ID: <20031228221511.91095.qmail@web21509.mail.yahoo.com> Received: from [213.185.114.26] by web21509.mail.yahoo.com via HTTP; Sun, 28 Dec 2003 14:15:11 PST Date: Sun, 28 Dec 2003 14:15:11 -0800 (PST) From: afshin To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2003 22:15:12 -0000 Dear Friends,   Is any source routing facility available in FreeBSD ? or Is it possiblr with FreeBSD ? The Linux guru's are familier with "iproute" utility in Linux Which we can define other route tables and each one can have its own gateway, then we add a rule that packet with source address should be looked up in a certain table.   I hope I could explaned clearly. I want to know If something like this would be available for FreeBSD ? or At Least Can be Made by means of FreeBSD. Cheers AFShin   Network Administrator   __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ From owner-freebsd-net@FreeBSD.ORG Mon Dec 29 08:42:03 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 128D216A4CE for ; Mon, 29 Dec 2003 08:42:03 -0800 (PST) Received: from gateway.yorkelec.com (s142-179-221-95.ab.hsia.telus.net [142.179.221.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B3E143D1F for ; Mon, 29 Dec 2003 08:41:59 -0800 (PST) (envelope-from timp@crossthread.com) Received: from crossthread.com (pkqyna@yorkpc101.yorkelec.com [192.168.15.101] (may be forged)) by gateway.yorkelec.com (8.12.9/8.12.9) with ESMTP id hBTGdP0Y053172 for ; Mon, 29 Dec 2003 09:39:26 -0700 (MST) Message-ID: <3FF05943.8040205@crossthread.com> Date: Mon, 29 Dec 2003 09:41:39 -0700 From: Tim Pushor User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) Subject: 3rd nic's a charm? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 16:42:03 -0000 Hi all, happy holidays! I have an old box that I am using as my home firewall/NAT box for my residential cable ISP. It was running at or about 4.0. I was using 2 xl interfaces (3com 3c509b's) and was very stable. I have recently added another network at home, and wanted to add another interface to the box, so I added another 509b and the box became unstable. It would work, then hang, then work etc. The thing just rebooted itself a few minutes ago. I installed 5.1-RELEASE on it for a couple of reasons, but was curious to see if I tickled a bug in the stack or driver by adding the 3rd nic. The box doesn't exhibit the exact same problems now, but still stops responding to network traffic once in a while. (i.e its still unstable, but the symptoms are different). I am pretty sure the card I put in is OK - it came from a working system. The box is of an older vintage - Its a P133 with an Intel VX chipset on a gigabyte motherboard. After a while last night, dmesg reported weird things, like just one garbled line. The relevant bits from a working dmesg: xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x6100-0x617f mem 0xe4002000-0xe400207f irq 11 at device 8.0 on pci0 xl0: Ethernet address: 00:10:5a:12:89:1e miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl1: <3Com 3c905B-TX Fast Etherlink XL> port 0x6200-0x627f mem 0xe4000000-0xe400007f irq 10 at device 9.0 on pci0 xl1: Ethernet address: 00:50:04:67:7e:63 miibus1: on xl1 xlphy1: <3Com internal media interface> on miibus1 xlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl2: <3Com 3c905B-TX Fast Etherlink XL> port 0x6300-0x637f mem 0xe4001000-0xe400107f irq 9 at device 10.0 on pci0 xl2: Ethernet address: 00:10:5a:07:21:43 miibus2: on xl2 xlphy2: <3Com internal media interface> on miibus2 xlphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Any ideas? Thanks! Tim From owner-freebsd-net@FreeBSD.ORG Mon Dec 29 09:24:22 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3BFDB16A4CF; Mon, 29 Dec 2003 09:24:22 -0800 (PST) Received: from green.bikeshed.org (green@localhost [127.0.0.1]) by green.bikeshed.org (8.12.10/8.12.9) with ESMTP id hBTHOLnU006778; Mon, 29 Dec 2003 12:24:21 -0500 (EST) (envelope-from green@green.bikeshed.org) Received: from localhost (green@localhost)hBTHOJhr006775; Mon, 29 Dec 2003 12:24:21 -0500 (EST) Message-Id: <200312291724.hBTHOJhr006775@green.bikeshed.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: net@FreeBSD.org In-Reply-To: Message from Brian Fundakowski Feldman of "Wed, 26 Nov 2003 13:46:16 EST." From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 29 Dec 2003 12:24:19 -0500 Sender: green@green.bikeshed.org cc: current@FreeBSD.org Subject: Re: IPv6 locking crash (recursion) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 17:24:22 -0000 Brian Fundakowski Feldman wrote: > Has anyone else tried out the most basic IPv6 test: ndp -I and > then ping6 fe80:: extension>? I was > greeted by recursion on a non-recursive lock. After some sleuthing, > I tried to determine what conditions could be tested for that would > indicate "this must not call the nd6_is_addr_neighbor() call because > we're from a normal RTM_RESOLVE initializing a new route", and this > is the most correct thing I can come up with. It actually would do > something entirely different if recursion were allowed. Comments? > > Index: nd6.c > =================================================================== > RCS file: /u/FreeBSD-cvs/src/sys/netinet6/nd6.c,v > retrieving revision 1.37 > diff -u -r1.37 nd6.c > --- nd6.c 8 Nov 2003 23:36:32 -0000 1.37 > +++ nd6.c 26 Nov 2003 13:45:45 -0000 > @@ -1095,7 +1095,8 @@ > > if (req == RTM_RESOLVE && > (nd6_need_cache(ifp) == 0 || /* stf case */ > - !nd6_is_addr_neighbor((struct sockaddr_in6 *)rt_key(rt), ifp))) { > + ((!(rt->rt_flags & RTF_WASCLONED) || rt->rt_flags & RTF_LLINFO) && > + !nd6_is_addr_neighbor((struct sockaddr_in6 *)rt_key(rt), ifp)))) { > /* > * FreeBSD and BSD/OS often make a cloned host route based > * on a less-specific route (e.g. the default route). Does anyone know anything about this yet?? I get the crash using completely legitimate methods, trying to receive packets that are directed explicitly to ff02::1%wi0 via interface wi0, unless I enable this workaround. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-net@FreeBSD.ORG Mon Dec 29 10:33:56 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 884B216A4D0 for ; Mon, 29 Dec 2003 10:33:56 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B6FD643D3F for ; Mon, 29 Dec 2003 10:33:54 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 43669 invoked from network); 29 Dec 2003 18:33:53 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 29 Dec 2003 18:33:53 -0000 X-pair-Authenticated: 209.68.2.70 Date: Mon, 29 Dec 2003 12:33:52 -0600 (CST) From: Mike Silbersack To: Tim Pushor In-Reply-To: <3FF05943.8040205@crossthread.com> Message-ID: <20031229122947.N62022@odysseus.silby.com> References: <3FF05943.8040205@crossthread.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: net@freebsd.org Subject: Re: 3rd nic's a charm? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 18:33:56 -0000 On Mon, 29 Dec 2003, Tim Pushor wrote: > I have recently added another network at home, and wanted to add another > interface to the box, so I added another 509b and the box became > unstable. It would work, then hang, then work etc. The thing just > rebooted itself a few minutes ago. Is the new NIC sharing an irq with some other device? Also, when you say that it hangs, is it hanging or crashing? If it's actually hanging, then it may be useful to add DDB to your kernel and hit ctrl-alt-esc to see if you can successfully break into the kernel debugger during one of these hangs. Mike "Silby" Silbersack From owner-freebsd-net@FreeBSD.ORG Mon Dec 29 10:55:11 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F53616A4CE for ; Mon, 29 Dec 2003 10:55:11 -0800 (PST) Received: from gateway.yorkelec.com (s142-179-221-95.ab.hsia.telus.net [142.179.221.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id D461243D2F for ; Mon, 29 Dec 2003 10:55:07 -0800 (PST) (envelope-from timp@crossthread.com) Received: from crossthread.com (fbsdui@yorkpc101.yorkelec.com [192.168.15.101] (may be forged)) by gateway.yorkelec.com (8.12.9/8.12.9) with ESMTP id hBTIqU0Y053376; Mon, 29 Dec 2003 11:52:30 -0700 (MST) Message-ID: <3FF07873.60204@crossthread.com> Date: Mon, 29 Dec 2003 11:54:43 -0700 From: Tim Pushor User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Silbersack References: <3FF05943.8040205@crossthread.com> <20031229122947.N62022@odysseus.silby.com> In-Reply-To: <20031229122947.N62022@odysseus.silby.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) cc: net@freebsd.org Subject: Re: 3rd nic's a charm? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 18:55:11 -0000 Mike, Sorry, I should have added that to my previous email. I verified that the NIC's are all using seperate IRQ's and are not sharing them with any other device. I will try the kernel debugger, although I have never ventured into the kernel yet. As this is my home system, it may be a good opportunity to do so! I'll fire it up and see if I can wade through it.. Thanks, Tim Mike Silbersack wrote: >On Mon, 29 Dec 2003, Tim Pushor wrote: > > > >>I have recently added another network at home, and wanted to add another >>interface to the box, so I added another 509b and the box became >>unstable. It would work, then hang, then work etc. The thing just >>rebooted itself a few minutes ago. >> >> > >Is the new NIC sharing an irq with some other device? > >Also, when you say that it hangs, is it hanging or crashing? If it's >actually hanging, then it may be useful to add DDB to your kernel and hit >ctrl-alt-esc to see if you can successfully break into the kernel >debugger during one of these hangs. > >Mike "Silby" Silbersack > > From owner-freebsd-net@FreeBSD.ORG Mon Dec 29 11:03:02 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53F3416A4CE for ; Mon, 29 Dec 2003 11:03:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 086CB43D75 for ; Mon, 29 Dec 2003 11:02:29 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.10/8.12.10) with ESMTP id hBTJ2SFR041124 for ; Mon, 29 Dec 2003 11:02:28 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBTJ2Sgk041118 for freebsd-net@freebsd.org; Mon, 29 Dec 2003 11:02:28 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 29 Dec 2003 11:02:28 -0800 (PST) Message-Id: <200312291902.hBTJ2Sgk041118@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 19:03:02 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/03/09] conf/35726 net Won't let me use ifconfig on the interfac 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/11/14] bin/22846 net Routed does not reflect preference of Int 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/11] kern/54383 net NFS root configurations without dynamic p 1 problem total. From owner-freebsd-net@FreeBSD.ORG Mon Dec 29 17:25:30 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AE3916A4CE for ; Mon, 29 Dec 2003 17:25:30 -0800 (PST) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5277243D49 for ; Mon, 29 Dec 2003 17:25:29 -0800 (PST) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 261B1654FA; Tue, 30 Dec 2003 01:25:28 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 91691-02; Tue, 30 Dec 2003 01:25:27 +0000 (GMT) Received: from saboteur.dek.spc.org (82-147-18-36.dsl.uk.rapidplay.com [82.147.18.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 502E06548A; Tue, 30 Dec 2003 01:25:27 +0000 (GMT) Received: by saboteur.dek.spc.org (Postfix, from userid 1001) id 24BFF35; Tue, 30 Dec 2003 01:25:26 +0000 (GMT) Date: Tue, 30 Dec 2003 01:25:25 +0000 From: Bruce M Simpson To: afshin Message-ID: <20031230012525.GB712@saboteur.dek.spc.org> Mail-Followup-To: afshin , freebsd-net@freebsd.org References: <20031228221511.91095.qmail@web21509.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031228221511.91095.qmail@web21509.mail.yahoo.com> cc: freebsd-net@freebsd.org Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 01:25:30 -0000 On Sun, Dec 28, 2003 at 02:15:11PM -0800, afshin wrote: > Is any source routing facility available in FreeBSD ? I think you mean policy routing. It is on the wishlist for 5.3. BMS From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 00:13:15 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFBD616A4CE for ; Tue, 30 Dec 2003 00:13:15 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24C5643D45 for ; Tue, 30 Dec 2003 00:13:13 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id hBU8DBl7037348; Tue, 30 Dec 2003 10:13:11 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id hBU8D9bl037343; Tue, 30 Dec 2003 10:13:09 +0200 (EET) (envelope-from ru) Date: Tue, 30 Dec 2003 10:13:08 +0200 From: Ruslan Ermilov To: Bruce M Simpson Message-ID: <20031230081308.GA36953@FreeBSD.org.ua> References: <20031228221511.91095.qmail@web21509.mail.yahoo.com> <20031230012525.GB712@saboteur.dek.spc.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20031230012525.GB712@saboteur.dek.spc.org> User-Agent: Mutt/1.5.5.1i cc: net@FreeBSD.org Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 08:13:15 -0000 --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2003 at 01:25:25AM +0000, Bruce M Simpson wrote: > On Sun, Dec 28, 2003 at 02:15:11PM -0800, afshin wrote: > > Is any source routing facility available in FreeBSD ? >=20 > I think you mean policy routing. It is on the wishlist for 5.3. >=20 What is missing in ipfw(8) and its ``fwd'' option from being a successful implementation of policy routing? - by using the match probability feature, you can implement the equal-access routing; - by checking the source IP adress, you can implement the source-sensitive routing; - by checking the IP TOS field, you can implement the quality-of-service routing; - etc. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE/8TOUUkv4P6juNwoRAs8JAJ9q9NeGBsdF2LR/fB3TRb3HR+tl/QCdEVDv qGpC1yBTPv2+OV6zfmAOYwk= =CZzW -----END PGP SIGNATURE----- --ibTvN161/egqYuK8-- From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 00:15:48 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE41116A4CE for ; Tue, 30 Dec 2003 00:15:48 -0800 (PST) Received: from mail.framfab.com (mail.framfab.com [217.73.2.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4C1643D55 for ; Tue, 30 Dec 2003 00:15:46 -0800 (PST) (envelope-from fredrick.nilsson@framfab.se) Received: from sestoex01.framfab.se (sestoex01.framfab.se [157.125.1.96]) by mail.framfab.com (Postfix) with ESMTP id A915A1F3C2 for ; Tue, 30 Dec 2003 09:15:45 +0100 (CET) Received: by sestoex01.framfab.se with Internet Mail Service (5.5.2656.59) id ; Tue, 30 Dec 2003 09:15:45 +0100 Message-ID: From: Fredrick Nilsson To: "'freebsd-net@freebsd.org'" Date: Tue, 30 Dec 2003 09:15:44 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Subject: bridge - bridge box disappears from the network (even though it h as an ip assigned to one of the interfaces) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 08:15:49 -0000 Hi! First of all, I don't know if this is the correct mailing list to use for this matter, but if it is, please cc me in the reply, since I'm not subscribing to this list. (this was originally posted by me on freebsd-questions@) Here's the problem: I'm using bridge, but I'm not able to contact the bridge box over the network. This only applies to the boxes that are using the bridge. If a box outside the "bridged" enviroment, tries to contact the bridge box, there's no problem what so ever. The interface that is assigned an ip, is the external interface (the one connected to my vdsl-modem), and it gets it's ip from a DHCP server. This is my relevant (at least, I hope so ;) configurations: Kernel-config options BRIDGE options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_DEFAULT_TO_ACCEPT /etc/sysctl.conf net.link.ether.bridge_cfg=fxp0,rl0 #net.link.ether.bridge_ipfw=1 (yes, for now i commented ipfw filtering, just to make sure that some misconfiguration, was the cause of my problem) net.link.ether.bridge=1 /etc/rc.conf ifconfig_fxp0="DHCP" ... firewall_enable="YES" firewall_type="open" firewall_quiet="YES" firewall_logging="YES" Br .fredrick From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 01:58:56 2003 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ADEB16A4CE; Tue, 30 Dec 2003 01:58:56 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B72FD43D1F; Tue, 30 Dec 2003 01:58:55 -0800 (PST) (envelope-from andre@FreeBSD.org) Received: from freefall.freebsd.org (andre@localhost [127.0.0.1]) hBU9wtFR021392; Tue, 30 Dec 2003 01:58:55 -0800 (PST) (envelope-from andre@freefall.freebsd.org) Received: (from andre@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBU9wtex021388; Tue, 30 Dec 2003 01:58:55 -0800 (PST) (envelope-from andre) Date: Tue, 30 Dec 2003 01:58:55 -0800 (PST) From: Andre Oppermann Message-Id: <200312300958.hBU9wtex021388@freefall.freebsd.org> To: andre@FreeBSD.org, freebsd-net@FreeBSD.org, andre@FreeBSD.org Subject: Re: conf/35726: Won't let me use ifconfig on the interfaces after upgrade to latest OS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 09:58:56 -0000 Synopsis: Won't let me use ifconfig on the interfaces after upgrade to latest OS Responsible-Changed-From-To: freebsd-net->andre Responsible-Changed-By: andre Responsible-Changed-When: Tue Dec 30 01:58:27 PST 2003 Responsible-Changed-Why: Take over. http://www.freebsd.org/cgi/query-pr.cgi?pr=35726 From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 01:59:36 2003 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5D8A16A4CE; Tue, 30 Dec 2003 01:59:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F32AC43D41; Tue, 30 Dec 2003 01:59:35 -0800 (PST) (envelope-from andre@FreeBSD.org) Received: from freefall.freebsd.org (andre@localhost [127.0.0.1]) hBU9xZFR021440; Tue, 30 Dec 2003 01:59:35 -0800 (PST) (envelope-from andre@freefall.freebsd.org) Received: (from andre@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBU9xZ22021436; Tue, 30 Dec 2003 01:59:35 -0800 (PST) (envelope-from andre) Date: Tue, 30 Dec 2003 01:59:35 -0800 (PST) From: Andre Oppermann Message-Id: <200312300959.hBU9xZ22021436@freefall.freebsd.org> To: andre@FreeBSD.org, freebsd-net@FreeBSD.org, andre@FreeBSD.org Subject: Re: bin/22846: Routed does not reflect preference of Internet Router Discovery Protocol. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 09:59:36 -0000 Synopsis: Routed does not reflect preference of Internet Router Discovery Protocol. Responsible-Changed-From-To: freebsd-net->andre Responsible-Changed-By: andre Responsible-Changed-When: Tue Dec 30 01:59:14 PST 2003 Responsible-Changed-Why: Take over. http://www.freebsd.org/cgi/query-pr.cgi?pr=22846 From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 02:17:16 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5992A16A4CE for ; Tue, 30 Dec 2003 02:17:16 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24CEA43D2D for ; Tue, 30 Dec 2003 02:17:15 -0800 (PST) (envelope-from andre@freebsd.org) Received: (qmail 30394 invoked from network); 30 Dec 2003 10:17:13 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 30 Dec 2003 10:17:13 -0000 Message-ID: <3FF150AD.49D3C56B@freebsd.org> Date: Tue, 30 Dec 2003 11:17:17 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Bruce M Simpson References: <20031228221511.91095.qmail@web21509.mail.yahoo.com> <20031230012525.GB712@saboteur.dek.spc.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: afshin Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 10:17:16 -0000 Bruce M Simpson wrote: > > On Sun, Dec 28, 2003 at 02:15:11PM -0800, afshin wrote: > > Is any source routing facility available in FreeBSD ? > > I think you mean policy routing. It is on the wishlist for 5.3. I working on making these wishes come true. However I can't guarantee that this one will make it into 5.3 already. -- Andre From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 02:22:44 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9256816A4CE for ; Tue, 30 Dec 2003 02:22:44 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0937443D49 for ; Tue, 30 Dec 2003 02:22:41 -0800 (PST) (envelope-from andre@freebsd.org) Received: (qmail 31098 invoked from network); 30 Dec 2003 10:22:40 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 30 Dec 2003 10:22:40 -0000 Message-ID: <3FF151F3.A5D9EC19@freebsd.org> Date: Tue, 30 Dec 2003 11:22:43 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Ruslan Ermilov References: <20031228221511.91095.qmail@web21509.mail.yahoo.com> <20031230081308.GA36953@FreeBSD.org.ua> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: net@FreeBSD.org Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 10:22:44 -0000 Ruslan Ermilov wrote: > > On Tue, Dec 30, 2003 at 01:25:25AM +0000, Bruce M Simpson wrote: > > On Sun, Dec 28, 2003 at 02:15:11PM -0800, afshin wrote: > > > Is any source routing facility available in FreeBSD ? > > > > I think you mean policy routing. It is on the wishlist for 5.3. > > > What is missing in ipfw(8) and its ``fwd'' option from being a > successful implementation of policy routing? In the technical sense it is. For larger systems you want automatic configuration from a routing daemon. ipfw also has its limits when it comes to a large number of prefixes which are changing all the time. -- Andre > - by using the match probability feature, you can implement > the equal-access routing; > > - by checking the source IP adress, you can implement > the source-sensitive routing; > > - by checking the IP TOS field, you can implement the > quality-of-service routing; > > - etc. > > Cheers, > -- > Ruslan Ermilov > FreeBSD committer > ru@FreeBSD.org > > -------------------------------------------------------------------------------- > Part 1.2Type: application/pgp-signature From owner-freebsd-net@FreeBSD.ORG Mon Dec 29 21:41:29 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6D5216A4CE; Mon, 29 Dec 2003 21:41:28 -0800 (PST) Received: from sumykhimprom.org.ua (sumykhimprom.org.ua [193.178.229.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FB3143D2F; Mon, 29 Dec 2003 21:41:27 -0800 (PST) (envelope-from vanyushenkov@nettmail.de) Received: from mobile (mobile.sumykhimprom.org.ua [10.15.7.111]) by sumykhimprom.org.ua (Postfix) with SMTP id 8C30044B31; Tue, 30 Dec 2003 07:42:14 +0200 (EET) From: =?koi8-r?Q?=22?=al vanyushenkov=?koi8-r?Q?=22=20?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------7ER51173KTYNMG" Message-Id: <20031230054214.8C30044B31@sumykhimprom.org.ua> Date: Tue, 30 Dec 2003 07:42:14 +0200 (EET) To: undisclosed-recipients: ; X-Mailman-Approved-At: Tue, 30 Dec 2003 05:08:09 -0800 Subject: gray network and ipfw2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 05:41:29 -0000 ------------7ER51173KTYNMG Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi all i have freebsd 4.8 installed and i use ipfw2 with the rules #!/bin/sh fwcmd=/sbin/ipfw ${fwcmd} -f flush #!/bin/sh ipfw='/sbin/ipfw' $ipfw -f flush $ipfw add divert natd all from any to any via ppp0 $ipfw add allow log all from any to any my local ethernet card has 192.168.133.7 ip address and my ppp0 interface has 217.15.x.x ip address. when i tried to connect to 195.54.192.44:21 from my local box i got the lines Accept TCP 172.16.202.106:4802 195.54.192.44:21 out via ppp0 Accept TCP 195.54.192.44:21 172.16.202.106:4802 in via ppp0 and so on. as i know 172.16.0.0 are gray addresses and i haven't got any 172.16.x.x networks in my environment. Could anybody tell me what 172.16.202.106:4802 does in my log file. Thanks vanyushenkov al _______________________________________________ freebsd-ipfw@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" ------------7ER51173KTYNMG-- From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 06:34:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F01F16A4CE for ; Tue, 30 Dec 2003 06:34:43 -0800 (PST) Received: from mail.icomag.de (ns.icomag.de [195.227.115.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE85643D45 for ; Tue, 30 Dec 2003 06:34:41 -0800 (PST) (envelope-from bgd@icomag.de) Received: from localhost (localhost [127.0.0.1]) by mail.icomag.de (Postfix) with ESMTP id D3E1122E32 for ; Tue, 30 Dec 2003 15:34:39 +0100 (CET) Received: by mail.icomag.de (Postfix, from userid 1019) id 8B1FA22E36; Tue, 30 Dec 2003 15:34:36 +0100 (CET) Date: Tue, 30 Dec 2003 15:34:36 +0100 From: Bogdan TARU To: freebsd-net@freebsd.org Message-ID: <20031230143436.GB27308@icomag.de> Mail-Followup-To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by AMaViS Subject: strange ICMP problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 14:34:43 -0000 Hi, I've got some strange ICMP problems on my FreeBSD router/firewall. I'm trying to ping a host (dst) from this router, and I don't get any answer (100% packet loss). A tcpdump shows me (src=freebsd router/firewall, dst=destination host of the ping): src > dst: icmp: echo request (ttl 64, id 15739, len 84) dst > src: icmp: echo reply (ttl 58, id 33870, len 84) src > dst: icmp: time exceeded in-transit for dst > src: icmp: echo reply [ttl 1] (id 33870, len 84) [tos 0xc0] (ttl 254, id 6572, len 56) over and over and over again. This happens only with ICMP and only for this destination HOST! (It doesn't happen if I try from a different source box, though). I guess it's the freebsd router's fault, because it definitely receives a packet with ttl 58, and sends an ttl exceeded. The router is running freebsd 4.8-RELEASE, with IPF v3.4.31, and IPnat for natting. It's been running ok for about 100 days, and the problems with this destination hosts appeared suddenly, without configuration changes on any end. Any hints if IPF is really the problem? Thanks, bogdan From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 08:32:55 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89D4216A4CE for ; Tue, 30 Dec 2003 08:32:55 -0800 (PST) Received: from tenebras.com (laptop.tenebras.com [66.92.188.18]) by mx1.FreeBSD.org (Postfix) with SMTP id 8492E43D31 for ; Tue, 30 Dec 2003 08:32:54 -0800 (PST) (envelope-from kudzu@tenebras.com) Received: (qmail 20073 invoked from network); 30 Dec 2003 16:32:53 -0000 Received: from sapphire.tenebras.com (HELO tenebras.com) (192.168.188.241) by laptop.tenebras.com with SMTP; 30 Dec 2003 16:32:53 -0000 Message-ID: <3FF1A8B5.30807@tenebras.com> Date: Tue, 30 Dec 2003 08:32:53 -0800 From: Michael Sierchio User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, zh-tw, zh-cn, fr, en, de-de MIME-Version: 1.0 To: net@FreeBSD.org References: <20031228221511.91095.qmail@web21509.mail.yahoo.com> <20031230081308.GA36953@FreeBSD.org.ua> <3FF151F3.A5D9EC19@freebsd.org> In-Reply-To: <3FF151F3.A5D9EC19@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 16:32:55 -0000 Andre Oppermann wrote: > Ruslan Ermilov wrote: >>What is missing in ipfw(8) and its ``fwd'' option from being a >>successful implementation of policy routing? > > > In the technical sense it is. For larger systems you want automatic > configuration from a routing daemon. ipfw also has its limits when > it comes to a large number of prefixes which are changing all the > time. A policy or multi-protocol routing daemon can *effect* the desired policy via ipfw. My original notion was to do this via divert sockets, but for appliance devices this requires horsepower which is not available, and involves too much kernel-userland packet copying. From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 11:18:17 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1664616A4CE for ; Tue, 30 Dec 2003 11:18:17 -0800 (PST) Received: from web21502.mail.yahoo.com (web21502.mail.yahoo.com [66.163.169.13]) by mx1.FreeBSD.org (Postfix) with SMTP id 4D48D43D5F for ; Tue, 30 Dec 2003 11:18:15 -0800 (PST) (envelope-from afshinbsdbox@yahoo.com) Message-ID: <20031230191815.26086.qmail@web21502.mail.yahoo.com> Received: from [213.165.102.134] by web21502.mail.yahoo.com via HTTP; Tue, 30 Dec 2003 11:18:15 PST Date: Tue, 30 Dec 2003 11:18:15 -0800 (PST) From: afshin To: Bruce M Simpson In-Reply-To: <20031230012525.GB712@saboteur.dek.spc.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-net@freebsd.org Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 19:18:17 -0000 Dear Bruce, That's What I really mean. AFShin --- Bruce M Simpson wrote: > On Sun, Dec 28, 2003 at 02:15:11PM -0800, afshin > wrote: > > Is any source routing facility available in > FreeBSD ? > > I think you mean policy routing. It is on the > wishlist for 5.3. > > BMS __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 11:25:48 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F87716A4CE for ; Tue, 30 Dec 2003 11:25:48 -0800 (PST) Received: from web21502.mail.yahoo.com (web21502.mail.yahoo.com [66.163.169.13]) by mx1.FreeBSD.org (Postfix) with SMTP id EB1B743D41 for ; Tue, 30 Dec 2003 11:25:46 -0800 (PST) (envelope-from afshinbsdbox@yahoo.com) Message-ID: <20031230192546.31365.qmail@web21502.mail.yahoo.com> Received: from [213.165.102.134] by web21502.mail.yahoo.com via HTTP; Tue, 30 Dec 2003 11:25:46 PST Date: Tue, 30 Dec 2003 11:25:46 -0800 (PST) From: afshin To: Ruslan Ermilov In-Reply-To: <20031230081308.GA36953@FreeBSD.org.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-net@freebsd.org Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 19:25:48 -0000 > What is missing in ipfw(8) and its ``fwd'' option > from being a > successful implementation of policy routing? > > - by using the match probability feature, you can > implement > the equal-access routing; > > - by checking the source IP adress, you can > implement > the source-sensitive routing; > > - by checking the IP TOS field, you can implement > the > quality-of-service routing; > > - etc. > Dear Ruslan, Yes, That is what I really want, But it didn't worked when I tried it. Would you mind please give me an working example of it ? Really thank you all in advance, AFShin (AAS) __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 12:01:07 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AB7F16A4CE for ; Tue, 30 Dec 2003 12:01:07 -0800 (PST) Received: from web21504.mail.yahoo.com (web21504.mail.yahoo.com [66.163.169.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 59F1443D45 for ; Tue, 30 Dec 2003 12:01:06 -0800 (PST) (envelope-from afshinbsdbox@yahoo.com) Message-ID: <20031230200106.24025.qmail@web21504.mail.yahoo.com> Received: from [213.185.114.29] by web21504.mail.yahoo.com via HTTP; Tue, 30 Dec 2003 12:01:06 PST Date: Tue, 30 Dec 2003 12:01:06 -0800 (PST) From: afshin To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: outdoor Wireless-indoor access X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 20:01:07 -0000 Dear Helpers, I want to know if there is a solution for wireless Network in a 2 KM circle? In Other words I want to if the Below Situation would work or not: Installing an Access Point 802.11b with an omni anthena in 20 Meter high from the earth. and then I want to know can an indoor wireless LAN card 802.11b can access the AP or not. Thank you in advance, AFShin (AAS) __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 12:08:31 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F36C16A4CE for ; Tue, 30 Dec 2003 12:08:31 -0800 (PST) Received: from web21506.mail.yahoo.com (web21506.mail.yahoo.com [66.163.169.17]) by mx1.FreeBSD.org (Postfix) with SMTP id BA36C43D39 for ; Tue, 30 Dec 2003 12:08:30 -0800 (PST) (envelope-from afshinbsdbox@yahoo.com) Message-ID: <20031230200830.59615.qmail@web21506.mail.yahoo.com> Received: from [213.185.114.32] by web21506.mail.yahoo.com via HTTP; Tue, 30 Dec 2003 12:08:30 PST Date: Tue, 30 Dec 2003 12:08:30 -0800 (PST) From: afshin To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: 3NIC+ 2NAT X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 20:08:31 -0000 I have 3 Nics lets name them NIC1-NIC2-NIC3 NIC1 --> Internal Network /24 NIC2 --> OutSide World (A) NIC2 --> OutSide World (B) I want to NAT NIC1/25 on NIC2 and NIC1(128)/25 on NIC3. But the FreeBSD 4.8 Doesn't fo it on both interfaces it does just on the one that the default gateway (of the 4.8 with 3 NIICs)refers to. I Have Entered: # natd -interface NIC2 # natd-interface NIC3 (This Gives Error) and Using "ipnat" Any comments is appreciated so much Regards, AFShin (AAS) "FreeBSD is the Best Performance OS Ever Made!" __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 18:26:16 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3A1A16A4D3 for ; Tue, 30 Dec 2003 18:26:16 -0800 (PST) Received: from thong.s2s.msu.ru (thong.s2s.msu.ru [193.232.119.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36BEE43D78 for ; Tue, 30 Dec 2003 18:26:03 -0800 (PST) (envelope-from chinhngt@sectorb.msk.ru) Received: from hq.sectorb.msk.ru (petaflop.lcm.msu.ru [193.232.113.220]) by thong.s2s.msu.ru (Postfix) with ESMTP id CEABD6A0F for ; Wed, 31 Dec 2003 05:26:00 +0300 (MSK) Received: from unix.local (unix.local [172.16.12.120]) by hq.sectorb.msk.ru (Postfix) with ESMTP id 7482319F4 for ; Wed, 31 Dec 2003 05:26:00 +0300 (MSK) Date: Wed, 31 Dec 2003 05:26:46 +0300 (MSK) From: Nguyen Tam Chinh X-X-Sender: chinhngt@chinhngt.b.gz.ru To: freebsd-net@freebsd.org Message-ID: <20031231051118.V6209@chinhngt.b.gz.ru> Website: http://chinhngt.hotmail.ru Home-addr: Vietnam_SR:Hue-city:45-Le_Huan-st Current-addr: Russian_Federation:Moscow:119234:Main_Building-MSU:Sector_B:Room_539 Keywords: 216091683 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: inetd[]: warning: can't get client address: Connection reset by peer X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 02:26:17 -0000 Good morning everybody, I get tons of messages with syntax like my line, all has begun after I set up a qpopper/tsl and a smbd, but i seems not to be the deal. I've searched through google and found some messages saying about kind of attacking. I now just can't find any detail logs in my freebsd 4.9 box. Please tell me where can i find more info about this, take and read the inetd source-code is not a good idea :). Any comment is great. ----- With best regards. Nguyen Tam Chinh chinhngt@sectorb.msk.ru PS. To All: HAPPY NEW YEAR 2004!!!!!!!!!!!! From owner-freebsd-net@FreeBSD.ORG Wed Dec 31 03:43:50 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AADEA16A4CE for ; Wed, 31 Dec 2003 03:43:50 -0800 (PST) Received: from web21510.mail.yahoo.com (web21510.mail.yahoo.com [66.163.169.59]) by mx1.FreeBSD.org (Postfix) with SMTP id AEBF943D45 for ; Wed, 31 Dec 2003 03:43:49 -0800 (PST) (envelope-from afshinbsdbox@yahoo.com) Message-ID: <20031231114349.42572.qmail@web21510.mail.yahoo.com> Received: from [213.185.114.26] by web21510.mail.yahoo.com via HTTP; Wed, 31 Dec 2003 03:43:49 PST Date: Wed, 31 Dec 2003 03:43:49 -0800 (PST) From: afshin To: andy@ellifson.com In-Reply-To: <20031230230328.2181.qmail@web41505.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-net@freebsd.org Subject: Re: outdoor Wireless-indoor access X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 11:43:50 -0000 Dear Andy, So, What is the maximum distance for a 128Kbit/s BW, and in OutDoor Anthena and Indoor Wireless Card That can work together? I mean If it will work 1 KM for the wireless card that without anthena can work, So after 1 KM I should Add another AP or Bridge. Thanks for Your Answer, Waiting for Your Reply, AFShin (AAS) --- Andy Ellifson wrote: > > Remember that if you have an antenna with 12db of > gain, it will use that gain > to broadcast the signal to the wireless card. > Unless the wireless card also > has an antenna with 12db of gain the signal will not > get back to the base > station. > > -Andy > > --- afshin wrote: > > Dear Helpers, > > I want to know if there is a solution for wireless > > Network in a 2 KM circle? > > In Other words I want to if the Below Situation > would > > work or not: > > Installing an Access Point 802.11b with an omni > > anthena in 20 Meter high from the earth. > > and then I want to know can an indoor wireless LAN > > card 802.11b can access the AP or not. > > > > Thank you in advance, > > AFShin (AAS) > > > > __________________________________ > > Do you Yahoo!? > > Find out what made the Top Yahoo! Searches of 2003 > > http://search.yahoo.com/top2003 > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" > __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From owner-freebsd-net@FreeBSD.ORG Wed Dec 31 03:48:13 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E7AD16A4CE for ; Wed, 31 Dec 2003 03:48:13 -0800 (PST) Received: from web21509.mail.yahoo.com (web21509.mail.yahoo.com [66.163.169.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 73A8F43D3F for ; Wed, 31 Dec 2003 03:48:11 -0800 (PST) (envelope-from afshinbsdbox@yahoo.com) Message-ID: <20031231114811.93320.qmail@web21509.mail.yahoo.com> Received: from [213.185.114.26] by web21509.mail.yahoo.com via HTTP; Wed, 31 Dec 2003 03:48:11 PST Date: Wed, 31 Dec 2003 03:48:11 -0800 (PST) From: afshin To: Ruslan Ermilov In-Reply-To: <20031231093129.GB47633@FreeBSD.org.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-net@freebsd.org Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 11:48:13 -0000 You know I Use ipf with for example pass xl1:1.2.3.4 from 1.2.3.5/24 to any BUT, The Problem is that when I use this, the 1.2.3.5 cannot access the local IPs, Without looking at routing tables of the router it QUICKLY passes it to the NEW gateway. Thanks AFShhin --- Ruslan Ermilov wrote: > On Tue, Dec 30, 2003 at 11:25:46AM -0800, afshin > wrote: > > > > > What is missing in ipfw(8) and its ``fwd'' > option > > > from being a > > > successful implementation of policy routing? > > > > > > - by using the match probability feature, you > can > > > implement > > > the equal-access routing; > > > > > > - by checking the source IP adress, you can > > > implement > > > the source-sensitive routing; > > > > > > - by checking the IP TOS field, you can > implement > > > the > > > quality-of-service routing; > > > > > > - etc. > > > > > > > Dear Ruslan, > > Yes, That is what I really want, But it didn't > worked > > when I tried it. > > Would you mind please give me an working example > of it > > ? > > Really thank you all in advance, > > AFShin (AAS) > > > Sorry, but I don't have one to share. Those that I > have > are proprietary. But we could work with your > examples > to a level to make them work. ;) > > > Cheers, > -- > Ruslan Ermilov > FreeBSD committer > ru@FreeBSD.org > > ATTACHMENT part 2 application/pgp-signature __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From owner-freebsd-net@FreeBSD.ORG Wed Dec 31 05:00:17 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6434A16A4CE for ; Wed, 31 Dec 2003 05:00:17 -0800 (PST) Received: from phuket.psconsult.nl (ps226.psconsult.nl [213.222.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0AF143D60 for ; Wed, 31 Dec 2003 05:00:13 -0800 (PST) (envelope-from paul@phuket.psconsult.nl) Received: from phuket.psconsult.nl (localhost [127.0.0.1]) by phuket.psconsult.nl (8.12.6p3/8.12.6) with ESMTP id hBVD0CGB091484 for ; Wed, 31 Dec 2003 14:00:12 +0100 (CET) (envelope-from paul@phuket.psconsult.nl) Received: (from paul@localhost) by phuket.psconsult.nl (8.12.6p3/8.12.6/Submit) id hBVD0B8N091483 for freebsd-net@freebsd.org; Wed, 31 Dec 2003 14:00:11 +0100 (CET) Date: Wed, 31 Dec 2003 14:00:11 +0100 From: Paul Schenkeveld To: freebsd-net@freebsd.org Message-ID: <20031231130011.GA91135@psconsult.nl> Mail-Followup-To: freebsd-net@freebsd.org References: <20031231093129.GB47633@FreeBSD.org.ua> <20031231114811.93320.qmail@web21509.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031231114811.93320.qmail@web21509.mail.yahoo.com> User-Agent: Mutt/1.5.4i Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 13:00:17 -0000 On Wed, Dec 31, 2003 at 03:48:11AM -0800, afshin wrote: > You know I Use ipf with for example pass xl1:1.2.3.4 > from 1.2.3.5/24 to any > BUT, The Problem is that when I use this, the 1.2.3.5 > cannot access the local IPs, > Without looking at routing tables of the router it > QUICKLY passes it to the NEW gateway. FWIW, I usually do all filtering using ipf but at one site I'm administering I had to do source routing so I implemented the routing part with ipfw and the (stateful) filtering with ipf. This works great there. If needed, I can dig up some config next week and post it here. Regards, Paul Schenkeveld, Consultant PSconsult ICT Services BV > Thanks > AFShhin > > > --- Ruslan Ermilov wrote: > > On Tue, Dec 30, 2003 at 11:25:46AM -0800, afshin > > wrote: > > > > > > > What is missing in ipfw(8) and its ``fwd'' > > option > > > > from being a > > > > successful implementation of policy routing? > > > > > > > > - by using the match probability feature, you > > can > > > > implement > > > > the equal-access routing; > > > > > > > > - by checking the source IP adress, you can > > > > implement > > > > the source-sensitive routing; > > > > > > > > - by checking the IP TOS field, you can > > implement > > > > the > > > > quality-of-service routing; > > > > > > > > - etc. > > > > > > > > > > Dear Ruslan, > > > Yes, That is what I really want, But it didn't > > worked > > > when I tried it. > > > Would you mind please give me an working example > > of it > > > ? > > > Really thank you all in advance, > > > AFShin (AAS) > > > > > Sorry, but I don't have one to share. Those that I > > have > > are proprietary. But we could work with your > > examples > > to a level to make them work. ;) > > > > > > Cheers, > > -- > > Ruslan Ermilov > > FreeBSD committer > > ru@FreeBSD.org > > > > > ATTACHMENT part 2 application/pgp-signature > > > > __________________________________ > Do you Yahoo!? > Find out what made the Top Yahoo! Searches of 2003 > http://search.yahoo.com/top2003 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Wed Dec 31 05:31:23 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94C9A16A4CE for ; Wed, 31 Dec 2003 05:31:23 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id A935D43D2D for ; Wed, 31 Dec 2003 05:31:19 -0800 (PST) (envelope-from max@love2party.net) Received: from [212.227.126.179] (helo=mrelayng9.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AbgRT-0003lF-00 for freebsd-net@freebsd.org; Wed, 31 Dec 2003 14:31:19 +0100 Received: from [217.83.13.134] (helo=vampire.homelinux.org) by mrelayng9.kundenserver.de with asmtp (Exim 3.35 #1) id 1AbgRS-0007Eo-00 for freebsd-net@freebsd.org; Wed, 31 Dec 2003 14:31:18 +0100 Received: (qmail 7548 invoked from network); 31 Dec 2003 13:35:39 -0000 Received: from unknown (HELO fbsd52.laiers.local) (192.168.4.88) by 192.168.4.1 with SMTP; 31 Dec 2003 13:35:39 -0000 From: Max Laier To: Paul Schenkeveld , freebsd-net@freebsd.org Date: Wed, 31 Dec 2003 14:31:16 +0100 User-Agent: KMail/1.5.4 References: <20031231093129.GB47633@FreeBSD.org.ua> <20031231114811.93320.qmail@web21509.mail.yahoo.com> <20031231130011.GA91135@psconsult.nl> In-Reply-To: <20031231130011.GA91135@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312311431.16869.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:e28873fbe4dbe612ce62ab869898ff08 Subject: Re: Source Routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 13:31:23 -0000 On Wednesday 31 December 2003 14:00, Paul Schenkeveld wrote: > On Wed, Dec 31, 2003 at 03:48:11AM -0800, afshin wrote: > > You know I Use ipf with for example pass xl1:1.2.3.4 > > from 1.2.3.5/24 to any > > BUT, The Problem is that when I use this, the 1.2.3.5 > > cannot access the local IPs, > > Without looking at routing tables of the router it > > QUICKLY passes it to the NEW gateway. > > FWIW, I usually do all filtering using ipf but at one site I'm > administering I had to do source routing so I implemented the routing > part with ipfw and the (stateful) filtering with ipf. This works great > there. If needed, I can dig up some config next week and post it here. > > Regards, > > Paul Schenkeveld, Consultant > PSconsult ICT Services BV ports/security/pf might (once again) be worth a look. See site in my .sig ;) It has the filtering capabilities of ipf (superior fitering capabilites by now) and very flexible and fast routing options. In combination with ALTQ (which is yet to be ported to FreeBSD 5.2) it gives you complete QoS routing. And with its superior state tracking code which can be combined with the routing rules you can even do round-robin or source-hash load balancing over multiple uplinks. BEWARE: port version < 2.01 has a bug in the route-to code (update is pending) Try tarball install of version 2.01 from http://pf4freebsd.love2party.net/ -- Best regards, | max@love2party.net Max Laier | ICQ #67774661 http://pf4freebsd.love2party.net/ | mlaier@EFnet #DragonFlyBSD From owner-freebsd-net@FreeBSD.ORG Wed Dec 31 07:29:37 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2032616A4CE for ; Wed, 31 Dec 2003 07:29:37 -0800 (PST) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id EE37D43D53 for ; Wed, 31 Dec 2003 07:29:28 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 28156 invoked from network); 31 Dec 2003 15:27:27 -0000 Received: from office.casyst.com (HELO straylight.m.ringlet.net) (212.91.166.145) by gandalf.online.bg with SMTP; 31 Dec 2003 15:27:27 -0000 Received: (qmail 1175 invoked by uid 1000); 31 Dec 2003 15:30:28 -0000 Date: Wed, 31 Dec 2003 17:30:28 +0200 From: Peter Pentchev To: Chris McKenzie Message-ID: <20031231153028.GA901@straylight.m.ringlet.net> Mail-Followup-To: Chris McKenzie , Kris Kennaway , freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org References: <20031230141253.GA40702@xor.obsecurity.org> <20031230142800.GA707@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline In-Reply-To: <20031230142800.GA707@straylight.m.ringlet.net> User-Agent: Mutt/1.5.5.1i cc: freebsd-net@FreeBSD.org cc: freebsd-bugs@FreeBSD.org cc: Kris Kennaway Subject: Re: How to hard lock FreeBSD-5.1 generic with sl X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 15:29:37 -0000 --2B/JsCI69OhZNC5r Content-Type: multipart/mixed; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline --AhhlLboLdkugWU4S Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2003 at 04:28:00PM +0200, Peter Pentchev wrote: > On Tue, Dec 30, 2003 at 06:12:53AM -0800, Kris Kennaway wrote: > > On Mon, Dec 29, 2003 at 06:02:45PM -0800, Chris McKenzie wrote: > > > On three machines (PII 450, P3 450, Pentium laptop 200) with FreeBSD-= 5.1 > > > generic (and specific builds) I am able to completely hard lock the s= ystem > > > by doing the following > > >=20 > > > # ifconfig ppp0 create > > > # ifconfig sl0 create > > >=20 > > > Heh . . . that shouldn't happen. > >=20 > > Does the problem persist with 5.2? >=20 > I just tested in on a 5.2-CURRENT as of today, and yes, the system > locked up solid - no ddb, no anything. I'll try to do some more testing > as time permits. [cc'd to -net for a pre-commit review / discussion] OK, I think I've found the problem. The if_clone_attach() routine in src/sys/net/if.c blindly adds the new cloned interface to the if_cloners list without checking if it is already on the list. This, understandably, leads to problems when trying to attach an interface that already exists - such as a ppp interface. The if_ppp code adds itself to the if_cloners list at the module loading stage. Thus, the very first invocation of ifconfig ppp0 create adds the ppp_cloner structure to the list *again* - and creates a loop on the list. Any attempts to traverse the list later lead to lock-ups. Attached is a patch that does two things: first, only adds the interface to the list if it is not already there (the second and third chunks, at lines 812 and 827 of if.c), and second, adds a if_check_cloners_loop() routine to traverse the if_cloners list and panic if a loop is found. The if_check_cloners_loop() invocations could be protected by INVARIANTS, KASSERT, or WITNESS, but it sure helps find such problems :) Chris, could you try this patch and see if it helps in your situation? And.. happy New Year, everyone! (albeit a little early :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am not the subject of this sentence. --AhhlLboLdkugWU4S Content-Type: text/plain; charset=windows-1251 Content-Disposition: attachment; filename="cloners-loop.patch" Content-Transfer-Encoding: quoted-printable Index: src/sys/net/if.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/net/if.c,v retrieving revision 1.174 diff -u -r1.174 if.c --- src/sys/net/if.c 26 Dec 2003 18:09:35 -0000 1.174 +++ src/sys/net/if.c 31 Dec 2003 15:15:25 -0000 @@ -762,6 +762,32 @@ } =20 /* + * Check the if_cloners list for loops. + */ +static void +if_check_cloners_loop(void) +{ + struct if_clone *ifc, *ifcn, *ifct; + + for (ifc =3D LIST_FIRST(&if_cloners); ifc !=3D NULL; ) { + ifcn =3D LIST_NEXT(ifc, ifc_list); + if (ifcn =3D=3D NULL) + return; + if (ifcn =3D=3D ifc) + panic( + "cloners loop to self for %p / %s", + ifc, ifc->ifc_name); + for (ifct =3D LIST_FIRST(&if_cloners); ifct !=3D ifc; + ifct =3D LIST_NEXT(ifct, ifc_list)) + if (ifct =3D=3D ifcn) + panic( + "cloners loop from %p / %s to %p / %s", + ifc, ifc->ifc_name, ifct, ifct->ifc_name); + ifc =3D ifcn; + } +} + +/* * Look up a network interface cloner. */ static struct if_clone * @@ -771,6 +797,7 @@ const char *cp; int i; =20 + if_check_cloners_loop(); for (ifc =3D LIST_FIRST(&if_cloners); ifc !=3D NULL;) { for (cp =3D name, i =3D 0; i < ifc->ifc_namelen; i++, cp++) { if (ifc->ifc_name[i] !=3D *cp) @@ -812,6 +839,8 @@ int err; int len, maxclone; int unit; + int found; + struct if_clone *ift; =20 KASSERT(ifc->ifc_minifs - 1 <=3D ifc->ifc_maxunit, ("%s: %s requested more units then allowed (%d > %d)", @@ -827,8 +856,19 @@ ifc->ifc_units =3D malloc(len, M_CLONE, M_WAITOK | M_ZERO); ifc->ifc_bmlen =3D len; =20 - LIST_INSERT_HEAD(&if_cloners, ifc, ifc_list); - if_cloners_count++; + if_check_cloners_loop(); + found =3D 0; + LIST_FOREACH(ift, &if_cloners, ifc_list) { + if (ift =3D=3D ifc) { + found =3D 1; + break; + } + } + if (!found) { + LIST_INSERT_HEAD(&if_cloners, ifc, ifc_list); + if_cloners_count++; + if_check_cloners_loop(); + } =20 for (unit =3D 0; unit < ifc->ifc_minifs; unit++) { err =3D (*ifc->ifc_create)(ifc, unit); @@ -840,7 +880,9 @@ bytoff =3D unit >> 3; bitoff =3D unit - (bytoff << 3); ifc->ifc_units[bytoff] |=3D (1 << bitoff); + if_check_cloners_loop(); } + if_check_cloners_loop(); } =20 /* @@ -853,6 +895,7 @@ LIST_REMOVE(ifc, ifc_list); free(ifc->ifc_units, M_CLONE); if_cloners_count--; + if_check_cloners_loop(); } =20 /* @@ -877,6 +920,7 @@ count =3D (if_cloners_count < ifcr->ifcr_count) ? if_cloners_count : ifcr->ifcr_count; =20 + if_check_cloners_loop(); for (ifc =3D LIST_FIRST(&if_cloners); ifc !=3D NULL && count !=3D 0; ifc =3D LIST_NEXT(ifc, ifc_list), count--, dst +=3D IFNAMSIZ) { strlcpy(outbuf, ifc->ifc_name, IFNAMSIZ); --AhhlLboLdkugWU4S-- --2B/JsCI69OhZNC5r Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE/8uuU7Ri2jRYZRVMRAjmnAKCBRoQ0ppxBgaLLtRqhQAPiXROOBgCgjBus DMWqmZtFMV+xJ6ysUMut2cs= =j7V8 -----END PGP SIGNATURE----- --2B/JsCI69OhZNC5r-- From owner-freebsd-net@FreeBSD.ORG Wed Dec 31 07:42:02 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 458FD16A4CE for ; Wed, 31 Dec 2003 07:42:02 -0800 (PST) Received: from proton.hexanet.fr (proton.hexanet.fr [81.23.32.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1FA543D3F for ; Wed, 31 Dec 2003 07:41:59 -0800 (PST) (envelope-from c.prevotaux@hexanet.fr) Received: from hexanet.fr (localhost [127.0.0.1]) by proton.hexanet.fr (Postfix) with SMTP id BB58D4C927 for ; Wed, 31 Dec 2003 16:41:57 +0100 (CET) Date: Wed, 31 Dec 2003 16:41:57 +0100 From: Christophe Prevotaux To: freebsd-net@freebsd.org Message-Id: <20031231164157.0b2a3bbe.c.prevotaux@hexanet.fr> Organization: HEXANET Sarl X-Mailer: Sylpheed version 0.9.6 (GTK+ 1.2.10; i386-portbld-freebsd4.9) X-NCC-RegID: fr.hexanet Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: PPP server and Radius X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 15:42:02 -0000 Hi, I would like to know if someone could add an EXTRA Radius reply parameter to the PPP server (kernel) code in FreeBSD. For example a generic thing that could be called RAD_REPLY_EXTRAS that would then be available as an environnement variable to the ppp.linkup launchable scripts ?=20 I would like to have this in order to easily pass Bandwidth limitation parameters (but it could but used for any other purposes) to the ipfw system dynamically. I believe it is possible to send such extra parameters from FreeRadius without modifying the code (tell me if I am wrong though this is not FreeRadius mailing list :)) -- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Christophe Prevotaux Email: c.prevotaux@hexanet.fr HEXANET SARL URL: http://www.hexanet.fr/ Z.A.C Les Charmilles Tel: +33 (0)3 26 79 30 05=20 3 All=E9e Thierry Sabine Direct: +33 (0)3 26 61 77 72=20 BP202 Fax: +33 (0)3 26 79 30 06 51686 Reims Cedex 2 =20 FRANCE HEXANET Network Operation Center =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D From owner-freebsd-net@FreeBSD.ORG Wed Dec 31 10:27:42 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C020016A4CE; Wed, 31 Dec 2003 10:27:42 -0800 (PST) Received: from veni.ucdavis.edu (veni.ucdavis.edu [169.237.105.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AD4E43D1D; Wed, 31 Dec 2003 10:27:38 -0800 (PST) (envelope-from cjmckenzie@ucdavis.edu) Received: from localhost (localhost [127.0.0.1])hBVIRaY4001177; Wed, 31 Dec 2003 10:27:37 -0800 (PST) Date: Wed, 31 Dec 2003 10:27:36 -0800 (PST) From: Chris McKenzie X-X-Sender: cjm@veni.ucdavis.edu To: Peter Pentchev In-Reply-To: <20031231153028.GA901@straylight.m.ringlet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@FreeBSD.org cc: freebsd-bugs@FreeBSD.org cc: Chris McKenzie cc: Kris Kennaway Subject: Re: How to hard lock FreeBSD-5.1 generic with sl X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 18:27:42 -0000 I will gladly do so. HOWEVER, it also appears that sl itself is not working. I get a ifconfig: SIOCIFCREATE: Invalid argument if I just try #ifconfig sl0 create. If I do a #slattach -s 115200 -l /dev/cuaa1 Then a ifconfig sl0 create . . . I get the same problem. It is _also_ worth noting that SL(4) is out of date and does not pertain to the 5.x series. This problem persists independent of how I have configured my kernel (since I have tried a few different configurations) and the system it is running on. However, I will definitely do the patch and see what happens from there. On Wed, 31 Dec 2003, Peter Pentchev wrote: > On Tue, Dec 30, 2003 at 04:28:00PM +0200, Peter Pentchev wrote: > > On Tue, Dec 30, 2003 at 06:12:53AM -0800, Kris Kennaway wrote: > > > On Mon, Dec 29, 2003 at 06:02:45PM -0800, Chris McKenzie wrote: > > > > On three machines (PII 450, P3 450, Pentium laptop 200) with FreeBSD-5.1 > > > > generic (and specific builds) I am able to completely hard lock the system > > > > by doing the following > > > > > > > > # ifconfig ppp0 create > > > > # ifconfig sl0 create > > > > > > > > Heh . . . that shouldn't happen. > > > > > > Does the problem persist with 5.2? > > > > I just tested in on a 5.2-CURRENT as of today, and yes, the system > > locked up solid - no ddb, no anything. I'll try to do some more testing > > as time permits. > > [cc'd to -net for a pre-commit review / discussion] > > OK, I think I've found the problem. The if_clone_attach() routine in > src/sys/net/if.c blindly adds the new cloned interface to the if_cloners > list without checking if it is already on the list. This, > understandably, leads to problems when trying to attach an interface > that already exists - such as a ppp interface. > > The if_ppp code adds itself to the if_cloners list at the module > loading stage. Thus, the very first invocation of ifconfig ppp0 create > adds the ppp_cloner structure to the list *again* - and creates a loop > on the list. Any attempts to traverse the list later lead to lock-ups. > > Attached is a patch that does two things: first, only adds the interface > to the list if it is not already there (the second and third chunks, at > lines 812 and 827 of if.c), and second, adds a if_check_cloners_loop() > routine to traverse the if_cloners list and panic if a loop is found. > The if_check_cloners_loop() invocations could be protected by > INVARIANTS, KASSERT, or WITNESS, but it sure helps find such problems :) > > Chris, could you try this patch and see if it helps in your situation? > > And.. happy New Year, everyone! (albeit a little early :) > > G'luck, > Peter > > -- > Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org > PGP key: http://people.FreeBSD.org/~roam/roam.key.asc > Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 > I am not the subject of this sentence. > Sincerely, Christopher J. McKenzie cjm@ucdavis.edu