From owner-freebsd-questions Fri Jul 3 12:08:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA06971 for freebsd-questions-outgoing; Fri, 3 Jul 1998 12:08:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from psln1.psln.com (psln.com [206.99.118.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA06942 for ; Fri, 3 Jul 1998 12:08:18 -0700 (PDT) (envelope-from dkeller@psln.com) Received: from g6200 (chester01.psln.com [206.155.61.101]) by psln1.psln.com (8.8.8/8.8.8) with SMTP id LAA05619 for ; Fri, 3 Jul 1998 11:54:46 -0700 (PDT) From: "Daniel Keller" To: "FreeBSD Questions List" Subject: FW: natd packets never return to original host? Date: Fri, 3 Jul 1998 12:34:44 -0700 Message-ID: <000201bda6b9$a16bd080$653d9bce@g6200> 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 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0518.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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