From owner-freebsd-questions Sat Aug 11 16:38:56 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 C6E2C37B405 for ; Sat, 11 Aug 2001 16:38:52 -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 f7BIslY00560 for questions@freebsd.org; Sat, 11 Aug 2001 18:54:47 GMT (envelope-from wardd) Date: Sat, 11 Aug 2001 18:54:47 +0000 From: William Ward To: questions@freebsd.org Subject: natd and aliases on same interface Message-ID: <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 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 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