From owner-freebsd-net@FreeBSD.ORG Wed Nov 30 13:56:43 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 AC61816A43D for ; Wed, 30 Nov 2005 13:56:42 +0000 (GMT) (envelope-from spadge@fromley.net) Received: from mta08-winn.ispmail.ntl.com (mta08-winn.ispmail.ntl.com [81.103.221.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78D4143D8A for ; Wed, 30 Nov 2005 13:56:26 +0000 (GMT) (envelope-from spadge@fromley.net) Received: from aamta11-winn.ispmail.ntl.com ([81.103.221.35]) by mta08-winn.ispmail.ntl.com with ESMTP id <20051130135623.RQKI17804.mta08-winn.ispmail.ntl.com@aamta11-winn.ispmail.ntl.com> for ; Wed, 30 Nov 2005 13:56:23 +0000 Received: from tobermory.home ([82.18.8.27]) by aamta11-winn.ispmail.ntl.com with ESMTP id <20051130135623.MLTP16192.aamta11-winn.ispmail.ntl.com@tobermory.home> for ; Wed, 30 Nov 2005 13:56:23 +0000 Received: from [192.168.124.185] (unknown [192.168.124.185]) by tobermory.home (Postfix) with ESMTP id 980E4A6DDB for ; Wed, 30 Nov 2005 13:56:20 +0000 (GMT) Message-ID: <438DAF8D.9030705@fromley.net> Date: Wed, 30 Nov 2005 13:56:29 +0000 From: Spadge User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: frequent internet death in FreeBSD 6 - no idea why. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 30 Nov 2005 13:56:43 -0000 Hi all. I must admit to being completely stumped by this prooblem I am having with my FreeBSD 6 internet gateway. I don't even know where to start trying to troubleshoot it. The symptoms are: every now and then, usually (but not always) when I try to open a web page (using a client machine further down the NATed network) the browser sits there not opening anything and eventually errors out. While this happens, the gateway computer drops its connection to the internet completely, the cable modem's "cable" light goes out, starts flashing and goes back on again as if I had just unplugged the cable. Everything on the NAT side of the gateway disconnects from the internet, usually (multiple chat protocols, web browsing). Rarely, things on the gateway disconnect from the internet (ircd). I am trying to remember when this started happening, or when I noticed it at least (I am guessing they were around the same time) and it seems to me that it was around the time I had a pretty serious OS hang-up over some HDD 'setfeatures set transfer mode semaphore timeout' problem that caused a complete system lockup which required a hard reboot (physical button pushing). The HDD that was causing the problem was not the system disk, so all the data I am aware of having lost was just that: non OS-essential data. As I say, I am really stuck here. I have tried swapping out NICs, changing WAN for LAN, putting the cards in different PCI slots, rebuilding world/kernel with dummynet, rebuilding world/kernel without dummynet. I am at a loss as to what to try to do next. How do I go about finding out what's causing the problem so that I can try fixing it? spadge@tobermory$ uname -a FreeBSD tobermory.home 6.0-RELEASE FreeBSD 6.0-RELEASE #2: Wed Nov 30 02:19:31 GMT 2005 root@tobermory.home:/usr/obj/usr/src/sys/TOBERMORY i386 spadge@tobermory$ diff /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/TOBERMORY 66c66,80 < device apic # I/O APIC --- > # To make an SMP kernel, the next two are needed > options SMP # Symmetric MultiProcessor Kernel > device apic # I/O APIC > > # For ipfw/natd > > options IPFIREWALL > options IPDIVERT > options IPFIREWALL_DEFAULT_TO_ACCEPT > options IPFIREWALL_VERBOSE > > # For DUMMYNET packet shaping > # options DUMMYNET > # options HZ=1000 > spadge@tobermory$ ifconfig xl0 xl0: flags=8843 mtu 1500 options=8 inet6 fe80::260:8ff:fe79:bcdb%xl0 prefixlen 64 scopeid 0x1 inet 192.168.124.199 netmask 0xffffff00 broadcast 192.168.124.255 ether 00:60:08:79:bc:db media: Ethernet autoselect (100baseTX ) status: active spadge@tobermory$ ifconfig xl1 xl1: flags=8843 mtu 1500 options=9 inet6 fe80::250:4ff:fee9:114c%xl1 prefixlen 64 scopeid 0x2 inet 82.18.8.27 netmask 0xffffff00 broadcast 255.255.255.255 ether 00:50:04:e9:11:4c media: Ethernet autoselect (10baseT/UTP) status: active Running ipfw/nated/named/bind. DHCP client to the WAN side, fixed IPs on the LAN side. Not sure what further information is required. If there's anyone who could help shed some light on this problem, how to troubleshoot it etc, please please please do write back, I am at my wit's end here. Thanks. -- Spadge "Intoccabile" www.fromley.com