From owner-freebsd-questions Mon Jan 31 23:33:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by builder.freebsd.org (Postfix) with ESMTP id 32CC93D0C for ; Mon, 31 Jan 2000 23:33:49 -0800 (PST) Received: from morgaine (morgaine.wondermutt.net [192.168.1.2]) by wondermutt.net (8.9.3/8.9.3) with SMTP id CAA01559; Tue, 1 Feb 2000 02:30:21 -0500 (EST) (envelope-from papalia@udel.edu) Message-Id: <4.1.20000201022021.00951300@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 01 Feb 2000 02:28:09 -0500 To: cjclark@home.com, Ruslan Ermilov , freebsd-questions@FreeBSD.ORG From: John Subject: Re: NATD/Divert broken ? In-Reply-To: <20000131234750.E31346@cc942873-a.ewndsr1.nj.home.com> References: <4.1.20000131123443.00975da0@mail.udel.edu> <4.1.20000131120328.009749c0@mail.udel.edu> <4.1.20000131120328.009749c0@mail.udel.edu> <20000131193116.A72155@relay.ucb.crimea.ua> <4.1.20000131123443.00975da0@mail.udel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> tcpdump read in numerical form: >> >> 12:46:10.236727 128.175.75.157.3504 > 128.175.75.157.44540: S >> 1546226005:1546226005(0) win 16384 0,nop,nop,timestamp 10 >> 05956 0> (DF) >> >> 12:46:12.832052 128.175.75.157.3504 > 128.175.75.157.44540: S >> 1546226005:1546226005(0) win 16384 0,nop,nop,timestamp 10 >> 05961 0> (DF) >> >> 12:46:18.832277 128.175.75.157.3504 > 128.175.75.157.44540: S >> 1546226005:1546226005(0) win 16384 0,nop,nop,timestamp 10 >> 05973 0> (DF) >> >> >* ifconfig -au inet >> >> merlin# ifconfig -au inet >> fxp0: flags=8843 mtu 1500 >> inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 >> fxp1: flags=8843 mtu 1500 >> inet 128.175.75.157 netmask 0xffffff00 broadcast 128.175.75.255 >> lo0: flags=8049 mtu 16384 >> > >Is that _really_ how it looks? If so, your loopback is >misconfigured, or should I say it is not configured at all. Apparently a line got cut off in the cut-n-paste. It reads: lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xffffff00 and yes, that is really how it looks, and I never configured the lo0 interface - what you see is as/was/is installed. The above line matches what I've read in "The Complete FreeBSD", and I've seen nothing in the literature to contradict. If i'm mistaken, please point me in the right direction. >This makes me wonder about the tcpdump(8) output you showed. What >interface was that from? Was it the loopback where those packets >should have been going? The TCPDUMP you saw was generated with the following command line: merlin# tcpdump -s 1500 -w -i lo0 Unless i'm mistaken in the command line, that is most definitely displaying the output of "interface lo0", which is the loopback device. >Notice this: > >> merlin# netstat -arn >> Routing tables >> >> Internet: >> Destination Gateway Flags Refs Use Netif Expire >[snip] >> 127 lo0 USc 3 995 lo0 >> 127.0.0.1 lo0 UHW 1 5510 lo0 >[snip] >> 128.175.75.157 lo0 UHS 0 168 lo0 >[snip] > >These never actually lead anywhere. I don't think a device should ever >be a gateway. Mine look like, > >24.2.89.207 0:90:27:13:25:40 UHLW 0 30058 lo0 >127.0.0.1 127.0.0.1 UH 1 51637 lo0 If that's the case, then something is wrong somewhere else in the config. I have very rarely made manual changes to routing table, so the OS itself is coming up with these settings from the configs, but where? This may be part of the problem then. Those routes which I stated above only show when the failing connection is attempted. Thanks, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message