From owner-freebsd-net@FreeBSD.ORG Sun Feb 13 21:36:05 2005 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 C566C16A4CF for ; Sun, 13 Feb 2005 21:36:05 +0000 (GMT) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 779C543D2F for ; Sun, 13 Feb 2005 21:36:05 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 62C67F438; Sun, 13 Feb 2005 16:36:04 -0500 (EST) Received: by canoe.dclg.ca (Postfix, from userid 101) id 1EC856388; Sun, 13 Feb 2005 16:36:00 -0500 (EST) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16911.51264.86063.604597@canoe.dclg.ca> Date: Sun, 13 Feb 2005 16:36:00 -0500 To: freebsd-net@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 16) "Corporate Culture" XEmacs Lucid Subject: altq for vlans? 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, 13 Feb 2005 21:36:05 -0000 Has anyone considered patching the vlan driver to support altq? I gather that since tun works, so should vlan. Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can only be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-net@FreeBSD.ORG Sun Feb 13 22:42:10 2005 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 6515016A4CE for ; Sun, 13 Feb 2005 22:42:10 +0000 (GMT) Received: from mail.wtnord.net (mail.wtnord.net [81.8.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A1DE43D3F for ; Sun, 13 Feb 2005 22:42:09 +0000 (GMT) (envelope-from doktorn@sub.nu) Received: from studsboll.realworld.nu ([212.214.143.231]) by mail.wtnord.net (WebTech Nord) with ESMTP (SSL) id MUN74718 for ; Sun, 13 Feb 2005 23:43:00 +0100 Received: from studsboll.realworld.nu (localhost.realworld.nu [IPv6:::1]) by studsboll.realworld.nu (8.13.1/8.13.1) with SMTP id j1DMg6Ci059587 for ; Sun, 13 Feb 2005 23:42:06 +0100 (CET) (envelope-from doktorn@sub.nu) Date: Sun, 13 Feb 2005 23:42:06 +0100 From: Rickard =?ISO-8859-1?Q?Borgm=E4ster?= To: freebsd-net@freebsd.org Message-Id: <20050213234206.357ce9d7.doktorn@sub.nu> X-Mailer: Sylpheed version 0.9.99 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Bridge problem and replies with bad MAC Adress [5.3R] 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, 13 Feb 2005 22:42:10 -0000 Hi, I'm trying to set up a bridge on FBSD 5.3-RELEASE with Generic kernel. I want to bridge re0 and xl0, so I've done this: sysctl net.link.ether.bridge.config="re0,xl0" sysctl net.link.ether.bridge.enable=1 re0 has IP adress set while xl0 do not. Both of these interfaces has Windows XP computers with DHCP enabled. DHCP is served by FreeBSD host, and works just fine for both segments. Connectivity between segments is also fine. Ping from a host on xl0 segment to re0 segment, and vice versa, is successful. However, while host on re0 segment can communicate with FreeBSD host, hosts on xl0 segment cannot. Interface setup: re0: flags=8943 mtu 1500 options=1b inet6 fe80::209:5bff:fee1:219%re0 prefixlen 64 scopeid 0x1 inet 10.0.8.46 netmask 0xfffffff0 broadcast 10.0.8.47 ether 00:09:5b:e1:02:19 media: Ethernet autoselect (1000baseTX ) status: active xl0: flags=8943 mtu 1500 options=9 inet6 fe80::201:2ff:fefa:8431%xl0 prefixlen 64 scopeid 0x2 ether 00:01:02:fa:84:31 media: Ethernet autoselect (100baseTX ) status: active Test host (flugan) on xl0 segment with IP 10.0.8.34 (MAC 00:06:5b:d4:bc:6d) pings FreeBSD host: # tcpdump -eni xl0 23:00:04.356411 00:06:5b:d4:bc:6d > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: arp who-has 10.0.8.46 tell 10.0.8.34 23:00:04.356457 00:01:02:fa:84:31 > 00:06:5b:d4:bc:6d, ethertype ARP (0x0806), length 42: arp reply 10.0.8.46 is-at 00:01:02:fa:84:31 23:00:04.356675 00:06:5b:d4:bc:6d > 00:01:02:fa:84:31, ethertype IPv4 (0x0800), length 74: IP 10.0.8.34 > 10.0.8.46: icmp 40: echo request seq 12800 23:00:04.356727 00:09:5b:e1:02:19 > 00:06:5b:d4:bc:6d, ethertype IPv4 (0x0800), length 74: IP 10.0.8.46 > 10.0.8.34: icmp 40: echo reply seq 12800 23:00:09.428029 00:06:5b:d4:bc:6d > 00:01:02:fa:84:31, ethertype IPv4 (0x0800), length 74: IP 10.0.8.34 > 10.0.8.46: icmp 40: echo request seq 13056 23:00:09.428089 00:09:5b:e1:02:19 > 00:06:5b:d4:bc:6d, ethertype IPv4 (0x0800), length 74: IP 10.0.8.46 > 10.0.8.34: icmp 40: echo reply seq 13056 # arp -a wintendo.realworld.kanin (10.0.8.33) at 00:0f:b5:06:67:1f on re0 [ethernet] flugan.realworld.kanin (10.0.8.34) at 00:06:5b:d4:bc:6d on re0 [ethernet] studsboll.realworld.kanin (10.0.8.46) at 00:09:5b:e1:02:19 on re0 permanent [ethernet] I think this is the problem. When flugan (actually connected on xl0 segment) requests MAC address for 10.0.8.46 (FreeBSD interface re0), FreeBSD host replies with the MAC address for the xl0 interface. Altough, when flugan pings FreeBSD host, using the MAC address just received, FreeBSD host replies using MAC adress of re0 (far side). I guess the result of this is that the Windows Workstation on xl0 segment thinks the packet is garbage and discards it. Maybe. Maybe I've missed something important in my configuration? If this is a kernel or bridge.ko bug I guess you would know about it already. Please advice, Thanks. -- Rickard .--. .--. .----------------------------------------. | | | | .-. | Rickard Borgmäster | | | | |/ / | doktorn@sub.nu | .-^ | .--. | < | http://doktorn.sub.nu/ | ( o | ( () ) | |\ \ `----------------------------------------' `-----' `--' `--' `--' From owner-freebsd-net@FreeBSD.ORG Sun Feb 13 23:06:44 2005 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 7757516A4CE for ; Sun, 13 Feb 2005 23:06:44 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47ADD43D53 for ; Sun, 13 Feb 2005 23:06:44 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id 2705E46B16; Sun, 13 Feb 2005 18:06:43 -0500 (EST) Date: Sun, 13 Feb 2005 23:05:27 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: David Gilbert In-Reply-To: <16911.51264.86063.604597@canoe.dclg.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: altq for vlans? 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, 13 Feb 2005 23:06:44 -0000 On Sun, 13 Feb 2005, David Gilbert wrote: > Has anyone considered patching the vlan driver to support altq? I > gather that since tun works, so should vlan. My understanding is that ALTQ processing occurs in the context of persisting outgoing packet queues -- the queueing going into the vlan driver is minimal, as the vlan driver immediately hands packets off to the underlying driver output queue. As such, my guess is that (a) there would be little or no effect to adding ALTQ processing the vlan interfaces since packets only ever live fleetingly in vlan queues, and (b) ALTQ processing already happens on the underlying interface, so you probably don't need it at the vlan layer, although you might look at vlan tags in deciding how to drop/etc the vlan-sourced messages in the underlying interface queue. Robert N M Watson From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 00:57:41 2005 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 1EE2316A4CE for ; Mon, 14 Feb 2005 00:57:41 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7EF043D55 for ; Mon, 14 Feb 2005 00:57:39 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D0UYU-0001KH-00; Mon, 14 Feb 2005 01:57:38 +0100 Received: from [84.128.141.74] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1D0UYU-0003Sh-00; Mon, 14 Feb 2005 01:57:38 +0100 From: Max Laier To: freebsd-net@freebsd.org Date: Mon, 14 Feb 2005 01:57:29 +0100 User-Agent: KMail/1.7.2 References: <16911.51264.86063.604597@canoe.dclg.ca> In-Reply-To: <16911.51264.86063.604597@canoe.dclg.ca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1123904.DZRPjeplGl"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502140157.36085.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: David Gilbert Subject: Re: altq for vlans? 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, 14 Feb 2005 00:57:41 -0000 --nextPart1123904.DZRPjeplGl Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 13 February 2005 22:36, David Gilbert wrote: > Has anyone considered patching the vlan driver to support altq? I > gather that since tun works, so should vlan. This should be a FAQ. Anyway, here is the story: While you can do ALTQ queueing on vlan interfaces the usefulness of this is= =20 very little. If the physical interface supports ALTQ it is *always* better= =20 to do the queueing there. If the physical interface does not support ALTQ = it=20 must be patched. To configure queueing on physical interfaces you do the following: Suppose we have the following VLAN: vlan0: flags=3D8842 mtu 1500 inet 192.168.10.1 netmask 0xffffff00 ether [---] media: Ethernet autoselect (100baseTX ) status: active vlan: 1 parent interface: xl0 pf.conf: phy_if =3D xl0 vlan_if =3D vlan0 slow_peers =3D "{ 192.168.10.23, 192.168.10.42 }" # QUEUE on physical interface: altq on $phy_if cbq bandwidth 10Mb queue { default, limited } queue default bandwidth 75% cbq(borrow default) queue limited bandwidth 25% cbq block all # CLASSIFY on virtual interface: pass on $vlan_if from $vlan_if:network to any keep state queue default pass on $vlan_if from $slow_peers to any keep state queue limited #EOF If that does not help you, please try to explain what exactly you try to=20 achieve and why it is not possible with this method. Thanks. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1123904.DZRPjeplGl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCD/eAXyyEoT62BG0RAlWLAJ9adI1KH7qzA7etSeWtQUf1GKf95QCdH9Zn YhUC4f2rLOGz4nNdOSwlobc= =aOzt -----END PGP SIGNATURE----- --nextPart1123904.DZRPjeplGl-- From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 04:47:31 2005 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 07E6316A4CE for ; Mon, 14 Feb 2005 04:47:31 +0000 (GMT) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id B517243D49 for ; Mon, 14 Feb 2005 04:47:30 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id ECEA9F5C6; Sun, 13 Feb 2005 23:47:29 -0500 (EST) Received: by canoe.dclg.ca (Postfix, from userid 101) id 628246389; Sun, 13 Feb 2005 23:47:25 -0500 (EST) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16912.11613.216501.589279@canoe.dclg.ca> Date: Sun, 13 Feb 2005 23:47:25 -0500 To: Max Laier In-Reply-To: <200502140157.36085.max@love2party.net> References: <16911.51264.86063.604597@canoe.dclg.ca> <200502140157.36085.max@love2party.net> X-Mailer: VM 7.17 under 21.4 (patch 16) "Corporate Culture" XEmacs Lucid cc: freebsd-net@freebsd.org cc: David Gilbert Subject: Re: altq for vlans? 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, 14 Feb 2005 04:47:31 -0000 >>>>> "Max" == Max Laier writes: Max> On Sunday 13 February 2005 22:36, David Gilbert wrote: >> Has anyone considered patching the vlan driver to support altq? I >> gather that since tun works, so should vlan. Max> This should be a FAQ. Anyway, here is the story: Max> While you can do ALTQ queueing on vlan interfaces the usefulness Max> of this is very little. If the physical interface supports ALTQ Max> it is *always* better to do the queueing there. If the physical Max> interface does not support ALTQ it must be patched. [...] Max> If that does not help you, please try to explain what exactly you Max> try to achieve and why it is not possible with this method. Max> Thanks. Well... the issue is several fold. Firstly, the router in question is talking in trunk mode to a switch which in turn hands out ports to end user boxes. So the "real" interface could be queue limited, but in general, it can be assumed that the GigE interface is faster than the sum of the traffic coming into it. Now... you seem to be saying that if the queue is attached to (in this case) em0, and vlan10 goes through em0, that traffic will be subject to the queue ... even though it's been tagged ... and from the perspective of em0 is no longer IP traffic. This is certainly not obvious, if it is the case. But from a vlan-as-virtual-circuit-replacement standpoint, it makes sense to note a vlan as a queue entity. Anyways, the _real_ problem is that traditionally, I'd used firewall rules for accounting as well as security. To that end, labels are very cool. However, they have one rather large defect: If you're dealing with keep state rules, there seems to be no obvious way to account for incoming vs. outgoing traffic. The label only reports total traffic for the state matching the rule... which is both in and out. So... I was only messing with queues right now in hopes that the queue would give better reporting. Maybe not. Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can only be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 08:04:23 2005 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 9D33316A4CE for ; Mon, 14 Feb 2005 08:04:23 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB44543D46 for ; Mon, 14 Feb 2005 08:04:22 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1E84LaM072099; Mon, 14 Feb 2005 10:04:21 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 20422-10; Mon, 14 Feb 2005 10:04:20 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1E84KSj072096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Feb 2005 10:04:20 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j1E84Exu034429; Mon, 14 Feb 2005 10:04:14 +0200 (EET) (envelope-from ru) Date: Mon, 14 Feb 2005 10:04:14 +0200 From: Ruslan Ermilov To: Eric Masson Message-ID: <20050214080414.GA32376@ip.net.ua> References: <86is4xj3q5.fsf@srvbsdnanssv.interne.kisoft-services.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <86is4xj3q5.fsf@srvbsdnanssv.interne.kisoft-services.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: net@FreeBSD.org Subject: Re: xl(4) & polling 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, 14 Feb 2005 08:04:23 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 12, 2005 at 02:40:50PM +0100, Eric Masson wrote: > Hi, >=20 > Has anyone wip regarding ${subject} area ? >=20 > I've found this, but the project seem to have stalled : > http://listserver.uk.freebsd.org/pipermail/freebsd-users/2002-April/00566= 6.html >=20 Do you want to donate a card? Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCEFt+qRfpzJluFF4RAn2UAKCE/AG6fb829uwtQZp4z02fKLBJmgCcDauN Fzi9wRuiSg9aDZ6fcapHixc= =sCze -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC-- From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 08:33:26 2005 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 14D9816A4CE for ; Mon, 14 Feb 2005 08:33:25 +0000 (GMT) Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A508C43D31 for ; Mon, 14 Feb 2005 08:33:25 +0000 (GMT) (envelope-from kelly@nttmcl.com) Received: from alicia.nttmcl.com (localhost [127.0.0.1]) by alicia.nttmcl.com (8.12.11/8.12.11) with ESMTP id j1E8XPlD046727; Mon, 14 Feb 2005 00:33:25 -0800 (PST) (envelope-from kelly@nttmcl.com) Received: from localhost (kelly@localhost)j1E8XKcd046721; Mon, 14 Feb 2005 00:33:25 -0800 (PST) (envelope-from kelly@nttmcl.com) X-Authentication-Warning: alicia.nttmcl.com: kelly owned process doing -bs Date: Mon, 14 Feb 2005 00:33:20 -0800 (PST) From: Kelly Yancey To: Bruce M Simpson In-Reply-To: <20050212071925.GB726@empiric.icir.org> Message-ID: <20050214003253.M46708@alicia.nttmcl.com> References: <20050211125850.B9541@alicia.nttmcl.com> <20050212071925.GB726@empiric.icir.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@freebsd.org Subject: Re: Patch to set TCP_NOPUSH on libfetch HTTP connections 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, 14 Feb 2005 08:33:26 -0000 On Sat, 12 Feb 2005, Bruce M Simpson wrote: > On Fri, Feb 11, 2005 at 01:34:21PM -0800, Kelly Yancey wrote: >> Thus reducing the number of packets on the wire from 14 to 9. Obviously >> for larger transfers, the difference gets lost in the noise. Nonetheless, >> unless someone spots some undesireable side-effect that may be caused >> by the change, I'll commit the attached patch in a few days. > > Aren't there situations where the write-path should be kept open e.g. > in HTTP/1.1 ? > That fetch uses? No. Kelly From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 08:37:17 2005 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 1AB8D16A4CE; Mon, 14 Feb 2005 08:37:17 +0000 (GMT) Received: from mallaury.noc.nerim.net (smtp-101-monday.noc.nerim.net [62.4.17.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEFED43D31; Mon, 14 Feb 2005 08:37:16 +0000 (GMT) (envelope-from e-masson@kisoft-services.com) Received: from srvbsdnanssv.interne.kisoft-services.com (kisoft.net1.nerim.net [62.212.107.51]) by mallaury.noc.nerim.net (Postfix) with ESMTP id CA6AC62DB6; Mon, 14 Feb 2005 09:37:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1])BCA74C2CB; Mon, 14 Feb 2005 09:37:13 +0100 (CET) Received: from srvbsdnanssv.interne.kisoft-services.com ([127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01574-02; Mon, 14 Feb 2005 09:37:07 +0100 (CET) Received: by srvbsdnanssv.interne.kisoft-services.com (Postfix, from userid 1001) id 457DBC2BA; Mon, 14 Feb 2005 09:37:07 +0100 (CET) To: Ruslan Ermilov From: Eric Masson In-Reply-To: <20050214080414.GA32376@ip.net.ua> (Ruslan Ermilov's message of "Mon, 14 Feb 2005 10:04:14 +0200") References: <86is4xj3q5.fsf@srvbsdnanssv.interne.kisoft-services.com> <20050214080414.GA32376@ip.net.ua> X-Operating-System: FreeBSD 5.3-STABLE i386 Date: Mon, 14 Feb 2005 09:37:06 +0100 Message-ID: <863bvzleq5.fsf@srvbsdnanssv.interne.kisoft-services.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at interne.kisoft-services.com cc: net@FreeBSD.org Subject: Re: xl(4) & polling 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, 14 Feb 2005 08:37:17 -0000 >>>>> "Ruslan" == Ruslan Ermilov writes: Hi Ruslan, Ruslan> Do you want to donate a card? I have only one left, but can order another one and get it shipped to you. Éric Masson -- un mec qui n'a pas d'emoluments de la part d'Aple qui gagne son argent de poche en crayonant des bouts de films animes et qui en plus donne les clefs de la boutique a tout le monde c'est pas normal ! -+- VN in Guide du Macounet Pervers : De Son Intérimerie Steve Jobs -+- From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 08:41:54 2005 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 015A316A4EA for ; Mon, 14 Feb 2005 08:41:54 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28F8F43D3F for ; Mon, 14 Feb 2005 08:41:53 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1E8fqRg074738; Mon, 14 Feb 2005 10:41:52 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 23443-12; Mon, 14 Feb 2005 10:41:51 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1E8fpcE074734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Feb 2005 10:41:51 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j1E8ftgu036236; Mon, 14 Feb 2005 10:41:55 +0200 (EET) (envelope-from ru) Date: Mon, 14 Feb 2005 10:41:55 +0200 From: Ruslan Ermilov To: Eric Masson Message-ID: <20050214084155.GA36200@ip.net.ua> References: <86is4xj3q5.fsf@srvbsdnanssv.interne.kisoft-services.com> <20050214080414.GA32376@ip.net.ua> <863bvzleq5.fsf@srvbsdnanssv.interne.kisoft-services.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <863bvzleq5.fsf@srvbsdnanssv.interne.kisoft-services.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: net@FreeBSD.org Subject: Re: xl(4) & polling 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, 14 Feb 2005 08:41:54 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Eric, On Mon, Feb 14, 2005 at 09:37:06AM +0100, Eric Masson wrote: > Ruslan> Do you want to donate a card? >=20 > I have only one left, but can order another one and get it shipped to > you. >=20 Sure. Please let me know when you're ready to ship, and I will send you my postal address off list. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCEGRTqRfpzJluFF4RAvC4AKCeasiSUoy5KDnuqtg0ctUfpm/HZwCgiPdp QTBpfdkZqxZQ5JtU+G+C+S0= =UZ1s -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 09:44:25 2005 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 450B016A4CE for ; Mon, 14 Feb 2005 09:44:25 +0000 (GMT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5CE943D1F for ; Mon, 14 Feb 2005 09:44:24 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix3-2.free.fr (Postfix) with ESMTP id 7659FC0CF; Mon, 14 Feb 2005 10:44:22 +0100 (CET) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id D7498407C; Mon, 14 Feb 2005 10:43:53 +0100 (CET) Date: Mon, 14 Feb 2005 10:43:53 +0100 From: Jeremie Le Hen To: David Gilbert Message-ID: <20050214094353.GX82324@obiwan.tataz.chchile.org> References: <16911.51264.86063.604597@canoe.dclg.ca> <200502140157.36085.max@love2party.net> <16912.11613.216501.589279@canoe.dclg.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16912.11613.216501.589279@canoe.dclg.ca> User-Agent: Mutt/1.5.7i cc: freebsd-net@freebsd.org Subject: Re: altq for vlans? 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, 14 Feb 2005 09:44:25 -0000 > Anyways, the _real_ problem is that traditionally, I'd used firewall > rules for accounting as well as security. To that end, labels are > very cool. However, they have one rather large defect: > > If you're dealing with keep state rules, there seems to be no obvious > way to account for incoming vs. outgoing traffic. The label only > reports total traffic for the state matching the rule... which is both > in and out. This is a workaround, but I found that ipfw's count rules are pretty useful for this purpose. This would however add processing overhead for each packet especially using gigabit Ethernet. Regards, -- Jeremie Le Hen jeremie at le-hen dot org From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 11:01:54 2005 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 163FA16A4D1 for ; Mon, 14 Feb 2005 11:01:54 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB3F043D2F for ; Mon, 14 Feb 2005 11:01:53 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1EB1ril015152 for ; Mon, 14 Feb 2005 11:01:53 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1EB1r7B015146 for freebsd-net@freebsd.org; Mon, 14 Feb 2005 11:01:53 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 14 Feb 2005 11:01:53 GMT Message-Id: <200502141101.j1EB1r7B015146@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, 14 Feb 2005 11:01:54 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/11] kern/54383 net [nfs] [patch] NFS root configurations wit 1 problem total. From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 13:26:09 2005 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 7FAB616A4CE for ; Mon, 14 Feb 2005 13:26:09 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB3C443D46 for ; Mon, 14 Feb 2005 13:26:06 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D0gEm-0001J6-00; Mon, 14 Feb 2005 14:26:04 +0100 Received: from [84.128.141.74] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1D0gEl-0006rZ-00; Mon, 14 Feb 2005 14:26:03 +0100 From: Max Laier To: freebsd-net@freebsd.org Date: Mon, 14 Feb 2005 14:25:53 +0100 User-Agent: KMail/1.7.2 References: <16911.51264.86063.604597@canoe.dclg.ca> <16912.11613.216501.589279@canoe.dclg.ca> <20050214094353.GX82324@obiwan.tataz.chchile.org> In-Reply-To: <20050214094353.GX82324@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1483631.nVka8C0Pax"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502141426.01067.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: Jeremie Le Hen cc: David Gilbert Subject: Re: altq for vlans? 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, 14 Feb 2005 13:26:09 -0000 --nextPart1483631.nVka8C0Pax Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 14 February 2005 10:43, Jeremie Le Hen wrote: > > Anyways, the _real_ problem is that traditionally, I'd used firewall > > rules for accounting as well as security. To that end, labels are > > very cool. However, they have one rather large defect: > > > > If you're dealing with keep state rules, there seems to be no obvious > > way to account for incoming vs. outgoing traffic. The label only > > reports total traffic for the state matching the rule... which is both > > in and out. > > This is a workaround, but I found that ipfw's count rules are pretty > useful for this purpose. This would however add processing overhead > for each packet especially using gigabit Ethernet. Did you try to use tables? I think it's one of the best tools for easy=20 accounting. $pfctl -vvT show -t test 192.168.0.1 Cleared: Mon Feb 14 14:19:39 2005 In/Block: [ Packets: 0 Bytes: 0 = ] In/Pass: [ Packets: 2 Bytes: 168 = ] Out/Block: [ Packets: 0 Bytes: 0 = ] Out/Pass: [ Packets: 2 Bytes: 168 = ] It does count everything on stateful rules and it's easy to monitor subnets= =20 and whatnot. See the various manual pages and the OpenBSD FAQ for more abo= ut=20 tables. You might also want to have a look at pfflowd from ports, which is= =20 able to translate pfsync messages into flows for accounting purposes. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1483631.nVka8C0Pax Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCEKboXyyEoT62BG0RAtWoAJ9OJNvv7B51jcdZrY2glS8OHsuQmACfQ1EL TOOcX6N2znncsgg5GpXdKII= =Ecbd -----END PGP SIGNATURE----- --nextPart1483631.nVka8C0Pax-- From owner-freebsd-net@FreeBSD.ORG Mon Feb 14 14:12:08 2005 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 4E85E16A4CF for ; Mon, 14 Feb 2005 14:12:08 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDFDE43D58 for ; Mon, 14 Feb 2005 14:12:07 +0000 (GMT) (envelope-from jsimola@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so1811034wri for ; Mon, 14 Feb 2005 06:12:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=aOfgMJW8dc26XZpr9NMZ2pDWIR/nh142M65RbYmGJJoPSpsYJf9cJiDVCLqYahmd3LPx/QrzLZqkWleBvcXx2wZhqMZCg4k/Z2ruFBRLNAKsWkj+J6YfDWCOwfyOmg6q8BonfcydaBvuSGuUCOz4+kPIRiGoAvzQfZwd0uL9p1U= Received: by 10.54.42.49 with SMTP id p49mr186208wrp; Mon, 14 Feb 2005 06:12:06 -0800 (PST) Received: by 10.54.39.34 with HTTP; Mon, 14 Feb 2005 06:12:06 -0800 (PST) Message-ID: <8eea040805021406124e553101@mail.gmail.com> Date: Mon, 14 Feb 2005 06:12:06 -0800 From: Jon Simola To: David Gilbert In-Reply-To: <16912.11613.216501.589279@canoe.dclg.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <16911.51264.86063.604597@canoe.dclg.ca> <200502140157.36085.max@love2party.net> <16912.11613.216501.589279@canoe.dclg.ca> cc: freebsd-net@freebsd.org Subject: Re: altq for vlans? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jon@abccomm.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 14:12:08 -0000 > > On Sunday 13 February 2005 22:36, David Gilbert wrote: > >> Has anyone considered patching the vlan driver to support altq? I > >> gather that since tun works, so should vlan. > > Well... the issue is several fold. Firstly, the router in question is > talking in trunk mode to a switch which in turn hands out ports to end > user boxes. So the "real" interface could be queue limited, but in > general, it can be assumed that the GigE interface is faster than the > sum of the traffic coming into it. > > Now... you seem to be saying that if the queue is attached to (in this > case) em0, and vlan10 goes through em0, that traffic will be subject > to the queue ... even though it's been tagged ... and from the > perspective of em0 is no longer IP traffic. > > This is certainly not obvious, if it is the case. > > But from a vlan-as-virtual-circuit-replacement standpoint, it makes > sense to note a vlan as a queue entity. I went through exactly this. I wrote my own patch for if_vlan.c that allowed ALTQ queueing on a vlan interface. I used that patch and ran hundreds of GBs of live customer data a week through the router with those patches. I never saw any problems. Then again, I never managed to figure out queuing on the vlan parent interface either. Both worked as far as I could tell, but I've gone to > Anyways, the _real_ problem is that traditionally, I'd used firewall > rules for accounting as well as security. I've used several varieties of firewall rules to count traffic (count rules, ipfw pipes) and I've switched over to a custom program that sniffs packets via libpcap off the vlan parent, and counts them. It's not fancy, but it does have some certain advantages (like passive MAC address sniffing, which I find quite handy dealing with some of the more "adventurous" clients). From owner-freebsd-net@FreeBSD.ORG Tue Feb 15 04:31:32 2005 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 A7C3E16A4CE for ; Tue, 15 Feb 2005 04:31:32 +0000 (GMT) Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8068B43D46 for ; Tue, 15 Feb 2005 04:31:32 +0000 (GMT) (envelope-from mallman@icir.org) Received: from guns.icir.org (adsl-68-76-113-50.dsl.bcvloh.ameritech.net [68.76.113.50]) by wyvern.icir.org (8.12.9p1/8.12.8) with ESMTP id j1F4VQTa089863; Mon, 14 Feb 2005 20:31:27 -0800 (PST) (envelope-from mallman@icir.org) Received: from lawyers.icir.org (guns.icir.org [68.76.113.50]) by guns.icir.org (Postfix) with ESMTP id 8FA3A77A349; Mon, 14 Feb 2005 23:31:24 -0500 (EST) Received: from lawyers.icir.org (localhost [127.0.0.1]) by lawyers.icir.org (Postfix) with ESMTP id A8907241AE3; Mon, 14 Feb 2005 23:31:25 -0500 (EST) To: Sam Jansen From: Mark Allman In-Reply-To: <420BCEF7.1080603@meta.net.nz> Organization: ICSI Center for Internet Research (ICIR) Song-of-the-Day: Thunderstruck MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Date: Mon, 14 Feb 2005 23:31:25 -0500 Sender: mallman@icir.org Message-Id: <20050215043125.A8907241AE3@lawyers.icir.org> cc: freebsd-net@freebsd.org Subject: Re: SACK problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mallman@icir.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 04:31:32 -0000 --=-=-= Content-Type: text/plain > During some testing on an isolated network we have, I found some > interesting behaviour from a FreeBSD 5.3 host using TCP SACK. > > I've detailed this problem fully at: > > http://www.wand.net.nz/~stj2/nsc/emu_freebsd.html > > PCAP traces and some screenshots from tcptrace graphs can be found > at the above link to show what is happening. It looks to me like > SACK blocks are being incorrectly generated in this example. I can't > think of any valid reason why a SACK block would SACK from below the > current ACK value to above it (which is the problem here). > > Thoughts, anyone? Am I just wrong here and this is valid, expected > behaviour? RFC2883 offers a case when this would happen --- in the reporting of "duplicate SACKs". I.e., the DSACK extension reports segments that have arrived more than once. I don't suppose this is the problem (since it's freebsd everywhere, right?). But, while folks are messing about in the SACK code this RFC might be something to think about including. allman -- Mark Allman -- ICIR -- http://www.icir.org/mallman/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCEXsdWyrrWs4yIs4RAj4iAJ9fkHmvFCw09AjbI1YN0UGv7xuYMQCfW3y3 gSuIcjNfO506s99weZriBv4= =Wjr3 -----END PGP SIGNATURE----- --=-=-=-- From owner-freebsd-net@FreeBSD.ORG Tue Feb 15 20:59:23 2005 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 61FC216A4CE for ; Tue, 15 Feb 2005 20:59:23 +0000 (GMT) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E32643D41 for ; Tue, 15 Feb 2005 20:59:10 +0000 (GMT) (envelope-from hydros@mail.ru) Received: from [217.118.66.254] (port=11099 helo=turtle) by mx2.mail.ru with esmtp id 1D19mj-0006ZG-00 for freebsd-net@FreeBSD.org; Tue, 15 Feb 2005 23:59:06 +0300 Date: Tue, 15 Feb 2005 23:59:00 +0300 From: hydros X-Mailer: The Bat! (v3.0) Professional X-Priority: 3 (Normal) Message-ID: <91621437.20050215235900@mail.ru> To: freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: Not detected Subject: puzzled network scheme X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hydros List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 20:59:23 -0000 Hello All. Could anyone recommend me a solution of the following network problem: Here is a planned network map - Internet ISP - | | | | real ip address 213.x.x.x +-------------+ |FreeBSD 5.3 | | Box | Interface 1 +-------------+ Interface 2 (ethernet 100mbit) real ip address| | real ip address 194.x.x.x 194.x.x.x | | (ethernet | | 100mbit) | | | +Simple Ethernet switch +----------------A few boxes with a real ip | addresses 194.x.x.x | | | | | | | | +-----A few boxes with a private ip addresses 192.168.x.x The general question is how to combine the real IP addresses and the private on the same physical interface. I`m planning to use natd for my private addresses on the Interface 2 because the traffic billing (http://netams.com). I`d be very thankful for any help. -- Best regards, hydros mailto:hydros@mail.ru From owner-freebsd-net@FreeBSD.ORG Tue Feb 15 23:38:53 2005 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 DB33416A4E0; Tue, 15 Feb 2005 23:38:53 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A12BE43D58; Tue, 15 Feb 2005 23:38:52 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1FNcjsA044749; Wed, 16 Feb 2005 01:38:45 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 82604-11; Wed, 16 Feb 2005 01:38:44 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1FNciRU044746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Feb 2005 01:38:44 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j1FNcm5Z036566; Wed, 16 Feb 2005 01:38:48 +0200 (EET) (envelope-from ru) Date: Wed, 16 Feb 2005 01:38:42 +0200 From: Ruslan Ermilov To: Sam Leffler Message-ID: <20050215233842.GA24447@ip.net.ua> References: <200502140829.j1E8TgDs086634@repoman.freebsd.org> <4210D210.3080700@errno.com> <20050214181431.GA69635@ip.net.ua> <4210F849.8060005@errno.com> <20050214195558.GD69635@ip.net.ua> <421104C7.4070709@errno.com> <20050215074226.GA6781@ip.net.ua> <42123604.9070002@errno.com> <20050215183744.GA17554@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: <20050215183744.GA17554@ip.net.ua> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: Gleb Smirnoff cc: net@FreeBSD.org cc: Joerg Wunsch Subject: Re: cvs commit: src/sys/net if_ethersubr.c 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, 15 Feb 2005 23:38:54 -0000 --yEPQxsgoJgBvi8ip Content-Type: multipart/mixed; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [ Redirected to -net ] On Tue, Feb 15, 2005 at 08:37:44PM +0200, Ruslan Ermilov wrote: > On Tue, Feb 15, 2005 at 09:48:52AM -0800, Sam Leffler wrote: [...] > > As to your other suggestion of allocating an mbuf flag bit that'd be=20 > > fine with me. I didn't offer that because I thought we were out of fre= e=20 > > bits but I see m_flags got changed to an int a while back and only=20 > > 16-bits are assigned. > >=20 > OK, I'll post the patches soon then. >=20 The patch is attached. It's rather small, and it has been tested on the IFCAP_VLAN_HWTAGGING hardware. It should now be faster than ever. The first argument to VLAN_OUTPUT_TAG() is now unused, but I don't think it would be a good idea (though I'm not opposed to it either) to trim it. I also embellished a fix in rev. 1.174 of if_ethersubr.c -- it now properly checks for mbufs with VLAN tags, making it possible to bridge(4) on vlan(4)'s whose parent interfaces support VLAN decapsulation in hardware. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=p Content-Transfer-Encoding: quoted-printable Index: sys/mbuf.h =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/sys/mbuf.h,v retrieving revision 1.165 diff -u -p -r1.165 mbuf.h --- sys/mbuf.h 10 Feb 2005 22:23:02 -0000 1.165 +++ sys/mbuf.h 15 Feb 2005 22:00:02 -0000 @@ -178,6 +178,7 @@ struct mbuf { #define M_FRAG 0x0800 /* packet is a fragment of a larger packet */ #define M_FIRSTFRAG 0x1000 /* packet is first fragment */ #define M_LASTFRAG 0x2000 /* packet is last fragment */ +#define M_VLANTAG 0x10000 /* packet has VLAN tag attached */ =20 /* * External buffer types: identify ext_buf type. @@ -195,7 +196,8 @@ struct mbuf { */ #define M_COPYFLAGS (M_PKTHDR|M_EOR|M_RDONLY|M_PROTO1|M_PROTO1|M_PROTO2|\ M_PROTO3|M_PROTO4|M_PROTO5|M_SKIP_FIREWALL|\ - M_BCAST|M_MCAST|M_FRAG|M_FIRSTFRAG|M_LASTFRAG) + M_BCAST|M_MCAST|M_FRAG|M_FIRSTFRAG|M_LASTFRAG|\ + M_VLANTAG) =20 /* * Flags indicating hw checksum support and sw checksum requirements. Index: net/if_ethersubr.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_ethersubr.c,v retrieving revision 1.184 diff -u -p -r1.184 if_ethersubr.c --- net/if_ethersubr.c 14 Feb 2005 11:58:54 -0000 1.184 +++ net/if_ethersubr.c 15 Feb 2005 23:16:13 -0000 @@ -604,7 +604,8 @@ ether_demux(struct ifnet *ifp, struct mb #endif =20 if (!(BDG_ACTIVE(ifp)) && - !(ether_type =3D=3D ETHERTYPE_VLAN && ifp->if_nvlans > 0)) { + !((ether_type =3D=3D ETHERTYPE_VLAN || m->m_flags & M_VLANTAG) && + ifp->if_nvlans > 0)) { /* * Discard packet if upper layers shouldn't see it because it * was unicast to a different Ethernet address. If the driver @@ -618,7 +619,7 @@ ether_demux(struct ifnet *ifp, struct mb * it's undesired. */ if ((ifp->if_flags & IFF_PROMISC) !=3D 0 - && (eh->ether_dhost[0] & 1) =3D=3D 0 + && !ETHER_IS_MULTICAST(eh->ether_dhost) && bcmp(eh->ether_dhost, IFP2AC(ifp)->ac_enaddr, ETHER_ADDR_LEN) !=3D 0 && (ifp->if_flags & IFF_PPROMISC) =3D=3D 0) { @@ -657,8 +658,7 @@ post_stats: * Check to see if the device performed the VLAN decapsulation and * provided us with the tag. */ - if (m_tag_first(m) !=3D NULL && - m_tag_locate(m, MTAG_VLAN, MTAG_VLAN_TAG, NULL) !=3D NULL) { + if (m->m_flags & M_VLANTAG) { /* * If no VLANs are configured, drop. */ Index: net/if_vlan_var.h =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_vlan_var.h,v retrieving revision 1.20 diff -u -p -r1.20 if_vlan_var.h --- net/if_vlan_var.h 7 Jan 2005 01:45:34 -0000 1.20 +++ net/if_vlan_var.h 15 Feb 2005 21:57:31 -0000 @@ -80,8 +80,8 @@ struct vlanreq { * * to mark the packet m with the specified VLAN tag. The last * parameter provides code to execute in case of an error. On - * output the driver should check ifnet to see if any VLANs are - * in use and only then check for a packet tag; this is done with: + * output the driver should check mbuf to see if a VLAN tag is + * present and only then check for a tag; this is done with: * * struct m_tag *mtag; * mtag =3D VLAN_OUTPUT_TAG(ifp, m); @@ -107,10 +107,11 @@ struct vlanreq { } \ *(u_int *)(mtag+1) =3D (_t); \ m_tag_prepend((_m), mtag); \ + (_m)->m_flags |=3D M_VLANTAG; \ } while (0) =20 #define VLAN_OUTPUT_TAG(_ifp, _m) \ - ((_ifp)->if_nvlans !=3D 0 ? \ + ((_m)->m_flags & M_VLANTAG ? \ m_tag_locate((_m), MTAG_VLAN, MTAG_VLAN_TAG, NULL) : NULL) #define VLAN_TAG_VALUE(_mt) (*(u_int *)((_mt)+1)) #endif /* _KERNEL */ --dDRMvlgZJXvWKvBx-- --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCEogCqRfpzJluFF4RAnnKAJwLRdZD59Ml8XxqSLGG2zA0JQuhXQCfd/XX c/cwUJCTt2r/HqETXiLp0oU= =DJg7 -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip-- From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 05:48:31 2005 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 0621F16A4CE for ; Wed, 16 Feb 2005 05:48:31 +0000 (GMT) Received: from mailhost.schluting.com (schluting.com [131.252.214.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id C89D243D39 for ; Wed, 16 Feb 2005 05:48:30 +0000 (GMT) (envelope-from charlie@schluting.com) Received: from localhost (localhost [127.0.0.1]) by mailhost.schluting.com (Postfix) with ESMTP id 775E621D9 for ; Tue, 15 Feb 2005 21:48:30 -0800 (PST) Received: from mailhost.schluting.com ([127.0.0.1]) by localhost (schluting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 93832-02 for ; Tue, 15 Feb 2005 21:48:26 -0800 (PST) Received: from [10.1.0.69] (c-24-20-163-50.client.comcast.net [24.20.163.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhost.schluting.com (Postfix) with ESMTP id 03FD821E1 for ; Tue, 15 Feb 2005 21:48:25 -0800 (PST) Message-ID: <4212DEA9.9010305@schluting.com> Date: Tue, 15 Feb 2005 21:48:25 -0800 From: Charlie Schluting User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@FreeBSD.org References: <91621437.20050215235900@mail.ru> In-Reply-To: <91621437.20050215235900@mail.ru> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by your mom at schluting.com Subject: Re: puzzled network scheme 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, 16 Feb 2005 05:48:31 -0000 hydros wrote: > The general question is how to combine the real IP addresses > and the private on the same physical interface. Well, if you have a switch capable of vlans (and 802.1q trunks) you can just run a trunk to the firewall, and have many interfaces. My setup has one real IP, and 5 internal IPs, each associated with a different vlan. In your diagram, you can do it.. but it won't be pretty. i.e. just assign an alias (secondary IP) to the internal interface. Of course, both ranges are in the same broadcast domain.. -Charlie From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 09:47:22 2005 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 14F2116A4CE for ; Wed, 16 Feb 2005 09:47:22 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81D3943D3F for ; Wed, 16 Feb 2005 09:47:21 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so64201rng for ; Wed, 16 Feb 2005 01:47:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=WVRZ1XgxDOeihrjKTwwiTfE+LCXwvyz2Rlkqzb8wDQRUuteGqih07MJlMXEj98Fb3bfZ94IXeguSj+LkfOTDf+ttVeq/5kLijqcsdhnI6nwlYcKyzu4dWc9m8nV/C7PJ9L65br53T9BJALav5RUqmVgvMzwkimifqh0hSeXW0Nw= Received: by 10.38.6.79 with SMTP id 79mr2479rnf; Wed, 16 Feb 2005 01:47:20 -0800 (PST) Received: by 10.38.102.32 with HTTP; Wed, 16 Feb 2005 01:47:20 -0800 (PST) Message-ID: <96b30c4005021601471c058d0f@mail.gmail.com> Date: Wed, 16 Feb 2005 10:47:20 +0100 From: Juan Rodriguez To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: FreeBSD 5.3 hangs on high network load X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juan Rodriguez List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 09:47:22 -0000 Hello everyone, Just for your information (because I guess there's nothing else we can do....), I will describe the setup I've got in case anyone would like to reproduce the problem and try to fix it. I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is ASUS SPv97 (or something like that) I've disabled ACPI and I boot on safe mode, but my computer still gets stalled (tho it doesn't show any panic nor any other output) after a few minutes running what I will describe below. I've got another computer running Windows98, I run eMule on this computer and the sharing folders are located on the FreeBSD machine, so I use samba to log on Windows and to access the appropiate folders. After a few minutes running samba with high network load between these machines, my FreeBSD box hangs up....strangely, the led of the switch that connects both machines continues blinking...but the FreeBSD box doesn't respond neither to the keyboard nor to pings probes. The network card is a cheap realteak (rl driver). I'd really like to see this problem fixed as soon as possible. Thanks! From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 12:00:44 2005 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 6B2C716A4CE for ; Wed, 16 Feb 2005 12:00:44 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31AFE43D2D for ; Wed, 16 Feb 2005 12:00:44 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id C31E546B43; Wed, 16 Feb 2005 07:00:43 -0500 (EST) Date: Wed, 16 Feb 2005 11:59:21 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Juan Rodriguez In-Reply-To: <96b30c4005021601471c058d0f@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5.3 hangs on high network load 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, 16 Feb 2005 12:00:44 -0000 On Wed, 16 Feb 2005, Juan Rodriguez wrote: > Just for your information (because I guess there's nothing else we can > do....), I will describe the setup I've got in case anyone would like to > reproduce the problem and try to fix it. > > I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of > RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is > ASUS SPv97 (or something like that) If possible, the first thing would be to try moving to the head of 5-STABLE to see if the bug has already been fixed there already or not. A significant number of interesting bugs have been fixed since the release of 5.3. If that doesn't correct the problem, the next thing to do is to take a look at the section of the handbook on reporting kernel panics and hangs. It would be quite interesting to know if the machine still responds to pings once it has appeared to hang. There have been reported problems with realtek network cards, it would probably be premature to blame the hardware at this point. Robert N M Watson From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 12:15:19 2005 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 575FA16A4CE for ; Wed, 16 Feb 2005 12:15:19 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1442F43D4C for ; Wed, 16 Feb 2005 12:15:19 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id 8A97746B8D for ; Wed, 16 Feb 2005 07:15:18 -0500 (EST) Date: Wed, 16 Feb 2005 12:13:56 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: net@FreeBSD.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: solisten() question: why do we check for completed connections? 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, 16 Feb 2005 12:15:19 -0000 uipc_syscalls.c:solisten() is responsible for transitioning a socket from a non-listening state to a listening state. It does this at two levels: directly at the socket level, and at the protocol level by calling into the protocol using pru_listen(). I'm currently working on fixing a race between the two layers, but ran into the following question: a code fragment exists in solisten() that checks whether any completed connections are present when the protocol returns to solisten(): if no completed connections are present, it flags the socket as SO_ACCEPTCONN. This fragment has existed in some form or another, as data structures changed, since revision 1.1 when the BSD code was imported into our current CVS repository. Stevens volII also makes fleeting reference to this logic. However, the implied semantics don't appear to be documented in the listen(2) man page. Does anyone have any information on why it is that we conditionally set SO_ACCEPTCONN base on the completed connection queue being empty? The race I'd like to fix is that it's possible for a TCP SYN to come in during the state transition to a listening socket, which causes the TCP code to panic as it doesn't expect a SYN packet to match a TCPS_LISTEN tcpcb if the socket isn't SO_ACCEPTCONN. This was presumably introduced as part of the SMPng work, where preemption and pallelism are now "more possible". The easiest fix here would be to push the socket state transition down a layer into the protocol code, such that the socket locking and tests are performed while holding the TCP state locks, causing the multi-layer test-and-set to become atomic (although presumably using a helper function in the socket library functions that support most protocols). This would also close other potential races between multiple consumers of the socket in multiple threads. However, it would be quite simplifying to drop the logic regarding SO_ACCEPTCONN if it's not actually necessary. Anyone know anything about this? Robert N M Watson From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 12:16:47 2005 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 7190416A4CE for ; Wed, 16 Feb 2005 12:16:47 +0000 (GMT) Received: from mxsf37.cluster1.charter.net (mxsf37.cluster1.charter.net [209.225.28.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B0C743D53 for ; Wed, 16 Feb 2005 12:16:47 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip10.cluster1.charter.net (mxip10a.cluster1.charter.net [209.225.28.140])j1GCGk6F008405 for ; Wed, 16 Feb 2005 07:16:46 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip10.cluster1.charter.net with ESMTP; 16 Feb 2005 07:16:45 -0500 X-Ironport-AV: i="3.90,88,1107752400"; d="scan'208"; a="603483219:sNHT27022254" Date: Wed, 16 Feb 2005 07:16:46 -0500 (EST) From: c0ldbyte To: freebsd-net@freebsd.org In-Reply-To: Message-ID: <20050216071101.D764@eleanor.us1.wmi.uvac.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: FreeBSD 5.3 hangs on high network load 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, 16 Feb 2005 12:16:47 -0000 On Wed, 16 Feb 2005, Robert Watson wrote: > > On Wed, 16 Feb 2005, Juan Rodriguez wrote: > >> Just for your information (because I guess there's nothing else we can >> do....), I will describe the setup I've got in case anyone would like to >> reproduce the problem and try to fix it. >> >> I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of >> RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is >> ASUS SPv97 (or something like that) > > If possible, the first thing would be to try moving to the head of > 5-STABLE to see if the bug has already been fixed there already or not. A > significant number of interesting bugs have been fixed since the release > of 5.3. If that doesn't correct the problem, the next thing to do is to > take a look at the section of the handbook on reporting kernel panics and > hangs. It would be quite interesting to know if the machine still > responds to pings once it has appeared to hang. There have been reported > problems with realtek network cards, it would probably be premature to > blame the hardware at this point. > If im correct ive allready heard of this issue being solved. And should allready be patched in. Checkout the latest RELENG_5_3 and build your kernel over again and run that for a while "FreeBSD 5.3-RELEASE-p5" otherwise try a different version of 'samba*' or see if there are some tweaks in the 'LINT' for the card itself. Im not quite sure why you would run in safe mode but whatever trips your trigger. 'mount_smbfs' instead of running 'samba' itself might also help you out a bit. Best regards -- c0ldbyte From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 12:18:29 2005 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 5972616A4CE; Wed, 16 Feb 2005 12:18:29 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2C8C43D3F; Wed, 16 Feb 2005 12:18:28 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D1O8R-0003Bd-00; Wed, 16 Feb 2005 13:18:27 +0100 Received: from [217.227.158.206] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1D1O8R-0006Xe-00; Wed, 16 Feb 2005 13:18:27 +0100 From: Max Laier To: freebsd-net@freebsd.org Date: Wed, 16 Feb 2005 13:18:07 +0100 User-Agent: KMail/1.7.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2692634.yrkSgt8Y39"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502161318.24333.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: Juan Rodriguez cc: Robert Watson Subject: Re: FreeBSD 5.3 hangs on high network load 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, 16 Feb 2005 12:18:29 -0000 --nextPart2692634.yrkSgt8Y39 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 16 February 2005 12:59, Robert Watson wrote: > On Wed, 16 Feb 2005, Juan Rodriguez wrote: > > Just for your information (because I guess there's nothing else we can > > do....), I will describe the setup I've got in case anyone would like to > > reproduce the problem and try to fix it. > > > > I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of > > RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is > > ASUS SPv97 (or something like that) > > If possible, the first thing would be to try moving to the head of > 5-STABLE to see if the bug has already been fixed there already or not. A > significant number of interesting bugs have been fixed since the release > of 5.3. If that doesn't correct the problem, the next thing to do is to > take a look at the section of the handbook on reporting kernel panics and > hangs. It would be quite interesting to know if the machine still > responds to pings once it has appeared to hang. There have been reported > problems with realtek network cards, it would probably be premature to > blame the hardware at this point. Still, in case moving to RELENG_5 does not help, you could try the patch in= =20 kern/61448 that addresses one of the rl(4) issues and is pending for to be= =20 MFCed. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2692634.yrkSgt8Y39 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCEzoQXyyEoT62BG0RAtu3AJ9CKtGW0+48zH62gVJarUY2XFbEnwCeJ3V1 SoYLnQmvtjWcFsmKr5cz27w= =K9zf -----END PGP SIGNATURE----- --nextPart2692634.yrkSgt8Y39-- From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 12:53:02 2005 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 C50D716A4CE for ; Wed, 16 Feb 2005 12:53:02 +0000 (GMT) Received: from hotmail.com (bay21-f28.bay21.hotmail.com [65.54.233.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 995CE43D54 for ; Wed, 16 Feb 2005 12:53:02 +0000 (GMT) (envelope-from haas_hugo@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 16 Feb 2005 04:52:01 -0800 Message-ID: Received: from 200.228.143.148 by by21fd.bay21.hotmail.msn.com with HTTP; Wed, 16 Feb 2005 12:51:59 GMT X-Originating-IP: [200.228.143.148] X-Originating-Email: [haas_hugo@hotmail.com] X-Sender: haas_hugo@hotmail.com From: "Hugo Leonardo Haas" To: freebsd-net@freebsd.org Date: Wed, 16 Feb 2005 09:51:59 -0300 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Feb 2005 12:52:01.0491 (UTC) FILETIME=[4EE59A30:01C51426] Subject: Ftp with natd is slow 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, 16 Feb 2005 12:53:02 -0000 Hi, I install the Natd in may Internet gateway to access Internet and the Internet access my ftp server into my network. I do the steps at the http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html It functioned, but with out performance. To information: In my internal network the FTP functioned perfectly (is a Linux Enterprise WS Server). My file /etc/natd.conf is: -redirect_port tcp 192.168.1.1:20 20 -redirect_port tcp 192.168.1.1:21 21 My inicialization command is: /sbin/natd -s -interface xl0 -config /etc/natd.conf My ipfw configuration file is: /sbin/ipfw add 0001 divert 8668 all from 192.168.1.0/24 to any via xl0 out /sbin/ipfw add 0002 divert 8668 all from any to 200.x.x.x via xl0 in Any body was correct this problem, please help me. _________________________________________________________________ MSN Messenger: instale grátis e converse com seus amigos. http://messenger.msn.com.br From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 15:11:53 2005 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 8FE4916A4CE for ; Wed, 16 Feb 2005 15:11:53 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 174C843D2F for ; Wed, 16 Feb 2005 15:11:53 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so111260rng for ; Wed, 16 Feb 2005 07:11:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=gLFjja75JGHUQxlj+8OrwymKARoDbzQSmOlEXEK8KUn1BxBsmSgrEbb0Fi52Do4+yW5bp+eyIT07GLYmffnEUzvGtHlnEtZ0152ymQzwJutXmiKHLut6fU4Bpyo0cywa5ibACfLqw4UUS7DVzjwhNm5SAIh6CwyRPHhquDpE98M= Received: by 10.38.152.38 with SMTP id z38mr33667rnd; Wed, 16 Feb 2005 07:11:52 -0800 (PST) Received: by 10.38.102.32 with HTTP; Wed, 16 Feb 2005 07:11:52 -0800 (PST) Message-ID: <96b30c4005021607117ec44df7@mail.gmail.com> Date: Wed, 16 Feb 2005 16:11:52 +0100 From: Juan Rodriguez To: c0ldbyte In-Reply-To: <20050216071101.D764@eleanor.us1.wmi.uvac.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050216071101.D764@eleanor.us1.wmi.uvac.net> cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5.3 hangs on high network load X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juan Rodriguez List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 15:11:53 -0000 Hello again, I've cvsup'ed the kernel sources a few hours ago (RELENG_5), and I've recompiled. Now I cannot boot, it gives me "kernel panic" when booting on "rlphy0"....this is really very annoying. I'm at work now, I cannot give you more details...it took me 4 hours to recompile the kernel, so Im not willing to do this again, if you are really interested in debugging, I will need your collaboration, I can give you an account on my system if you want to. thanks On Wed, 16 Feb 2005 07:16:46 -0500 (EST), c0ldbyte wrote: > On Wed, 16 Feb 2005, Robert Watson wrote: > > > > > On Wed, 16 Feb 2005, Juan Rodriguez wrote: > > > >> Just for your information (because I guess there's nothing else we can > >> do....), I will describe the setup I've got in case anyone would like to > >> reproduce the problem and try to fix it. > >> > >> I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of > >> RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is > >> ASUS SPv97 (or something like that) > > > > If possible, the first thing would be to try moving to the head of > > 5-STABLE to see if the bug has already been fixed there already or not. A > > significant number of interesting bugs have been fixed since the release > > of 5.3. If that doesn't correct the problem, the next thing to do is to > > take a look at the section of the handbook on reporting kernel panics and > > hangs. It would be quite interesting to know if the machine still > > responds to pings once it has appeared to hang. There have been reported > > problems with realtek network cards, it would probably be premature to > > blame the hardware at this point. > > > > If im correct ive allready heard of this issue being solved. And should > allready be patched in. Checkout the latest RELENG_5_3 and build your > kernel over again and run that for a while "FreeBSD 5.3-RELEASE-p5" > otherwise try a different version of 'samba*' or see if there are some > tweaks in the 'LINT' for the card itself. Im not quite sure why you would > run in safe mode but whatever trips your trigger. 'mount_smbfs' instead > of running 'samba' itself might also help you out a bit. > > Best regards > -- c0ldbyte > _______________________________________________ > 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 Feb 16 15:16:03 2005 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 D1BDE16A4CE for ; Wed, 16 Feb 2005 15:16:03 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CC5A43D3F for ; Wed, 16 Feb 2005 15:16:03 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so112076rng for ; Wed, 16 Feb 2005 07:16:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=I2KAdCu2AIgQ+eArOchH5Vl70C95yQeV3Yy9woI0UodRih4Rv6tu4mZftRxohSbVk8BftHMO/Lk/77unt+68whVJnL1lWnVDF8QCzVXywo7VDFMV4w3QnwlE7Wbt2EAzCa2uGNLyJN4dunoDhGQAD8ULfd15/ckIQHHvoIlH0Cs= Received: by 10.38.72.37 with SMTP id u37mr46437rna; Wed, 16 Feb 2005 07:16:02 -0800 (PST) Received: by 10.38.102.32 with HTTP; Wed, 16 Feb 2005 07:16:02 -0800 (PST) Message-ID: <96b30c4005021607162581e94@mail.gmail.com> Date: Wed, 16 Feb 2005 16:16:02 +0100 From: Juan Rodriguez To: Robert Watson , freebsd-net@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <96b30c4005021601471c058d0f@mail.gmail.com> Subject: Re: FreeBSD 5.3 hangs on high network load X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juan Rodriguez List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 15:16:03 -0000 On Wed, 16 Feb 2005 11:59:21 +0000 (GMT), Robert Watson wrote: > > On Wed, 16 Feb 2005, Juan Rodriguez wrote: > > > Just for your information (because I guess there's nothing else we can > > do....), I will describe the setup I've got in case anyone would like to > > reproduce the problem and try to fix it. > > > > I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of > > RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is > > ASUS SPv97 (or something like that) > > If possible, the first thing would be to try moving to the head of > 5-STABLE to see if the bug has already been fixed there already or not. A > significant number of interesting bugs have been fixed since the release > of 5.3. If that doesn't correct the problem, the next thing to do is to > take a look at the section of the handbook on reporting kernel panics and > hangs. It would be quite interesting to know if the machine still > responds to pings once it has appeared to hang. Hi. As I was telling on my first email, the machine doesn't respond to pings. Bye and thanks! >There have been reported > problems with realtek network cards, it would probably be premature to > blame the hardware at this point. > > Robert N M Watson > > From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 16:27:23 2005 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 6F38C16A4CE for ; Wed, 16 Feb 2005 16:27:23 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5742643D45 for ; Wed, 16 Feb 2005 16:27:22 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so127066rng for ; Wed, 16 Feb 2005 08:27:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=dTc42tMy+uYwfGQhnAkerDWA4pSNjntZBl44kj0RqA34vQdlmAzLnSuKKIZgjYD5vhZeepUSJSBq2Yzy+uAlCc5vD6jQS1bgDD2tf6PH+BnG4xR9+FV0+PudyHtxJNToTEE5wlgruOuUkUUJOAuctpfxU1SU4vY9c7kfNGwPuSI= Received: by 10.38.59.27 with SMTP id h27mr197928rna; Wed, 16 Feb 2005 08:27:19 -0800 (PST) Received: by 10.38.102.32 with HTTP; Wed, 16 Feb 2005 08:27:19 -0800 (PST) Message-ID: <96b30c4005021608277b1db92@mail.gmail.com> Date: Wed, 16 Feb 2005 17:27:19 +0100 From: Juan Rodriguez To: freebsd-net@freebsd.org In-Reply-To: <96b30c4005021607117ec44df7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050216071101.D764@eleanor.us1.wmi.uvac.net> <96b30c4005021607117ec44df7@mail.gmail.com> Subject: Re: FreeBSD 5.3 hangs on high network load X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juan Rodriguez List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 16:27:23 -0000 Hey, one quick question about this, should I cvsup either to RELENG_5_3 or to RELENG_5 ? I thought RELENG_5 was the right thing to do, but as Im experiencing problems, I will give RELENG_5_3 a try...I will tellyou if that works for me (more news about 4-5 hours later...:) bye On Wed, 16 Feb 2005 16:11:52 +0100, Juan Rodriguez wrote: > Hello again, > > I've cvsup'ed the kernel sources a few hours ago (RELENG_5), > and I've recompiled. > > Now I cannot boot, it gives me "kernel panic" when booting on > "rlphy0"....this is really very annoying. I'm at work now, > I cannot give you more details...it took me 4 hours to > recompile the kernel, so Im not willing to do this again, > if you are really interested in debugging, I will > need your collaboration, I can give you an account > on my system if you want to. > > thanks > > > On Wed, 16 Feb 2005 07:16:46 -0500 (EST), c0ldbyte > wrote: > > On Wed, 16 Feb 2005, Robert Watson wrote: > > > > > > > > On Wed, 16 Feb 2005, Juan Rodriguez wrote: > > > > > >> Just for your information (because I guess there's nothing else we can > > >> do....), I will describe the setup I've got in case anyone would like to > > >> reproduce the problem and try to fix it. > > >> > > >> I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of > > >> RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is > > >> ASUS SPv97 (or something like that) > > > > > > If possible, the first thing would be to try moving to the head of > > > 5-STABLE to see if the bug has already been fixed there already or not. A > > > significant number of interesting bugs have been fixed since the release > > > of 5.3. If that doesn't correct the problem, the next thing to do is to > > > take a look at the section of the handbook on reporting kernel panics and > > > hangs. It would be quite interesting to know if the machine still > > > responds to pings once it has appeared to hang. There have been reported > > > problems with realtek network cards, it would probably be premature to > > > blame the hardware at this point. > > > > > > > If im correct ive allready heard of this issue being solved. And should > > allready be patched in. Checkout the latest RELENG_5_3 and build your > > kernel over again and run that for a while "FreeBSD 5.3-RELEASE-p5" > > otherwise try a different version of 'samba*' or see if there are some > > tweaks in the 'LINT' for the card itself. Im not quite sure why you would > > run in safe mode but whatever trips your trigger. 'mount_smbfs' instead > > of running 'samba' itself might also help you out a bit. > > > > Best regards > > -- c0ldbyte > > _______________________________________________ > > 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 Feb 16 18:00:47 2005 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 2D65816A4CE for ; Wed, 16 Feb 2005 18:00:47 +0000 (GMT) Received: from mxsf14.cluster1.charter.net (mxsf14.cluster1.charter.net [209.225.28.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id B44C943D41 for ; Wed, 16 Feb 2005 18:00:46 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip09.cluster1.charter.net (mxip09a.cluster1.charter.net [209.225.28.139])j1GI0jng001298 for ; Wed, 16 Feb 2005 13:00:45 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip09.cluster1.charter.net with ESMTP; 16 Feb 2005 13:00:46 -0500 X-Ironport-AV: i="3.90,90,1107752400"; d="scan'208"; a="603125785:sNHT76834712" Date: Wed, 16 Feb 2005 13:00:45 -0500 (EST) From: c0ldbyte To: Juan Rodriguez In-Reply-To: <96b30c4005021608277b1db92@mail.gmail.com> Message-ID: <20050216125917.W21927@eleanor.us1.wmi.uvac.net> References: <96b30c4005021607117ec44df7@mail.gmail.com> <96b30c4005021608277b1db92@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5.3 hangs on high network load 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, 16 Feb 2005 18:00:47 -0000 On Wed, 16 Feb 2005, Juan Rodriguez wrote: > Hey, one quick question about this, > > should I cvsup either to RELENG_5_3 or to RELENG_5 ? > I thought RELENG_5 was the right thing to do, but > as Im experiencing problems, I will give RELENG_5_3 > a try...I will tellyou if that works for me (more news > about 4-5 hours later...:) > I would have to concur that you should try out RELENG_5_3 before you go to the RELENG_5 just to see if the problem is fixed. Good luck and best wishes. From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 19:54:56 2005 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 832FE16A4CE for ; Wed, 16 Feb 2005 19:54:56 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E09343D45 for ; Wed, 16 Feb 2005 19:54:56 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so168741rng for ; Wed, 16 Feb 2005 11:54:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=DZSMts7thn9bPp8+jAm93amQAiIngERZthjSMW9yVcQsMbX9pn2qINO+mRg01iXUWc68cj6MszuoFnmq19ITgqYFrSEt/U0B32E8YHq0VX4skZ5cC/wAscglv3vU03CgXfPruZgtXTBU5Qkz1xmuWmKzbLwDt1UVzEVTbIKnWe4= Received: by 10.38.102.39 with SMTP id z39mr142628rnb; Wed, 16 Feb 2005 11:54:53 -0800 (PST) Received: by 10.38.102.32 with HTTP; Wed, 16 Feb 2005 11:54:52 -0800 (PST) Message-ID: <96b30c4005021611546d123609@mail.gmail.com> Date: Wed, 16 Feb 2005 20:54:52 +0100 From: Juan Rodriguez To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [FIXED] FreeBSD 5.3 hangs up on high network load X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juan Rodriguez List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 19:54:56 -0000 Hey, I't seems my problem vanishes with FreeBSD-5.3-p5 Thanks a lot ! FreeBSD rules ! We all love the beastie ! Keep on doing a great job ! and...please never forget monoprocessor systems! :P From owner-freebsd-net@FreeBSD.ORG Wed Feb 16 20:54:21 2005 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 A3B8716A4CE for ; Wed, 16 Feb 2005 20:54:21 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id F001743D45 for ; Wed, 16 Feb 2005 20:54:20 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so178870rng for ; Wed, 16 Feb 2005 12:54:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=R5418UZ3xigCv7iRKamAJ9EhbP+25WAq7HcLY5DemMcvBQh1QyXTlFBb6zaG5tK4X9y32mbSladttYYjplmZHuDKlpOxWuVR9CMC/B+m8P6/YFLT7kvAO8TZU7CGC45wlkgFkFoZyYZK/DnDz5sy2dxUcyjrCxZxTGXvh3nJvhs= Received: by 10.38.152.38 with SMTP id z38mr285151rnd; Wed, 16 Feb 2005 12:54:19 -0800 (PST) Received: by 10.38.102.32 with HTTP; Wed, 16 Feb 2005 12:54:19 -0800 (PST) Message-ID: <96b30c400502161254783e6841@mail.gmail.com> Date: Wed, 16 Feb 2005 21:54:19 +0100 From: Juan Rodriguez To: freebsd-net@freebsd.org In-Reply-To: <96b30c4005021611546d123609@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <96b30c4005021611546d123609@mail.gmail.com> Subject: Re: [FIXED] FreeBSD 5.3 hangs up on high network load X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juan Rodriguez List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 20:54:21 -0000 Ooops, I still got the same problem. My mistake, I saw "victory" too early. :( On Wed, 16 Feb 2005 20:54:52 +0100, Juan Rodriguez wrote: > Hey, > > I't seems my problem vanishes with FreeBSD-5.3-p5 > > Thanks a lot ! > > FreeBSD rules ! > > We all love the beastie ! > > Keep on doing a great job ! > > and...please never forget monoprocessor systems! :P > From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 02:12:40 2005 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 4384A16A4CE for ; Thu, 17 Feb 2005 02:12:40 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E772843D39 for ; Thu, 17 Feb 2005 02:12:39 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id A730D7A41E for ; Wed, 16 Feb 2005 18:12:39 -0800 (PST) Message-ID: <4213FD97.7000708@elischer.org> Date: Wed, 16 Feb 2005 18:12:39 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: net@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: odd tcp trace. 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: Thu, 17 Feb 2005 02:12:40 -0000 This is a conversation between 2 FreeBSD 4.8 machines. Does anyone else worry about what is going on here regarding packets sent and the received window? only odd setting here is that the slowstart flightsize was set to 30 (it was the only machine using this high latency link) (400mSec rtt but lots of bandwidth) 19:53:49.694030 machineA.49177 > machineB.2293: . 28713:30161(1448) ack 1 win 32942 19:53:49.694039 machineA.49177 > machineB.2293: . 30161:31609(1448) ack 1 win 32942 19:53:49.694050 machineA.49177 > machineB.2293: . 31609:33057(1448) ack 1 win 32942 19:53:50.069090 machineB.2293 > machineA.49177: . ack 2897 win 32580 19:53:50.069111 machineA.49177 > machineB.2293: . 33057:34505(1448) ack 1 win 32942 19:53:50.069120 machineA.49177 > machineB.2293: . 34505:35953(1448) ack 1 win 32942 19:53:50.069131 machineA.49177 > machineB.2293: . 35953:37401(1448) ack 1 win 32942 19:53:50.069140 machineA.49177 > machineB.2293: . 37401:38849(1448) ack 1 win 32942 19:53:50.069189 machineA.49177 > machineB.2293: . 38849:40297(1448) ack 1 win 32942 19:53:50.069199 machineA.49177 > machineB.2293: . 40297:41745(1448) ack 1 win 32942 19:53:50.069209 machineA.49177 > machineB.2293: . 41745:43193(1448) ack 1 win 32942 19:53:50.069218 machineA.49177 > machineB.2293: . 43193:44641(1448) ack 1 win 32942 19:53:50.069227 machineA.49177 > machineB.2293: . 44641:46089(1448) ack 1 win 32942 19:53:50.069236 machineA.49177 > machineB.2293: . 46089:47537(1448) ack 1 win 32942 19:53:50.069245 machineA.49177 > machineB.2293: . 47537:48985(1448) ack 1 win 32942 accrding to my calculations.. machine A should not fell it ok to send any packets beyond sequence # 2897 + 32580 yet it goes ahead and sends data up to 48985 which is WAY out of range.. From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 02:30:47 2005 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 528E416A4CE for ; Thu, 17 Feb 2005 02:30:47 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E58E243D49 for ; Thu, 17 Feb 2005 02:30:46 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id D38907A423 for ; Wed, 16 Feb 2005 18:30:46 -0800 (PST) Message-ID: <421401D6.3040700@elischer.org> Date: Wed, 16 Feb 2005 18:30:46 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: net@freebsd.org References: <4213FD97.7000708@elischer.org> <20050217021554.GD15240@yahoo-inc.com> In-Reply-To: <20050217021554.GD15240@yahoo-inc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: odd tcp trace. 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: Thu, 17 Feb 2005 02:30:47 -0000 jayanth wrote: >tcp large windows must have been negotiated which allows for window sizes > 32k. >Look at the SYN packet and see if that is the case. > yes, S 1555577485:1555577485(0) win 65535 (DF) S 2834868684:2834868684(0) ack 1555577486 win 65535 (DF) 19:53:49.692581 machineA.2293 > machineB.49177: . ack 1 win 33304 (DF) 19:53:49.692610 machineB.49177 > machineA.2293: . ack 1 win 32942 (DF) but: shouldn't tcpdump already be taking the scale into account? I guess not, in which case the window is 64K but, then why did it stop sending when the outstanding data reached 33057? > >jayanth > >Julian Elischer (julian@elischer.org) wrote: > > >>This is a conversation between 2 FreeBSD 4.8 machines. >> >>Does anyone else worry about what is going on here regarding packets >>sent and the received window? >> >>only odd setting here is that the slowstart flightsize was set to 30 >>(it was the only machine using this high latency link) (400mSec rtt but >>lots of bandwidth) >> >>19:53:49.694030 machineA.49177 > machineB.2293: . 28713:30161(1448) ack >>1 win 32942 >>19:53:49.694039 machineA.49177 > machineB.2293: . 30161:31609(1448) ack >>1 win 32942 >>19:53:49.694050 machineA.49177 > machineB.2293: . 31609:33057(1448) ack >>1 win 32942 >> sender delays here when outstanding data reached ~ 32K. it has NOT reached 30 packets yet.. >>19:53:50.069090 machineB.2293 > machineA.49177: . ack 2897 win 32580 >>19:53:50.069111 machineA.49177 > machineB.2293: . 33057:34505(1448) ack >>1 win 32942 >>19:53:50.069120 machineA.49177 > machineB.2293: . 34505:35953(1448) ack >>1 win 32942 >>19:53:50.069131 machineA.49177 > machineB.2293: . 35953:37401(1448) ack >>1 win 32942 >>19:53:50.069140 machineA.49177 > machineB.2293: . 37401:38849(1448) ack >>1 win 32942 >>19:53:50.069189 machineA.49177 > machineB.2293: . 38849:40297(1448) ack >>1 win 32942 >>19:53:50.069199 machineA.49177 > machineB.2293: . 40297:41745(1448) ack >>1 win 32942 >>19:53:50.069209 machineA.49177 > machineB.2293: . 41745:43193(1448) ack >>1 win 32942 >>19:53:50.069218 machineA.49177 > machineB.2293: . 43193:44641(1448) ack >>1 win 32942 >>19:53:50.069227 machineA.49177 > machineB.2293: . 44641:46089(1448) ack >>1 win 32942 >>19:53:50.069236 machineA.49177 > machineB.2293: . 46089:47537(1448) ack >>1 win 32942 >>19:53:50.069245 machineA.49177 > machineB.2293: . 47537:48985(1448) ack >>1 win 32942 >> >>accrding to my calculations.. machine A should not fell it ok to send >>any packets beyond >>sequence # 2897 + 32580 >> >>yet it goes ahead and sends data up to 48985 which is WAY out of range.. >> >> >>_______________________________________________ >>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 Thu Feb 17 02:35:54 2005 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 CB65A16A4CE for ; Thu, 17 Feb 2005 02:35:54 +0000 (GMT) Received: from server2.troikatek.com (server2.troikatek.com [66.135.32.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75F0843D1F for ; Thu, 17 Feb 2005 02:35:54 +0000 (GMT) (envelope-from aheyn@jmsent.com) Received: (qmail 25339 invoked from network); 17 Feb 2005 03:29:42 -0000 Received: from ns.jmsent.com (HELO AREILLPC) (66.9.27.146) by server2.troikatek.com with SMTP; 17 Feb 2005 03:29:42 -0000 From: "Andrew Heyn" To: Date: Wed, 16 Feb 2005 21:35:50 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: paranoia 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: Thu, 17 Feb 2005 02:35:54 -0000 Here's an on/off topic question i've been wondering about forever... I always see people replace their IPs with fake replacements. Is this paranoia really warranted? Why not disconnect the cat5 if you want to do this? Or am I not seeing things the right way? Thanks, Andrew From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 02:53:29 2005 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 ED1BA16A4CE for ; Thu, 17 Feb 2005 02:53:29 +0000 (GMT) Received: from mail2out.barnet.com.au (mail2out.barnet.com.au [202.83.176.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EF9543D41 for ; Thu, 17 Feb 2005 02:53:29 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mail2out.barnet.com.au (Postfix, from userid 27) id 966DD70745B; Thu, 17 Feb 2005 13:53:27 +1100 (EST) X-Viruscan-Id: <421407270001226ED720F0@BarNet> Received: from mail2-auth.barnet.com.au (mail2.barnet.com.au [202.83.176.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id 4BFC370745A; Thu, 17 Feb 2005 13:53:27 +1100 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (verified OK)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id BD02D70744E; Thu, 17 Feb 2005 13:53:26 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id D646161CB; Thu, 17 Feb 2005 13:53:25 +1100 (EST) Date: Thu, 17 Feb 2005 13:53:25 +1100 From: Edwin Groothuis To: Andrew Heyn Message-ID: <20050217025325.GB1035@k7.mavetju> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: freebsd-net@freebsd.org Subject: Re: paranoia 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: Thu, 17 Feb 2005 02:53:30 -0000 On Wed, Feb 16, 2005 at 09:35:50PM -0800, Andrew Heyn wrote: > I always see people replace their IPs with fake replacements. > Is this paranoia really warranted? Why not disconnect the cat5 if you want > to do this? If they're smart and know what they are doing, it will make things easier to read: Machine A and Machine B are easier to recognize than 192.218.32.34 and 129.218.34.32. If they are not smart or misinformed, it will things impossible to understand what is going on: x.y.z.35 and x.y.z.24 is totally the wrong anonymousation[sp] of 1.2.3.35 and 5.6.7.24. It will also give the wrong assumptions when you think it are both public addresses while one is, or both are, private RFC addresses. And than the third group who complain that their DNS server isn't properly working and then give ns1.exmaple.org and test.example.org because they want to anonymize it :-) If they want to be paranoid, let them be. It will only make debugging harder because they don't give the raw data. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/ From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 03:09:28 2005 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 4E71016A4CE for ; Thu, 17 Feb 2005 03:09:28 +0000 (GMT) Received: from mxsf20.cluster1.charter.net (mxsf20.cluster1.charter.net [209.225.28.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id D679743D1D for ; Thu, 17 Feb 2005 03:09:27 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip06.cluster1.charter.net (mxip06a.cluster1.charter.net [209.225.28.136])j1H39QGC003526 for ; Wed, 16 Feb 2005 22:09:26 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip06.cluster1.charter.net with ESMTP; 16 Feb 2005 22:09:27 -0500 X-Ironport-AV: i="3.90,92,1107752400"; d="scan'208"; a="606734243:sNHT15902564" Date: Wed, 16 Feb 2005 22:09:27 -0500 (EST) From: c0ldbyte To: Andrew Heyn In-Reply-To: Message-ID: <20050216220903.D27764@eleanor.us1.wmi.uvac.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@freebsd.org Subject: Re: paranoia 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: Thu, 17 Feb 2005 03:09:28 -0000 On Wed, 16 Feb 2005, Andrew Heyn wrote: > Here's an on/off topic question i've been wondering about forever... > > > I always see people replace their IPs with fake replacements. > Is this paranoia really warranted? Why not disconnect the cat5 if you want > to do this? > > Or am I not seeing things the right way? > GAL == Get a life/.\ From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 08:23:27 2005 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 3AE7916A4CE for ; Thu, 17 Feb 2005 08:23:27 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA32B43D45 for ; Thu, 17 Feb 2005 08:23:26 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so251654rng for ; Thu, 17 Feb 2005 00:23:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=VclM9hPw7FNwHpeCFm/1ldlpFiNnx5BueExyissEwKvVsfpUXlgqJbcAi5V0ylOIVTCqAu7RFwb1329pi7wwKYc7oFj59EC136OQVNgwTsaXAVBa8vtzF4b5Qdw0ZV9TUa7g+Z2XsP3wbTRLNkAvIJUVrElsdbCj0ZmYmYQul08= Received: by 10.38.151.34 with SMTP id y34mr223241rnd; Thu, 17 Feb 2005 00:23:26 -0800 (PST) Received: by 10.38.102.32 with HTTP; Thu, 17 Feb 2005 00:23:26 -0800 (PST) Message-ID: <96b30c4005021700236f10177a@mail.gmail.com> Date: Thu, 17 Feb 2005 09:23:26 +0100 From: Juan Rodriguez To: freebsd-net@freebsd.org In-Reply-To: <200502170648.j1H6mO2Y005847@ylpvm43.prodigy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <96b30c400502161254783e6841@mail.gmail.com> <200502170648.j1H6mO2Y005847@ylpvm43.prodigy.net> Subject: Re: [FIXED] FreeBSD 5.3 hangs up on high network load X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juan Rodriguez List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 08:23:27 -0000 On Wed, 16 Feb 2005 23:01:49 -0800, Jeffrey Hsu wrote: > > Ooops, I still got the same problem. > > My mistake, I saw "victory" too early. > > Have you tried this on DragonFlyBSD? It's a fork of FreeBSD, so > it should be very familiar to FreeBSD users, except faster and > more stable. > > P.S. Tell all your friends about it. > I know about DragonFly...but I'm used to FreeBSD so I would prefer not to move on another OS. I've been using FreeBSD since FreeBSD-4.4..... I'm very dissapointed with FreeBSD-5 but I think these problems will be fixed sooner or later...besides, I've got friends that tell me they aren't experiencing any problem with FreeBSD-5 (which really annoys me, Im the only stupid guy that can not make this works!). Now I am thinking that the problem I've got is not related to the network card....It seems like a deadlock. I've tried to turn off autonegotiation but it didn't made any better I've tried to use /usr/port/net/samba3 (I was using samba2)... If I were rich, I would really think about donating my hardware to the project, but this is not the case...anyway, if anybody here wants to inspect something on my computer, as I said before, I can give him "ssh" access. The computer only gets frozen under high network load when using samba, otherwise it's pretty stable :/ From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 08:46:33 2005 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 3CA6016A4CE for ; Thu, 17 Feb 2005 08:46:33 +0000 (GMT) Received: from relay.bestcom.ru (relay.bestcom.ru [217.72.144.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11DA943D1F for ; Thu, 17 Feb 2005 08:46:32 +0000 (GMT) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (root@cell.sick.ru [217.72.144.68]) by relay.bestcom.ru (8.13.1/8.12.9) with ESMTP id j1H8kUI1032714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 17 Feb 2005 11:46:31 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id j1H8kUx0095188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 17 Feb 2005 11:46:30 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id j1H8kU22095187 for net@freebsd.org; Thu, 17 Feb 2005 11:46:30 +0300 (MSK) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@freebsd.org using -f Date: Thu, 17 Feb 2005 11:46:29 +0300 From: Gleb Smirnoff To: net@freebsd.org Message-ID: <20050217084629.GB95106@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: ClamAV version devel-20050125, clamav-milter version 0.80ff on relay.bestcom.ru X-Virus-Status: Clean Subject: in_pcbconnect_setup() question 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: Thu, 17 Feb 2005 08:46:33 -0000 Dear networkers, I've noticed a small oddity in in_pcbconnect_setup(). According to SuS, in case of connection-less socket layer, e.g. SOCK_DGRAM, the connect() syscall should only choose local address and that's all. To server this purposes a route lookup is done in in_pcbconnect_setup(). However, if route is pointing to a loopback interface, it is not accepted. (Not clear to me) comment is also present: /* * If we found a route, use the address * corresponding to the outgoing interface * unless it is the loopback (in case a route * to our address on another net goes to loopback). */ if (sro.ro_rt && !(sro.ro_rt->rt_ifp->if_flags & IFF_LOOPBACK)) ia = ifatoia(sro.ro_rt->rt_ifa); if (sro.ro_rt) RTFREE(sro.ro_rt); For example, this breaks connect() of a UDP socket to a blackhole-routed IP address, which shouldn't return an error. I'd like to change this block to the following: /* * If we found a route, use the address * corresponding to the outgoing interface. */ if (sro.ro_rt) { ia = ifatoia(sro.ro_rt->rt_ifa); RTFREE(sro.ro_rt); } Is there any hidden obstacles? Can someone explain me this comment? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 11:53:17 2005 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 B189516A4CE for ; Thu, 17 Feb 2005 11:53:17 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 796D243D3F for ; Thu, 17 Feb 2005 11:53:17 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id 3034B46B39; Thu, 17 Feb 2005 06:53:17 -0500 (EST) Date: Thu, 17 Feb 2005 11:51:52 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Andrew Heyn In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: paranoia 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: Thu, 17 Feb 2005 11:53:17 -0000 On Wed, 16 Feb 2005, Andrew Heyn wrote: > Here's an on/off topic question i've been wondering about forever... > > I always see people replace their IPs with fake replacements. Is this > paranoia really warranted? Why not disconnect the cat5 if you want to > do this? > > Or am I not seeing things the right way? People who "fake" IPs generally do so for purposes of anonymity or to prevent revealing information about their network infrastructure. Here are a few examples of situations where people look to conceal their IP addresses - Firewalls and NATs perform address translation to conceal the internal layout of a network. This can make it substantially harder to effectively attack a network. - Spammers attempt to conceal their IP addresses so that they cannot be tracked back to a particular ISP. - Attackers using distributed denial of service attacks will conceal their IP addresses so they cannot be traced back to a particular end-host. - End-users seeking to send anonymous tips, etc, i.e., to the police, media, or others, will conceal their IP addresses to hide their identities. So there's quite a spectrum of interest in the topic :-). Sometimes this is done by spoofing IP addresses using raw sockes or BPF; other times, it is done through proxies, onion routing, and so on, which requires collaboration by other parties (witting or otherwise). Robert N M Watson From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 12:01:18 2005 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 E4D8516A4CE for ; Thu, 17 Feb 2005 12:01:17 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60DCB43D39 for ; Thu, 17 Feb 2005 12:01:17 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id 09AFE46B38; Thu, 17 Feb 2005 07:01:17 -0500 (EST) Date: Thu, 17 Feb 2005 11:59:52 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Juan Rodriguez In-Reply-To: <96b30c4005021607117ec44df7@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: c0ldbyte cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5.3 hangs on high network load 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: Thu, 17 Feb 2005 12:01:18 -0000 On Wed, 16 Feb 2005, Juan Rodriguez wrote: > I've cvsup'ed the kernel sources a few hours ago (RELENG_5), and I've > recompiled. > > Now I cannot boot, it gives me "kernel panic" when booting on > "rlphy0"....this is really very annoying. I'm at work now, I cannot give > you more details...it took me 4 hours to recompile the kernel, so Im not > willing to do this again, if you are really interested in debugging, I > will need your collaboration, I can give you an account on my system if > you want to. Most kernel panics can be debugged using easily extracted information from a crash. If you're interested in helping to track this problem down so it doesn't persist in future releases, you'll want to do the following: - Compile the kernel with the following entries in its config file: options DDB options KDB makeoptions DEBUG=-g options BREAK_TO_DEBUGGER - Ideally, hook up a second system as a serial console for the first system, perhaps using a null modem cable. This will allow you to copy and paste debugging output into an e-mail message, which can simplify things. When the system crashes with a panic and the above options are present, it will drop to the DDB kernel debugger instead of rebooting or hanging. If you're using a serial console, the output of the debugger will be visible there. The panic message will be displayed, as well as fault details if there was a fault leading to the panic. At that point "trace" will give a backtrace. If you could copy and paste that information into an e-mail, we can then try to track it down. Debugging the wedge/hang you were seeing earlier is also something we can try to do using the same technique, but they can be a bit harder to track down. In that situation, the break to debugger option above will allow you to break to the debugger on the console (ideally, the serial console, again, since you can more easily copy-and-paste the output). There's a chapter in the FreeBSD handbook on setting up kernel debugging so that you can report bugs with sufficient detail that we can debug them. Let me know if you have any questions. Robert N M Watson > > thanks > > > > > On Wed, 16 Feb 2005 07:16:46 -0500 (EST), c0ldbyte > wrote: > > On Wed, 16 Feb 2005, Robert Watson wrote: > > > > > > > > On Wed, 16 Feb 2005, Juan Rodriguez wrote: > > > > > >> Just for your information (because I guess there's nothing else we can > > >> do....), I will describe the setup I've got in case anyone would like to > > >> reproduce the problem and try to fix it. > > >> > > >> I'm using FreeBSD 5.3.0 RELEASE on an Pentium I MMX 233, with 128 MB of > > >> RAM (minus 1 MB that my onboard VGA card takes off). The motherboard is > > >> ASUS SPv97 (or something like that) > > > > > > If possible, the first thing would be to try moving to the head of > > > 5-STABLE to see if the bug has already been fixed there already or not. A > > > significant number of interesting bugs have been fixed since the release > > > of 5.3. If that doesn't correct the problem, the next thing to do is to > > > take a look at the section of the handbook on reporting kernel panics and > > > hangs. It would be quite interesting to know if the machine still > > > responds to pings once it has appeared to hang. There have been reported > > > problems with realtek network cards, it would probably be premature to > > > blame the hardware at this point. > > > > > > > If im correct ive allready heard of this issue being solved. And should > > allready be patched in. Checkout the latest RELENG_5_3 and build your > > kernel over again and run that for a while "FreeBSD 5.3-RELEASE-p5" > > otherwise try a different version of 'samba*' or see if there are some > > tweaks in the 'LINT' for the card itself. Im not quite sure why you would > > run in safe mode but whatever trips your trigger. 'mount_smbfs' instead > > of running 'samba' itself might also help you out a bit. > > > > Best regards > > -- c0ldbyte > > _______________________________________________ > > 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" > > > _______________________________________________ > 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 Thu Feb 17 12:13:25 2005 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 26C8A16A4CE; Thu, 17 Feb 2005 12:13:25 +0000 (GMT) Received: from mxsf30.cluster1.charter.net (mxsf30.cluster1.charter.net [209.225.28.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEDE443D2D; Thu, 17 Feb 2005 12:13:24 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip13.cluster1.charter.net (mxip13a.cluster1.charter.net [209.225.28.143])j1HCDND9021993; Thu, 17 Feb 2005 07:13:23 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip13.cluster1.charter.net with ESMTP; 17 Feb 2005 07:13:24 -0500 X-Ironport-AV: i="3.90,93,1107752400"; d="scan'208"; a="780228140:sNHT12749664" Date: Thu, 17 Feb 2005 07:13:22 -0500 (EST) From: c0ldbyte To: hsu@freebsd.org In-Reply-To: <96b30c4005021700236f10177a@mail.gmail.com> Message-ID: <20050217071216.X65555@eleanor.us1.wmi.uvac.net> References: <96b30c400502161254783e6841@mail.gmail.com> <96b30c4005021700236f10177a@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@freebsd.org Subject: Re: [FIXED] FreeBSD 5.3 hangs up on high network load 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: Thu, 17 Feb 2005 12:13:25 -0000 On Thu, 17 Feb 2005, Juan Rodriguez wrote: > On Wed, 16 Feb 2005 23:01:49 -0800, Jeffrey Hsu wrote: >> > Ooops, I still got the same problem. >> > My mistake, I saw "victory" too early. >> >> Have you tried this on DragonFlyBSD? It's a fork of FreeBSD, so >> it should be very familiar to FreeBSD users, except faster and >> more stable. >> >> P.S. Tell all your friends about it. >> hsu@freebsd.org << spam somewhere else this is a freebsd list not a dragonfag list. From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 17:38:29 2005 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 6FDED16A4CE for ; Thu, 17 Feb 2005 17:38:29 +0000 (GMT) Received: from mail.freebsd.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with SMTP id E462443D2F for ; Thu, 17 Feb 2005 17:38:21 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 60694 invoked by uid 0); 17 Feb 2005 17:29:32 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.99.7) by mail.freebsd.org.cn with SMTP; 17 Feb 2005 17:29:32 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id C20B81337B7; Fri, 18 Feb 2005 01:38:12 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28167-20; Fri, 18 Feb 2005 01:37:51 +0800 (CST) Received: from localhost.localdomain (unknown [221.216.127.104]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id ECDF513370D; Fri, 18 Feb 2005 01:37:44 +0800 (CST) From: Xin LI To: henrysu@nttmcl.com In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R5dtQCQNe9yL/yJqaC4h" Organization: The FreeBSD Simplified Chinese Project Date: Fri, 18 Feb 2005 01:36:29 +0800 Message-Id: <1108661789.656.9.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at frontfree.net cc: freebsd-net@freebsd.org Subject: RE: Two NIC's connected to same subnet: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: delphij@delphij.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 17:38:29 -0000 --=-R5dtQCQNe9yL/yJqaC4h Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It seems that this can be implemented through ng_one2many netgraph node. I'm looking for some documentation about this. Well... Given that my own server is already online and it is several kilometers away from me, I'd rather test the feature at lab and then go there for a shoot. =E5=9C=A8 2005-02-01=E4=BA=8C=E7=9A=84 10:37 -0800=EF=BC=8CHenry Su=E5=86= =99=E9=81=93=EF=BC=9A > You can configure both NIC as /32. You also need proxy arp installed and > listen on both NIC. Then the traffic should be able to follow between two > NICs. Since Proxy ARP always answers its MAC to clients, so the clients c= an > always send traffic to em1 or em0. Based on client's mac entry in the ARP > table, client to client traffic is easily transferred. Other traffic shou= ld > be able to direct to default gateway. >=20 > If you know other options, I am interested to hear. Cheers, --=20 Xin LI http://www.delphij.net/ --=-R5dtQCQNe9yL/yJqaC4h Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8?= =?UTF-8?Q?=E5=88=86?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCFNYc/cVsHxFZiIoRAqGWAJ9s5TLcAsNrMi2wQwM8tSAtCxIasQCeM+/T /9lhJDRKCgZF23YJvMFjMb0= =uuOw -----END PGP SIGNATURE----- --=-R5dtQCQNe9yL/yJqaC4h-- From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 19:30:13 2005 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 8CBC216A525 for ; Thu, 17 Feb 2005 19:30:13 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD19643D53 for ; Thu, 17 Feb 2005 19:30:12 +0000 (GMT) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A7550.dip.t-dialin.net [84.154.117.80]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j1HJU9YS080000; Thu, 17 Feb 2005 20:30:10 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j1HJV63d003283; Thu, 17 Feb 2005 20:31:07 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (localhost [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j1HJV62m018971; Thu, 17 Feb 2005 20:31:06 +0100 (CET) (envelope-from jhs@fire.jhs.private) Received: (from jhs@localhost) by fire.jhs.private (8.13.1/8.13.1/Submit) id j1HJV6GR018970; Thu, 17 Feb 2005 20:31:06 +0100 (CET) (envelope-from jhs) Date: Thu, 17 Feb 2005 20:31:06 +0100 (CET) Message-Id: <200502171931.j1HJV6GR018970@fire.jhs.private> To: freebsd-net@freebsd.org From: "Julian Stacey" Organization: http://berklix.com/~jhs/ Fcc: sent-mail User-agent: EXMH http://beedub.com/exmh/ on FreeBSD http://freebsd.org cc: jhs@berklix.org Subject: nslookup problem on FreeBSD-5.3: problem with non FQN domain 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: Thu, 17 Feb 2005 19:30:13 -0000 Hi folks, Advice needed with nslookup &/or NXDOMAIN please: I don't know if I've config'd something wrong or maybe found a bug ? I have 3 servers all running the same named config files, but with different FreeBSD uname -r versions: 194.221.32.28 flat.berklix.org 5.3-rel 194.221.32.7 tower.berklix.org 4.9-rel 194.221.87.219 thin.berklix.org 4.10-rel A problem came since I upgraded `flat' to 5.3, (& now running chrooted with /usr/sbin/named -u bind -t /var/named ) With all 3 servers, runing nslookup on the local server nslookup thin.berklix.og responds normally with the IP, but though `tower' & `thin' are also OK with non fully qualified name `thin', running nslookup localy on `flat' now gives errors: nslookup thin Server: 127.0.0.1 Address: 127.0.0.1#53 ** server can't find thin: NXDOMAIN server thin.berklix.org Default server: thin.berklix.org Address: 194.221.87.219#53 thin Server: thin.berklix.org Address: 194.221.87.219#53 ** server can't find thin: NXDOMAIN On host `flat' a command such as "ping -c 1 thin" works fine. After upgrading `flat' to 5.3 I ran a `mergemaster -sicv' so most of my etc files should be OK. I also tried "mv ~/.[a-zA-Z]* ~/tmp/" to check it wasnt that. /bin/hostname flat.berklix.org /etc/hosts ( on all 3) 127.0.0.1 localhost localhost.berklix.org /etc/resolv.conf has # domain berklix.org nameserver 127.0.0.1 nameserver 194.221.32.6 nameserver 194.221.87.2 /etc/hosts.conf hosts bind /etc/nsswitch.conf group: compat group_compat: nis hosts: files dns networks: files passwd: compat passwd_compat: nis shells: files cd /usr/src ; find . -type f -exec grep -l NXDOMAIN {} \; contrib/bind9 rfc/rfc1536.txt 6. Name Error Bugs: rfc/rfc2136.txt NXDOMAIN 3 Some name that ought to exist, does not exist. lib/libc/net getaddrinfo.c res_data.c res_mkupdate.c res_query.c res_update.c h_errno = HOST_NOT_FOUND; rclass = C_NONE; * if (rcode == NXDOMAIN) then the dname does not * exist and the server is replying out of NCACHE. * in either case, proceed with the next try I'm not using IPv6. I've not set up an AAAA rec (dont know what it is). I dont need an MX rec, despite warning from http://dnsreport.com/tools/dnsreport.ch?domain=berklix.org but I guess something is wrong ? Any ideas please ? - Julian Stacey Net & Sys Eng Consultant, Munich http://berklix.com Mail in Ascii (Html=Spam). Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-net@FreeBSD.ORG Thu Feb 17 20:42:28 2005 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 37EC016A4CE for ; Thu, 17 Feb 2005 20:42:28 +0000 (GMT) Received: from smtp818.mail.sc5.yahoo.com (smtp818.mail.sc5.yahoo.com [66.163.170.4]) by mx1.FreeBSD.org (Postfix) with SMTP id ED1CB43D41 for ; Thu, 17 Feb 2005 20:42:27 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.177.173 with login) by smtp818.mail.sc5.yahoo.com with SMTP; 17 Feb 2005 20:42:27 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id DE323633A; Thu, 17 Feb 2005 14:42:26 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29019-02; Thu, 17 Feb 2005 14:42:23 -0600 (CST) Received: from [127.0.0.1] (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id A6C876336; Thu, 17 Feb 2005 14:42:23 -0600 (CST) Message-ID: <421501A0.3040707@alumni.rice.edu> Date: Thu, 17 Feb 2005 14:42:08 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: henrysu@nttmcl.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-net@freebsd.org cc: delphij@delphij.net Subject: Re: Two NIC's connected to same subnet: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 20:42:28 -0000 Henry Su wrote: > You can configure both NIC as /32. You also need proxy arp installed and > listen on both NIC. Then the traffic should be able to follow between two > NICs. Since Proxy ARP always answers its MAC to clients, so the clients can > always send traffic to em1 or em0. Based on client's mac entry in the ARP > table, client to client traffic is easily transferred. Other traffic should > be able to direct to default gateway. I gave this a shot and failed miserably. Admittedly, I know little-to-nothing about arp, so hopefully it's obvious why I failed. I have this in my /etc/rc.conf: network_interfaces="fxp0 fxp1 lo0" ifconfig_fxp0="inet 10.0.0.4 netmask 255.255.255.255 link0" ifconfig_fxp1="inet 10.0.0.5 netmask 255.255.255.255 link0" defaultrouter="10.0.0.1" Created an arp table file called /etc/arp.table (built-in dual fxps so the macs are actually consecutive): 10.0.0.4 00:01:02:03:04:06 pub 10.0.0.5 00:01:02:03:04:05 pub And had this in /etc/rc.local: /usr/sbin/arp -f /etc/arp.table On boot I ended up with the following error message and a blank arp table: set: proxy entry exists for non 802 device Do I need to add in some static routes to make this work? What am I missing? Would this make it possible to have each adapter/IP use a different gateway? I ask because I have 2 T1s and I'm curious if a single machine could utilize both. It's an SMP box so I was thinking of running 2 peered instances of Squid on separate IP addresses with each IP address using one of the T1s as the gateway. That way I could force my power users through one connection and everyone else through the other while still gaining the benefit of caching everything for everyone. It's probably needlessly complicated, but it sounds fun... ;-) Jon > -----Original Message----- > From: owner-freebsd-net@freebsd.org > [mailto:owner-freebsd-net@freebsd.org]On Behalf Of Xin LI > Sent: Tuesday, February 01, 2005 10:12 AM > To: freebsd-net@freebsd.org > Subject: Two NIC's connected to same subnet: routing question > > > Dear folks, > > I think I got confused with the routing problem we will have when at > least two NIC's are connected into the same subnet. > > The scenario: > em0: 192.168.0.1/24 > em1: 192.168.0.2/24 > > We can't simply configure like this, since 192.168.0.0/24 network route > exists as soon as either em0 or em1 is up. A workaround for this is > that we assign 192.168.0.2/32 for em1, but that has another issue that > all traffics will go through em0 for "outgoing", say, outside the > current network. > > A google of the issue has indicated that the "Move ARP out of routing > table" work done last April should have resolved this, as "With this > change it is possible to have more than one interface in the same IP > subnet and layer 2 broadcast domain.". However, what I have found from > our mailing list archive says only to assign /32 IP address, or remove > routing item from route table, which is essentially identical to the /32 > solution. > > So is there any way to utilize the both NIC's? I think I have been > confused :-( > > Cheers, > -- > Xin LI http://www.delphij.net/ From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 00:37:58 2005 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 523AE16A4CE; Fri, 18 Feb 2005 00:37:58 +0000 (GMT) Received: from mail-yellow.research.att.com (mail-dark.research.att.com [192.20.225.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 469FB43D39; Fri, 18 Feb 2005 00:37:57 +0000 (GMT) (envelope-from fenner@research.att.com) Received: from bright.research.att.com (bright.research.att.com [135.207.20.189]) by mail-green.research.att.com (Postfix) with ESMTP id 42D8AA7BCD; Thu, 17 Feb 2005 19:37:56 -0500 (EST) Received: (from fenner@localhost) by bright.research.att.com (8.12.11/8.12.10/Submit) id j1I0bu9F001044; Thu, 17 Feb 2005 16:37:56 -0800 Message-Id: <200502180037.j1I0bu9F001044@bright.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: rwatson@freebsd.org Date: Thu, 17 Feb 2005 16:37:56 -0800 From: Bill Fenner Versions: dmail (linux) 2.6d/makemail 2.10 cc: net@freebsd.org Subject: Re: solisten() question: why do we check for completed connections? 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: Fri, 18 Feb 2005 00:37:58 -0000 Robert, The code in rev 7.1 (4.3BSD) was: if (so->so_q == 0) { so->so_q = so; so->so_q0 = so; so->so_options |= SO_ACCEPTCONN; } which looks like it's initializing q0 and q to be circular queues, which has to only happen once, and also setting SO_ACCEPTCONN; since nothing ever turns off SO_ACCEPTCONN, this is not something that has to happen only once. When the stuff that had to happen only once got removed, the conditional remained. So, I'd say that setting SO_ACCEPTCONN is required, but the conditional is not. I don't know if that helps your race or not. Bill From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 00:42:06 2005 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 A09A616A4CE for ; Fri, 18 Feb 2005 00:42:06 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DB0243D39 for ; Fri, 18 Feb 2005 00:42:06 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id 0319246B29; Thu, 17 Feb 2005 19:42:06 -0500 (EST) Date: Fri, 18 Feb 2005 00:40:39 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Bill Fenner In-Reply-To: <200502180037.j1I0bu9F001044@bright.research.att.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: net@freebsd.org Subject: Re: solisten() question: why do we check for completed connections? 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: Fri, 18 Feb 2005 00:42:06 -0000 On Thu, 17 Feb 2005, Bill Fenner wrote: > which looks like it's initializing q0 and q to be circular queues, which > has to only happen once, and also setting SO_ACCEPTCONN; since nothing > ever turns off SO_ACCEPTCONN, this is not something that has to happen > only once. When the stuff that had to happen only once got removed, the > conditional remained. > > So, I'd say that setting SO_ACCEPTCONN is required, but the conditional > is not. I don't know if that helps your race or not. This sounds like just the explanation I was looking for. Thanks, Robert N M Watson From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 04:17:07 2005 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 7BB5216A4CE for ; Fri, 18 Feb 2005 04:17:07 +0000 (GMT) Received: from yarn.nttmcl.com (yarn.nttmcl.com [216.69.69.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3156943D49 for ; Fri, 18 Feb 2005 04:17:07 +0000 (GMT) (envelope-from henrysu@nttmcl.com) Received: from yarn.nttmcl.com (localhost [127.0.0.1]) by yarn.nttmcl.com (8.12.11/8.12.11) with ESMTP id j1I4GgXU013931; Thu, 17 Feb 2005 20:16:42 -0800 (PST) (envelope-from henrysu@nttmcl.com) Received: from localhost (henrysu@localhost)j1I4GgfS013928; Thu, 17 Feb 2005 20:16:42 -0800 (PST) (envelope-from henrysu@nttmcl.com) X-Authentication-Warning: yarn.nttmcl.com: henrysu owned process doing -bs Date: Thu, 17 Feb 2005 20:16:42 -0800 (PST) From: Henry Su To: Jon Noack In-Reply-To: <421501A0.3040707@alumni.rice.edu> Message-ID: <20050217201208.S13851@yarn.nttmcl.com> References: <421501A0.3040707@alumni.rice.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org cc: delphij@delphij.net Subject: Re: Two NIC's connected to same subnet: routing question 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: Fri, 18 Feb 2005 04:17:07 -0000 On Thu, 17 Feb 2005, Jon Noack wrote: > Henry Su wrote: > > You can configure both NIC as /32. You also need proxy arp installed and > > listen on both NIC. Then the traffic should be able to follow between two > > NICs. Since Proxy ARP always answers its MAC to clients, so the clients can > > always send traffic to em1 or em0. Based on client's mac entry in the ARP > > table, client to client traffic is easily transferred. Other traffic should > > be able to direct to default gateway. > > I gave this a shot and failed miserably. Admittedly, I know > little-to-nothing about arp, so hopefully it's obvious why I failed. > > I have this in my /etc/rc.conf: > network_interfaces="fxp0 fxp1 lo0" > ifconfig_fxp0="inet 10.0.0.4 netmask 255.255.255.255 link0" > ifconfig_fxp1="inet 10.0.0.5 netmask 255.255.255.255 link0" > defaultrouter="10.0.0.1" > > Created an arp table file called /etc/arp.table (built-in dual fxps so > the macs are actually consecutive): > 10.0.0.4 00:01:02:03:04:06 pub > 10.0.0.5 00:01:02:03:04:05 pub > > And had this in /etc/rc.local: > /usr/sbin/arp -f /etc/arp.table > This is because you do not need these 2 entries in it, fxp0, fxp1 are two interfaces in your machine, so their mac is of course known by the system. You need a proxy arp server to listen on fxp0, and fxp2. > On boot I ended up with the following error message and a blank arp table: > set: proxy entry exists for non 802 device > > Do I need to add in some static routes to make this work? What am I > missing? > > Would this make it possible to have each adapter/IP use a different > gateway? I ask because I have 2 T1s and I'm curious if a single machine > could utilize both. It's an SMP box so I was thinking of running 2 > peered instances of Squid on separate IP addresses with each IP address > using one of the T1s as the gateway. That way I could force my power > users through one connection and everyone else through the other while > still gaining the benefit of caching everything for everyone. It's > probably needlessly complicated, but it sounds fun... ;-) > > Jon > > > -----Original Message----- > > From: owner-freebsd-net@freebsd.org > > [mailto:owner-freebsd-net@freebsd.org]On Behalf Of Xin LI > > Sent: Tuesday, February 01, 2005 10:12 AM > > To: freebsd-net@freebsd.org > > Subject: Two NIC's connected to same subnet: routing question > > > > > > Dear folks, > > > > I think I got confused with the routing problem we will have when at > > least two NIC's are connected into the same subnet. > > > > The scenario: > > em0: 192.168.0.1/24 > > em1: 192.168.0.2/24 > > > > We can't simply configure like this, since 192.168.0.0/24 network route > > exists as soon as either em0 or em1 is up. A workaround for this is > > that we assign 192.168.0.2/32 for em1, but that has another issue that > > all traffics will go through em0 for "outgoing", say, outside the > > current network. > > > > A google of the issue has indicated that the "Move ARP out of routing > > table" work done last April should have resolved this, as "With this > > change it is possible to have more than one interface in the same IP > > subnet and layer 2 broadcast domain.". However, what I have found from > > our mailing list archive says only to assign /32 IP address, or remove > > routing item from route table, which is essentially identical to the /32 > > solution. > > > > So is there any way to utilize the both NIC's? I think I have been > > confused :-( > > > > Cheers, > > -- > > Xin LI http://www.delphij.net/ > > From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 05:53:07 2005 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 A66D216A4CE for ; Fri, 18 Feb 2005 05:53:07 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46D7A43D31 for ; Fri, 18 Feb 2005 05:53:07 +0000 (GMT) (envelope-from jetnul@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so410607wri for ; Thu, 17 Feb 2005 21:53:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=KMMDCEUX2ynC+CCpM7Z4T9CZ1zl7BZFSY7jpMdPMVSWBjDFhpBsWkFcWD3Dk9FlVPLsD++ObWhIH3l0gDvzx8fPa0F1k3MbxEYauE5wS4nYbehEMFSTCXzuiYmN0yGIVPq89Tlk6bTv/UZ7z6BzhCF+dDwZAMYXiOMbpJxjs1YM= Received: by 10.54.53.44 with SMTP id b44mr83044wra; Thu, 17 Feb 2005 21:53:06 -0800 (PST) Received: by 10.54.46.47 with HTTP; Thu, 17 Feb 2005 21:53:06 -0800 (PST) Message-ID: Date: Thu, 17 Feb 2005 23:53:06 -0600 From: Jet Nul To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: circumventing default route through loopback X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jet Nul List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 05:53:07 -0000 Hi!! I have problem for which I'm sure there is a simple and PROPER solution -- please help! The problem is, I have set up my Apache server, but have only my machine for testing. Although I'm online, requests from my browser typically end up "redirected" through 127.0.0.1 (lo0). This is inconvenient, since things which work from home have proven unreliable from remote. Specifically, I have a web page hosted by my ISP, but it is too small, so I redirect back to by dynamic IP from there. In order to test this, it is critical to circumvent loopback "short-circuit". Can anyone help me? I've really been trying hard to find the answer... (I'm actually running OpenBSD, but they don't care to answer this on misc@openbsd.org.) Very Much Thanks in advance, -Jet From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 08:22:22 2005 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 9782616A4CE for ; Fri, 18 Feb 2005 08:22:22 +0000 (GMT) Received: from softnet.si (jessie.softnet.si [212.103.128.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF5F543D46 for ; Fri, 18 Feb 2005 08:22:20 +0000 (GMT) (envelope-from marko.lerota@optima-telekom.hr) Received: from [213.253.113.133] (HELO redcloud.local) by softnet.si (CommuniGate Pro SMTP 4.1.8) with ESMTP id 12242624 for freebsd-net@freebsd.org; Fri, 18 Feb 2005 09:22:15 +0100 To: freebsd-net@freebsd.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWgnbRLVpRNVY9jMRPh s21jSlEyNVX45Mv4zI+sbUclFAtMVpT8V0lFAAACZ0lEQVR4nG3Tv2vbQBQHcFMogWyeNeVK BLXGl5j6xnABOaNTuXFGmWpwtw519yj4soW6AatT4GKD3+aDZrl/rt/Tr9qlGiz7Pn7v3bsf HVc/NrIiSfElqH53GgijcCqzk/+AmBF5cN0DsFlIRGMh/oHuqxkTM6VlzB4EoZEs2aSZOASb EQJYZpweQshE697GTDndBXtgp9LIT9+OpDGHEfb9knk+nx+jfN1JCVZMCl6XwFm0a2EXztZD 3s4fj47ZbKI2VeBmJImeEfGLJ+M9sDPilX7IB5rN6sdfcGhuoHU+LC4nxfnI7YOJtdb95Gb+ fbgJ2uJ2ZgaA++f5ZzBqNCCYfMTd5q0BfBVNqm7I8gUjQ+YtXotRW6PH9AEj+dKs/KuNQAl5 o/NY+QkonW8aQAl0oXMYPvRiXIM4pRJifbXytnhTA8alBx/jefG2ar3DBlt34/PXz9M+nMVN iNaPUdCApJc2ItejOmLGoK1qQLV9pJmXBnL10DYoBA5aHNfj8ZNwZa5O4CzgTJeilKJmrQJs IHIt1/7/Sg2p3iq/Hz0/5W05rq4M9aN2B5FLohUP4ylVyfxhEIjAs8J4PhIJ9U+CEroogib5 BXAf7bB4vkfAzgPFt1tM9sJZAOH+lCexhwswuNtim4QTZdokqo4o89LkH7V6iFxICeqfp+Wh fmUuGPunLj2Meti6Cn4DjJ/UReROqR+aqawAi/JkfgKE64rrfkhjU8MtT8ivR4S5n6Yo08A7 HvgAlHDWRSGlNSDxwK9HtXy4FS2I60EdUIJM+Ut9OZNJG4CpbEQW1VBQoQoPuBw2EVa4P0u0 TgzQF+VoAAAAAElFTkSuQmCC From: Marko Lerota Date: Fri, 18 Feb 2005 09:23:09 +0100 Message-ID: <86ll9mcm4y.fsf@redcloud.local> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: redundant ethernet 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: Fri, 18 Feb 2005 08:22:22 -0000 I have two nic bge0 and bge0, and I would like them to have the same IP address in case that my redundant switch stop responding. Bridge is not an option, I tried with netgraph but I did not succeed. Does anyone have some solution? I followed the examples from google groups and I stuck with duplicated packets when both ethernets are plugged and 50% packet loss when one ethernet is unplugged, damn !!#@!#@!$%^@$#@ here is my config rc.conf ifconfig_bge0="1.2.3.4 netmask 255.255.0.0 media 100baseTX mediaopt full-duplex" ifconfig_bge1="media 100baseTX mediaopt full-duplex" and /usr/local/etc/rc.d/bonding.sh #!/bin/sh ifconfig bge1 up kldload /boot/kernel/ng_ether.ko kldload /boot/kernel/ng_one2many.ko ngctl mkpeer bge0: one2many upper one ngctl connect bge0: bge0:upper lower many0 ngctl connect bge1: bge0:upper lower many1 ngctl msg bge1: setpromisc 1 ngctl msg bge1: setautosrc 0 ngctl msg bge0:upper setconfig "{xmitAlg=1 failAlg=1 enabledLinks =[ 1 1 ] }" manual for this sucks -- One cannot sell the earth upon which the people walk Tacunka Witco From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 08:41:42 2005 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 8693016A4CE for ; Fri, 18 Feb 2005 08:41:42 +0000 (GMT) Received: from relay.bestcom.ru (relay.bestcom.ru [217.72.144.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 880B343D5E for ; Fri, 18 Feb 2005 08:41:41 +0000 (GMT) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (root@cell.sick.ru [217.72.144.68]) by relay.bestcom.ru (8.13.1/8.12.9) with ESMTP id j1I8fdwh055160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 18 Feb 2005 11:41:40 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id j1I8fdlp004308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Feb 2005 11:41:39 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id j1I8fc3E004307; Fri, 18 Feb 2005 11:41:39 +0300 (MSK) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@freebsd.org using -f Date: Fri, 18 Feb 2005 11:41:38 +0300 From: Gleb Smirnoff To: Marko Lerota Message-ID: <20050218084138.GB4027@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Marko Lerota , freebsd-net@freebsd.org References: <86ll9mcm4y.fsf@redcloud.local> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <86ll9mcm4y.fsf@redcloud.local> User-Agent: Mutt/1.5.6i X-Virus-Scanned: ClamAV version devel-20050125, clamav-milter version 0.80ff on relay.bestcom.ru X-Virus-Status: Clean cc: freebsd-net@freebsd.org Subject: Re: redundant ethernet 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: Fri, 18 Feb 2005 08:41:42 -0000 On Fri, Feb 18, 2005 at 09:23:09AM +0100, Marko Lerota wrote: M> I have two nic bge0 and bge0, and I would like them M> to have the same IP address in case that my redundant M> switch stop responding. Bridge is not an option, M> I tried with netgraph but I did not succeed. M> Does anyone have some solution? M> M> here is my config M> M> rc.conf M> ifconfig_bge0="1.2.3.4 netmask 255.255.0.0 media 100baseTX mediaopt M> full-duplex" M> ifconfig_bge1="media 100baseTX mediaopt full-duplex" M> M> and /usr/local/etc/rc.d/bonding.sh M> M> #!/bin/sh M> ifconfig bge1 up M> kldload /boot/kernel/ng_ether.ko M> kldload /boot/kernel/ng_one2many.ko M> ngctl mkpeer bge0: one2many upper one M> ngctl connect bge0: bge0:upper lower many0 M> ngctl connect bge1: bge0:upper lower many1 M> ngctl msg bge1: setpromisc 1 M> ngctl msg bge1: setautosrc 0 M> ngctl msg bge0:upper setconfig "{xmitAlg=1 failAlg=1 enabledLinks =[ 1 M> 1 ] }" M> I followed the examples from google groups and I stuck with M> duplicated packets when both ethernets are plugged and M> 50% packet loss when one ethernet is unplugged, damn !!#@!#@!$%^@$#@ It is very strange that you have duplicates. Do you see duplicates of incoming or outgoing packets? 50% packet loss is because to ng_one2many can't detect which link is active and which is not. We have a solution for this in HEAD, but I'm very sorry we can't MFC this to RELENG_5 due to ABI freeze. You can bring up patches from HEAD to your system. Actually, I'd better recommend you the following setup: ifconfig bge0 up ifconfig bge1 up kldload /boot/kernel/ng_ether.ko kldload /boot/kernel/ng_one2many.ko kldload /boot/kernel/ng_eiface.ko ngctl mkpeer bge0: one2many lower many0 ngctl connect bge1: bge0:lower lower many1 ngctl msg bge1: setenaddr ${MAC-address-of-bge0} ngctl mkpeer bge0:lower eiface one ether ngctl msg bge0:lower.one set ${MAC-address-of-bge0} ngctl msg bge0:lower setconfig "{xmitAlg=1 failAlg=2 enabledLinks =[ 1 1 ] " ifconfig ngeth0 1.2.3.4 netmask 255.255.0.0 Notice that I use failAlg=2, to make ng_one2many listen to flow control messages. However, ng_ether can't send these messages in RELENG_5, see above. And this setup is not guaranteed to work flawlessly unless you have a smart switch and this two cables are plugged into one trunk group on switch. M> manual for this sucks I plan to write a handbook chapter on netgraph sometime this year. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 08:52:26 2005 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 C1F7616A4CE; Fri, 18 Feb 2005 08:52:26 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8485B43D5A; Fri, 18 Feb 2005 08:52:25 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1I8qNP0071771; Fri, 18 Feb 2005 10:52:23 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 59602-17; Fri, 18 Feb 2005 10:52:22 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1I8qMZg071768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Feb 2005 10:52:22 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j1I8qSq7047518; Fri, 18 Feb 2005 10:52:28 +0200 (EET) (envelope-from ru) Date: Fri, 18 Feb 2005 10:52:28 +0200 From: Ruslan Ermilov To: Marko Lerota Message-ID: <20050218085228.GB47403@ip.net.ua> References: <86ll9mcm4y.fsf@redcloud.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Bn2rw/3z4jIqBvZU" Content-Disposition: inline In-Reply-To: <86ll9mcm4y.fsf@redcloud.local> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: freebsd-net@FreeBSD.org cc: Gleb Smirnoff Subject: Re: redundant ethernet 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: Fri, 18 Feb 2005 08:52:26 -0000 --Bn2rw/3z4jIqBvZU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 18, 2005 at 09:23:09AM +0100, Marko Lerota wrote: > I have two nic bge0 and bge0, and I would like them=20 > to have the same IP address in case that my redundant=20 > switch stop responding. Bridge is not an option,=20 > I tried with netgraph but I did not succeed.=20 > Does anyone have some solution? >=20 > I followed the examples from google groups and I stuck with > duplicated packets when both ethernets are plugged and=20 > 50% packet loss when one ethernet is unplugged, damn !!#@!#@!$%^@$#@ >=20 > here is my config=20 >=20 > rc.conf=20 > ifconfig_bge0=3D"1.2.3.4 netmask 255.255.0.0 media 100baseTX mediaopt > full-duplex" > ifconfig_bge1=3D"media 100baseTX mediaopt full-duplex" >=20 > and /usr/local/etc/rc.d/bonding.sh >=20 > #!/bin/sh > ifconfig bge1 up > kldload /boot/kernel/ng_ether.ko > kldload /boot/kernel/ng_one2many.ko > ngctl mkpeer bge0: one2many upper one > ngctl connect bge0: bge0:upper lower many0 > ngctl connect bge1: bge0:upper lower many1 > ngctl msg bge1: setpromisc 1 > ngctl msg bge1: setautosrc 0 > ngctl msg bge0:upper setconfig "{xmitAlg=3D1 failAlg=3D1 enabledLinks =3D= [ 1 > 1 ] }"=20 >=20 > manual for this sucks=20 >=20 This isn't going to work -- packets will be transmitted in round-robin manner, which is not what you want for failure protection. What you need is to use xmitAlg=3D2 (NG_ONE2MANY_XMIT_ALL) so that each frame is delivered out of all interfaces, and then enable STP on your switches. I didn't test it, but it should work. The example in the ng_one2many(4) manpage, like the one you quote above but with four interfaces, is to demonstrate how to set up a 400Mbit/s connection between two hosts. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --Bn2rw/3z4jIqBvZU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCFazMqRfpzJluFF4RAsBWAJ0U20EJ7EMR+G51J/SaZF35PHeU0ACgj1xE xb6TdNjx2bAi3Dp4bmWIzp4= =9fmk -----END PGP SIGNATURE----- --Bn2rw/3z4jIqBvZU-- From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 09:08:03 2005 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 AEBCB16A4CE for ; Fri, 18 Feb 2005 09:08:03 +0000 (GMT) Received: from mortis.over-yonder.net (adsl-12-34-239.jan.bellsouth.net [65.12.34.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0585743D54 for ; Fri, 18 Feb 2005 09:08:01 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 844A621012; Fri, 18 Feb 2005 03:07:58 -0600 (CST) Date: Fri, 18 Feb 2005 03:07:58 -0600 From: "Matthew D. Fuller" To: Julian Stacey Message-ID: <20050218090757.GI79745@over-yonder.net> References: <200502171931.j1HJV6GR018970@fire.jhs.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502171931.j1HJV6GR018970@fire.jhs.private> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.6i-fullermd.2 cc: freebsd-net@freebsd.org Subject: Re: nslookup problem on FreeBSD-5.3: problem with non FQN domain 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: Fri, 18 Feb 2005 09:08:03 -0000 On Thu, Feb 17, 2005 at 08:31:06PM +0100 I heard the voice of Julian Stacey, and lo! it spake thus: [...] > but though `tower' & `thin' are also OK with non fully qualified name `thin', > running nslookup localy on `flat' now gives errors: [...] > /etc/resolv.conf has > # domain berklix.org ^ -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 10:55:58 2005 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 D7B8216A4CE for ; Fri, 18 Feb 2005 10:55:58 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED61D43D49 for ; Fri, 18 Feb 2005 10:55:57 +0000 (GMT) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A5A75.dip.t-dialin.net [84.154.90.117]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j1IAtsYS084600; Fri, 18 Feb 2005 11:55:55 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j1IAuoWd001724; Fri, 18 Feb 2005 11:56:51 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (localhost [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j1IAuowf004904; Fri, 18 Feb 2005 11:56:50 +0100 (CET) (envelope-from jhs@fire.jhs.private) Message-Id: <200502181056.j1IAuowf004904@fire.jhs.private> To: "Matthew D. Fuller" In-Reply-To: Message from "Matthew D. Fuller" <20050218090757.GI79745@over-yonder.net> Date: Fri, 18 Feb 2005 11:56:50 +0100 From: "Julian H. Stacey" cc: freebsd-net@freebsd.org Subject: Re: nslookup problem on FreeBSD-5.3: problem with non FQN domain 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: Fri, 18 Feb 2005 10:55:59 -0000 "Matthew D. Fuller" wrote: > > but though `tower' & `thin' are also OK with non fully qualified name `thin', > > running nslookup localy on `flat' now gives errors: > [...] > > /etc/resolv.conf has > > # domain berklix.org No, sorry, it's not that, I only indented with tab to make the mail easier to read, there's no beginning of line tab in original. (But a good guess, thanks, I remember reading of something in /etc, .. hosts I think, that isn't documented but doesnt take kindly to eg "^ # this is a comment that starts as newline, tab, hash, comment" ) BTW re. things invisible to mail list only I can see: My /etc/resolv.conf is a symbolic link, I tried converting it to a file, but didn't help though (well, eg inetd.conf isnt happy as a sym link). Other ideas anyone ? - Julian Stacey Net & Sys Eng Consultant, Munich http://berklix.com Mail in Ascii (Html=Spam). Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 10:57:20 2005 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 D214A16A4CE for ; Fri, 18 Feb 2005 10:57:20 +0000 (GMT) Received: from mortis.over-yonder.net (adsl-12-34-239.jan.bellsouth.net [65.12.34.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3063C43D46 for ; Fri, 18 Feb 2005 10:57:20 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 6E06A21012; Fri, 18 Feb 2005 04:57:18 -0600 (CST) Date: Fri, 18 Feb 2005 04:57:18 -0600 From: "Matthew D. Fuller" To: "Julian H. Stacey" Message-ID: <20050218105717.GJ79745@over-yonder.net> References: <20050218090757.GI79745@over-yonder.net> <200502181056.j1IAuowf004904@fire.jhs.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502181056.j1IAuowf004904@fire.jhs.private> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.6i-fullermd.2 cc: freebsd-net@freebsd.org Subject: Re: nslookup problem on FreeBSD-5.3: problem with non FQN domain 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: Fri, 18 Feb 2005 10:57:20 -0000 On Fri, Feb 18, 2005 at 11:56:50AM +0100 I heard the voice of Julian H. Stacey, and lo! it spake thus: > "Matthew D. Fuller" wrote: > > > but though `tower' & `thin' are also OK with non fully qualified name `thin', > > > running nslookup localy on `flat' now gives errors: > > [...] > > > /etc/resolv.conf has > > > # domain berklix.org > > No, sorry, it's not that, I only indented with tab to make the mail > easier to read, there's no beginning of line tab in original. I was pointing at the #, actually. I've got 4 char tabstops ;p -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 11:59:38 2005 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 36EE216A4CE for ; Fri, 18 Feb 2005 11:59:38 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8042943D48 for ; Fri, 18 Feb 2005 11:59:37 +0000 (GMT) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A3FB0.dip.t-dialin.net [84.154.63.176]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j1IBxYYS084839; Fri, 18 Feb 2005 12:59:35 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j1IC0XDQ001963; Fri, 18 Feb 2005 13:00:33 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (localhost [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j1IC0XIw005420; Fri, 18 Feb 2005 13:00:33 +0100 (CET) (envelope-from jhs@fire.jhs.private) Message-Id: <200502181200.j1IC0XIw005420@fire.jhs.private> To: "Matthew D. Fuller" In-Reply-To: Message from "Matthew D. Fuller" <20050218105717.GJ79745@over-yonder.net> Date: Fri, 18 Feb 2005 13:00:33 +0100 From: "Julian H. Stacey" cc: freebsd-net@freebsd.org Subject: Re: nslookup problem on FreeBSD-5.3: problem with non FQN domain 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: Fri, 18 Feb 2005 11:59:38 -0000 "Matthew D. Fuller" wrote: > On Fri, Feb 18, 2005 at 11:56:50AM +0100 I heard the voice of > Julian H. Stacey, and lo! it spake thus: > > "Matthew D. Fuller" wrote: > > > > but though `tower' & `thin' are also OK with non fully qualified name `thin', > > > > running nslookup localy on `flat' now gives errors: > > > [...] > > > > /etc/resolv.conf has > > > > # domain berklix.org > > > > No, sorry, it's not that, I only indented with tab to make the mail > > easier to read, there's no beginning of line tab in original. > > I was pointing at the #, actually. I've got 4 char tabstops ;p Oh, OK. So I removed every line with a # & all blank lines, leaving just --- nameserver 127.0.0.1 nameserver 194.221.32.6 nameserver 194.221.87.2 --- It didnt help. - Julian Stacey Net & Sys Eng Consultant, Munich http://berklix.com Mail in Ascii (Html=Spam). Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 12:03:19 2005 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 A579716A4CE for ; Fri, 18 Feb 2005 12:03:19 +0000 (GMT) Received: from mortis.over-yonder.net (adsl-12-34-239.jan.bellsouth.net [65.12.34.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1999A43D39 for ; Fri, 18 Feb 2005 12:03:19 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 5B13121012; Fri, 18 Feb 2005 06:03:17 -0600 (CST) Date: Fri, 18 Feb 2005 06:03:16 -0600 From: "Matthew D. Fuller" To: "Julian H. Stacey" Message-ID: <20050218120316.GK79745@over-yonder.net> References: <20050218105717.GJ79745@over-yonder.net> <200502181200.j1IC0XIw005420@fire.jhs.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502181200.j1IC0XIw005420@fire.jhs.private> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.6i-fullermd.2 cc: freebsd-net@freebsd.org Subject: Re: nslookup problem on FreeBSD-5.3: problem with non FQN domain 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: Fri, 18 Feb 2005 12:03:19 -0000 On Fri, Feb 18, 2005 at 01:00:33PM +0100 I heard the voice of Julian H. Stacey, and lo! it spake thus: > > Oh, OK. So I removed every line with a # & all blank lines, leaving just > --- > nameserver 127.0.0.1 > nameserver 194.221.32.6 > nameserver 194.221.87.2 > --- > It didnt help. Nonono; the other thing you do with commented lines :) You need the "domain berklix.org" (or a similar "search" line) for it to guess a domain for non-FQDN lookups. That'll tell it to check "flat.berklix.org" if it can't find "flat" (or the other order; I can never remember); otherwise how would it know what to try? -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 13:23:54 2005 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 A7DCF16A4CE for ; Fri, 18 Feb 2005 13:23:54 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C998543D53 for ; Fri, 18 Feb 2005 13:23:53 +0000 (GMT) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A3FB0.dip.t-dialin.net [84.154.63.176]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j1IDNpYS085179; Fri, 18 Feb 2005 14:23:52 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j1IDOlYo002253; Fri, 18 Feb 2005 14:24:48 +0100 (CET) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (localhost [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j1IDOlE0008187; Fri, 18 Feb 2005 14:24:47 +0100 (CET) (envelope-from jhs@fire.jhs.private) Message-Id: <200502181324.j1IDOlE0008187@fire.jhs.private> To: "Matthew D. Fuller" In-Reply-To: Message from "Matthew D. Fuller" <20050218120316.GK79745@over-yonder.net> Date: Fri, 18 Feb 2005 14:24:47 +0100 From: "Julian H. Stacey" cc: freebsd-net@freebsd.org Subject: Re: nslookup problem on FreeBSD-5.3: problem with non FQN domain 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: Fri, 18 Feb 2005 13:23:54 -0000 "Matthew D. Fuller" wrote: > On Fri, Feb 18, 2005 at 01:00:33PM +0100 I heard the voice of > Julian H. Stacey, and lo! it spake thus: > > > > Oh, OK. So I removed every line with a # & all blank lines, leaving just > > --- > > nameserver 127.0.0.1 > > nameserver 194.221.32.6 > > nameserver 194.221.87.2 > > --- > > It didnt help. > > Nonono; the other thing you do with commented lines :) Yes, well, while in doubt testing, threw out all un-necessary complication. > You need the "domain berklix.org" (or a similar "search" line) for it > to guess a domain for non-FQDN lookups. I've not needed that till now on any of the 3 servers (since I changed my hostnames from *.bsn.com to *.berklix.org a long time back, before then I needed that admittedly). It's optional now. > That'll tell it to check > "flat.berklix.org" if it can't find "flat" (or the other order; I can > never remember); otherwise how would it know what to try? By default from the domain name part returned by `hostname` per man resolv.conf under domain & search I was wondering if it might be a reverse lookup problem, as my IP is 194.221.32.28, & that (via nslookup) returns bim.bsn.com but that can't be the problem, else I'd be seeing same problem on another of my machines: tower.berklix.org = 194.221.32.7 = bsd.bsn.com However, I was going to experiment by adding back domain & search in resolv.conf, but unfortunately I now can't reproduce the problem, so can't tell if adding them back would clear the problem that's now gone ! Aargh ! - Julian Stacey Net & Sys Eng Consultant, Munich http://berklix.com Mail in Ascii (Html=Spam). Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 14:50:15 2005 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 B408616A4CE for ; Fri, 18 Feb 2005 14:50:15 +0000 (GMT) Received: from edormio.bja-electronics.nl (bja-electronics.nl [194.109.198.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80DE843D2F for ; Fri, 18 Feb 2005 14:50:14 +0000 (GMT) (envelope-from freebsd@bja-electronics.nl) Received: from edormio.bja-electronics.nl (localhost [127.0.0.1]) j1IEoDqC002934 for ; Fri, 18 Feb 2005 15:50:13 +0100 (CET) (envelope-from freebsd@bja-electronics.nl) Received: from localhost (localhost [[UNIX: localhost]]) by edormio.bja-electronics.nl (8.13.1/8.13.1/Submit) id j1IEoCrA002933 for freebsd-net@freebsd.org; Fri, 18 Feb 2005 15:50:12 +0100 (CET) (envelope-from freebsd@bja-electronics.nl) X-Authentication-Warning: edormio.bja-electronics.nl: jeroen set sender to freebsd@bja-electronics.nl using -f From: Jeroen Arnoldus Organization: BJA-electronics To: freebsd-net@freebsd.org Date: Fri, 18 Feb 2005 15:50:12 +0100 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502181550.12812.freebsd@bja-electronics.nl> Subject: [NFS]Solaris 5.9 NFS server FreeBSD 5.3 client lost connection 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: Fri, 18 Feb 2005 14:50:15 -0000 I've updated my workstation from FreeBSD 4.11 to FreeBSD 5.3. I've a strange error with the NFS connection from my workstation to the nfs server. The NFS server is a sun sparc V100 running solaris 5.9. The FreeBSD 5.3 client gives connection lost / alive again messages after an hour of running. The NIC of the FreeBSD machine is an 3com 3c905. This problem doesn't occur when I'm running FreeBSD 4.x. What could be a solution for this problem? Kind regards, Jeroen Arnoldus -- ***************************************************** BJA Electronics Voorplecht 3 1186WP Amstelveen The Netherlands Tel: +31 / (0) 20 / 3411697 Fax: +31 / (0) 20 / 3411698 Mobile: +31 / (0) 6 / 10386930 Email: freebsd@bja-electronics.nl URL: http://www.bja-electronics.nl ***************************************************** From owner-freebsd-net@FreeBSD.ORG Fri Feb 18 18:57:55 2005 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 92AFA16A4CF for ; Fri, 18 Feb 2005 18:57:55 +0000 (GMT) Received: from meisai.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 9064643D55 for ; Fri, 18 Feb 2005 18:57:54 +0000 (GMT) (envelope-from reichert@numachi.com) Received: (qmail 19998 invoked from network); 18 Feb 2005 18:57:53 -0000 Received: from natto.numachi.com (198.175.254.216) by meisai.numachi.com with SMTP; 18 Feb 2005 18:57:53 -0000 Received: (qmail 86279 invoked by uid 1001); 18 Feb 2005 18:57:53 -0000 Date: Fri, 18 Feb 2005 13:57:53 -0500 From: Brian Reichert To: Robert Watson Message-ID: <20050218185753.GO84909@numachi.com> References: <96b30c4005021601471c058d0f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.7i cc: freebsd-net@freebsd.org cc: Juan Rodriguez Subject: Re: FreeBSD 5.3 hangs on high network load 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: Fri, 18 Feb 2005 18:57:55 -0000 On Wed, Feb 16, 2005 at 11:59:21AM +0000, Robert Watson wrote: > If possible, the first thing would be to try moving to the head of > 5-STABLE to see if the bug has already been fixed there already or not. A > significant number of interesting bugs have been fixed since the release > of 5.3. Are many of these 'interesting bugs' reflected in the errata documment for 5.3-RELEASE at: http://www.freebsd.org/releases/5.3R/errata.html I see a spate of updates dated from this past November. I don't know if that's the best place to see a succinct 'these bugs were corrected in -STABLE' list, but it would be handy... > > Robert N M Watson > -- Brian Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large From owner-freebsd-net@FreeBSD.ORG Sat Feb 19 13:50:55 2005 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 D4AFF16A4CE for ; Sat, 19 Feb 2005 13:50:55 +0000 (GMT) Received: from web25002.mail.ukl.yahoo.com (web25002.mail.ukl.yahoo.com [217.12.10.38]) by mx1.FreeBSD.org (Postfix) with SMTP id F273E43D45 for ; Sat, 19 Feb 2005 13:50:54 +0000 (GMT) (envelope-from kidjue@yahoo.co.uk) Received: (qmail 90874 invoked by uid 60001); 19 Feb 2005 13:50:54 -0000 Message-ID: <20050219135054.90872.qmail@web25002.mail.ukl.yahoo.com> Received: from [81.199.88.22] by web25002.mail.ukl.yahoo.com via HTTP; Sat, 19 Feb 2005 13:50:53 GMT Date: Sat, 19 Feb 2005 13:50:53 +0000 (GMT) From: Emma Jukie To: Odhiambo Washington In-Reply-To: <20050211081640.GR4565@ns2.wananchi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-isp@freebsd.org cc: freebsd-net@freebsd.org Subject: Re: Possible Problem With Apache 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: Sat, 19 Feb 2005 13:50:56 -0000 My partial httpd.conf file: # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/usr/local/www/cgi-bin" # # Each directory to which Apache has access, can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # permissions. # AllowOverride None Options None Order allow,deny Allow from all AuthName "Restricted Files" AuthType Basic AuthUserFile /usr/local/etc/httpd/users require valid-user Also; Alias /cgi-perl/ /usr/local/www/cgi-perl/ SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader on Options ExecCGI SetHandler perl-script PerlHandler Apache::Status order deny,allow deny from all allow from 172.16.0.175 # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # # ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/" # # "/usr/local/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # AllowOverride None Options None Order allow,deny Allow from all # End of aliases. The perl files that get executed when the GUI comes up are located under: /usr/local/www/cgi-perl/ Hope this adds a little more insight! Thanks, Emma. --- Odhiambo Washington wrote: > * Emma Jukie [20050210 16:55]: > wrote: > > What do you mean when you write, "that virtualhost > > error log?" > > Show us your apache configuration, especially the > part that deals > with that script you are using. For completeness, > show the whole > configuration. > > > -Wash > > http://www.netmeister.org/news/learn2quote.html > > -- > +======================================================================+ > |\ _,,,---,,_ | Odhiambo Washington > > Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. > www.wananchi.com > |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 > +254 20 313922 > '---''(_/--' `-'\_) | GSM: +254 722 743223 > +254 733 744121 > +======================================================================+ > You've been leading a dog's life. Stay off the > furniture. > ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com From owner-freebsd-net@FreeBSD.ORG Sat Feb 19 13:58:30 2005 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 6AB3316A4CF for ; Sat, 19 Feb 2005 13:58:30 +0000 (GMT) Received: from web25006.mail.ukl.yahoo.com (web25006.mail.ukl.yahoo.com [217.12.10.42]) by mx1.FreeBSD.org (Postfix) with SMTP id 5FC4243D41 for ; Sat, 19 Feb 2005 13:58:29 +0000 (GMT) (envelope-from kidjue@yahoo.co.uk) Received: (qmail 4095 invoked by uid 60001); 19 Feb 2005 13:58:28 -0000 Message-ID: <20050219135828.4093.qmail@web25006.mail.ukl.yahoo.com> Received: from [81.199.88.22] by web25006.mail.ukl.yahoo.com via HTTP; Sat, 19 Feb 2005 13:58:28 GMT Date: Sat, 19 Feb 2005 13:58:28 +0000 (GMT) From: Emma Jukie To: M In-Reply-To: <200502121807.SAA02304@mailhost.mlnet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-isp@freebsd.org cc: freebsd-net@freebsd.org Subject: Re: Possible Problem With Apache 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: Sat, 19 Feb 2005 13:58:30 -0000 Apparently apache is still running at that point in time. My error log is as follows; test# tail /var/log/httpd-error.log [Sat Feb 19 16:38:17 2005] [notice] Accept mutex: flock (Default: flock) [Sat Feb 19 16:38:19 2005] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/cgi-bin/favicon.ico [Sat Feb 19 16:38:22 2005] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/cgi-bin/favicon.ico [Sat Feb 19 16:38:24 2005] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/cgi-bin/favicon.ico [Sat Feb 19 16:38:27 2005] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/cgi-bin/favicon.ico [Sat Feb 19 16:38:38 2005] [notice] SIGHUP received. Attempting to restart [Sat Feb 19 16:38:39 2005] [notice] Apache/1.3.33 (Unix) mod_perl/1.29 mod_ssl/2.8.22 OpenSSL/0.9.7d configured -- resuming normal operations [Sat Feb 19 16:38:39 2005] [notice] Accept mutex: flock (Default: flock) [Sat Feb 19 16:38:41 2005] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/cgi-bin/favicon.ico [Sat Feb 19 16:38:43 2005] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/cgi-bin/favicon.ico Rgds, Emma. --- M wrote: > > What does your error_log say? > Is apache still running? > > Put debug messages in your script (if you print to > STDERR, eg > > print STDERR "watchpoint 4 variable x=$x\n"; > > you can get more usefull information in your > error_log > file. > > Write perl which has 'use strict;' somewhere near > the > top - best practice. If you can use -Tw at the > start > oif the first line, eg > #!/usr/local/bin/perl -Tw > (path is dependant on where perl is located on your > system.) > > My guess is that you have a bug in your perl script > that > causes it to either eat memory, not close files, > leave locks, or never end. > > > Regards > > > Matthew > > > > > Hi all, > > > > I have created a GUI with the help of Perl scripts > and > > Apache as my web server and this is running off a > > FreeBSD 4.x platform. The GUI has several menus > plus > > components but the problem is whenever I click on > a > > menu say, 'Submit' after I have made some > > modifications, a web page comes up with the error, > > "Internal Server Error, please contact your > Systems > > Administrator." To overcome this and view the page > I > > want, I have to restart apache from command line. > Yet > > at this point in time apache is actually running! > > > > My Apache and Perl versions are as below; > > apache+mod_ssl-1.3.33+2.8.22 > > mod_perl-1.29_1 > > > > Anyone got ideas on how I can go about this? Your > > quick responses will be highly appreciated. > > > > Thanks, > > Emma. > > > > > > > > > > > > > > > > > ___________________________________________________________ > > > ALL-NEW Yahoo! Messenger - all new features - even > more fun! http://uk.messenger.yahoo.com > > _______________________________________________ > > 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" > > > > > > ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com