From owner-freebsd-questions Wed Jul 1 00:11:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA08343 for freebsd-questions-outgoing; Wed, 1 Jul 1998 00:11:46 -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 AAA08337 for ; Wed, 1 Jul 1998 00:11:40 -0700 (PDT) (envelope-from dkeller@psln.com) Received: from g6200 (chester16.psln.com [206.155.61.116]) by psln1.psln.com (8.8.8/8.8.8) with SMTP id XAA23740 for ; Tue, 30 Jun 1998 23:58:09 -0700 (PDT) From: "Daniel Keller" To: "FreeBSD Questions List" Subject: natd packets never return to original host? Date: Wed, 1 Jul 1998 00:38:33 -0700 Message-ID: <000001bda4c3$4023ade0$743d9bce@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 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