From owner-freebsd-questions Mon Aug 25 23:27:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA13977 for questions-outgoing; Mon, 25 Aug 1997 23:27:14 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA13960 for ; Mon, 25 Aug 1997 23:27:10 -0700 (PDT) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id QAA19780; Tue, 26 Aug 1997 16:25:02 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id PAA09982; Tue, 26 Aug 1997 15:54:54 +0930 (CST) Message-ID: <19970826155453.06482@lemis.com> Date: Tue, 26 Aug 1997 15:54:53 +0930 From: Greg Lehey To: Charles Mott Cc: Craig , questions@FreeBSD.ORG Subject: Re: FreeBSD as a LAN to Internet gateway References: <3401DCA2.167EB0E7@ferraro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e aFrom: Greg Lehey In-Reply-To: ; from Charles Mott on Mon, Aug 25, 1997 at 01:12:36PM -0700 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Aug 25, 1997 at 01:12:36PM -0700, Charles Mott wrote: > On Mon, 25 Aug 1997, Craig wrote: >> I am new to FreeBSD (I just installed it Friday) and I have been trying >> to set up a network with my FreeBSD machine as an Internet gateway. I >> have read the tutorial at http://www.freebsd.org/tutorials/ppp/ and have >> confirmed that I followed the necessary steps. >> >> I can easily make connections between computers within my network, but >> when I try to get traffic to the Internet, nothing works. I have >> verified that packet forwarding is enabled and the initializes at boot. >> >> Below is the tcpdump output from a computer named stentor attempting to >> ping he.net (or 207.33.3.2). > > First of all, I'm not sure what all that netbios traffic below is about. > If you are using user ppp, then you should do "tcpdump -n -i tun0". That > will show the traffic actually going outside your local area network. It > looks like you are dumping out your ethernet interface. Also, are you > using "ppp -alias" or do you have a registered subnet? > >> >> 15:09:21.309164 stentor.ferraro.net.netbios-ns > >> 192.168.1.255.netbios-ns: udp 68 >> 15:09:21.312862 0:40:5:4c:41:21 > 3:0:0:0:0:1 sap f0 ui/C len=44 >> 2c00 ffef 0100 0000 0000 0a00 0000 0000 >> 0000 0000 0000 0000 0000 0000 4a4f 4520 >> 2020 2020 2020 2020 2020 2003 >> 15:09:22.088303 stentor.ferraro.net.netbios-ns > >> 192.168.1.255.netbios-ns: udp 68 >> 15:09:22.209690 0:40:5:4c:41:21 > 3:0:0:0:0:1 sap f0 ui/C len=44 >> 2c00 ffef 0100 0000 0000 0a00 0000 0000 >> 0000 0000 0000 0000 0000 0000 4a4f 4520 >> 2020 2020 2020 2020 2020 2003 >> 15:09:22.883083 stentor.ferraro.net.netbios-ns > >> 192.168.1.255.netbios-ns: udp 68 >> 15:09:23.257784 0:40:5:4c:41:21 > 3:0:0:0:0:1 sap f0 ui/C len=44 >> 2c00 ffef 0100 0000 0000 0a00 0000 0000 >> 0000 0000 0000 0000 0000 0000 4a4f 4520 >> 2020 2020 2020 2020 2020 2003 >> 15:09:23.669735 stentor.ferraro.net.netbios-ns > >> 192.168.1.255.netbios-ns: udp 68 >> 15:10:21.354658 stentor.ferraro.net.netbios-ns > >> 192.168.1.255.netbios-ns: udp 50 >> 15:10:22.108746 stentor.ferraro.net.netbios-ns > >> 192.168.1.255.netbios-ns: udp 50 >> 15:10:22.864608 stentor.ferraro.net.netbios-ns > >> 192.168.1.255.netbios-ns: udp 50 >> 15:10:35.248136 stentor.ferraro.net > he.net: icmp: echo request >> 15:10:36.441001 stentor.ferraro.net > he.net: icmp: echo request >> 15:10:37.954249 stentor.ferraro.net > he.net: icmp: echo request >> 15:10:38.972695 stentor.ferraro.net > he.net: icmp: echo request >> 15:11:20.590660 0:40:5:4c:41:21 > 3:0:0:0:0:1 sap f0 ui/C len=170 >> 2c00 ffef 0800 0000 0000 0000 4e45 5420 >> 2020 2020 2020 2020 2020 201e 5354 454e >> 544f 5220 2020 2020 2020 2000 ff53 4d42 >> 2500 00 >> 15:11:20.648005 stentor.ferraro.net.netbios-dgm > >> 192.168.1.255.netbios-dgm: udp 208 It looks as if Charles is right, since we're seeing Ethernet addresses for the NetBIOS stuff. We shouldn't be seeing the ping to he.net on this interface at all. This would mean that you haven't set up your routing right. Check your /etc/ppp/ppp.linkup file. Greg