From owner-freebsd-questions Fri Jul 3 13:08:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA12245 for freebsd-questions-outgoing; Fri, 3 Jul 1998 13:08:22 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA12240 for ; Fri, 3 Jul 1998 13:08:19 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id MAA01851; Fri, 3 Jul 1998 12:58:56 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd001848; Fri Jul 3 19:58:51 1998 Date: Fri, 3 Jul 1998 12:58:47 -0700 (PDT) From: Julian Elischer To: Daniel Keller cc: FreeBSD Questions List Subject: Re: FW: natd packets never return to original host? In-Reply-To: <000201bda6b9$a16bd080$653d9bce@g6200> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It would be a lot easier for you to use the -alias option to the ppp daemon, as is incoporated the natd library directly rther than have to go via a second daemon. julian On Fri, 3 Jul 1998, Daniel Keller wrote: > Hi, i sent this message a few days ago to the wrong address, thanks. > -----Original Message----- > From: Daniel Keller [mailto:dkeller@psln.com] > Sent: Wednesday, July 01, 1998 12:39 AM > To: FreeBSD Questions List > Subject: natd packets never return to original host? > > > Hi, > I am having some problems getting natd working. I have one computer > (192.168.1.1.) which is attached to the internet by a dial up account to my > ISP and to another computer (192.168.1.2) by Ethernet. I want 192.168.1.2 to > use 192.168.1.1 as a gateway to the internet. I have ipfw and natd both > installed and working and the two computers can communicate (I can telnet > from one to the other fine). I start by doing: > > ipfw flush > ipfw add divert 32000 ip from any to any via ed0 > ipfw add pass ip from any to any > natd -port 32000 -interface ed0 -verbose > > when I do this and try to ping 206.99.118.101 (my ISP) from 192.168.1.2 ping > just does nothing al all and I get a bunch of messages on the computer > running natd (192.168.1.1). I get the following messages: > > Out [TCP] 192.168.1.1:1115 -> 192.168.1.2:23 aliased to > 192.168.1.1:1115 -> 192.168.1.2:23 > In [TCP] 192.168.1.2:23 -> 192.168.1.1:1115 aliased to > 192.168.1.2:23 -> 192.168.1.1:1115 > In [ICMP] 192.168.1.2 -> 206.99.118.101 aliased to > 192.168.1.2 -> 206.99.118.101 > ... > > > for some reason it seems like the addresses are be aliased to the same thing > as they originally were (i.e. they are not being changed at all). I have > also tried using "natd -port 32000 -a 192.168.1.1 -verbose" and "natd -port > 32000 -a 192.168.1.2 -verbose". I have no idea what to do at this point and > I'm sorry this message it a bit unclear, I've been messing with this all day > and am a bit tired. Any suggestions would be greatly appreciated. > Thanks, > Daniel Keller > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message