From owner-freebsd-questions Sun Aug 12 7:22:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from d1c47d61.gw206.dsl.airmail.net (d1c47d61.gw206.dsl.airmail.net [209.196.125.97]) by hub.freebsd.org (Postfix) with ESMTP id 617D837B403 for ; Sun, 12 Aug 2001 07:22:51 -0700 (PDT) (envelope-from wardd@d1c47d61.gw206.dsl.airmail.net) Received: (from wardd@localhost) by d1c47d61.gw206.dsl.airmail.net (8.11.4/8.11.1) id f7C9ck004810 for questions@FreeBSD.ORG; Sun, 12 Aug 2001 09:38:46 GMT (envelope-from wardd) Date: Sun, 12 Aug 2001 09:38:40 +0000 From: William Ward To: questions@FreeBSD.ORG Subject: Re: natd and aliases on same interface Message-ID: <20010812093840.A4733@d1c47d61.gw206.dsl.airmail.net> References: <20010811185447.B491@d1c47d61.gw206.dsl.airmail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010811185447.B491@d1c47d61.gw206.dsl.airmail.net>; from wardd@d1c47d61.gw206.dsl.airmail.net on Sat, Aug 11, 2001 at 06:54:47PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Okay. I'm new at this mailing list thing. Did I not form my question in a way that would get some sort of response? On Sat, Aug 11, 2001 at 06:54:47PM +0000, William Ward wrote: > How can I tell natd not to divert an alias when trying to communicate > on my local area network? > > I'm sure this is a common problem so I won't go into too much detail. > > I have four machines connected to the ports on my DSL router. I'm using > one machine with nat to connect the other three machines to the internet. > The problem is caused because I have two subnets on the same interface > and nat translates the alias to the public IP address before going > out over the local area network. > > This is what I would like to avoid: > > toaster% telnet 10.0.0.25 > ... > sawdust% who am i > wardd ttyp2 Nov 22 07:33 (128.1.1.2) > ^^^^^^^^^ this! > > I would much rather the other box see the 10.x address instead. > > d1c47d61# ifconfig dc0 > dc0: flags=8843 mtu 1500 > inet 128.1.1.2 netmask 0xffffffc0 broadcast 128.1.1.0 > inet6 XXXX::XXX:XXXX:XXXX:XXXX%dc0 prefixlen 64 scopeid 0x1 > inet 10.0.0.11 netmask 0xffffff00 broadcast 10.0.0.255 > ether XX:XX:XX:XX:XX:XX > media: Ethernet autoselect (100baseTX) > status: active > > d1c47d61# ipfw list > 00050 divert 8668 ip from any to any via dc0 > 00100 allow ip from any to any via lo0 > 00200 deny ip from any to 127.0.0.0/8 > 65000 allow ip from any to any > 65535 deny ip from any to any > > The machine is running 4.3-CURRENT. > > /William > > 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