Date: Sun, 12 Aug 2001 09:38:40 +0000 From: William Ward <wardd@d1c47d61.gw206.dsl.airmail.net> To: questions@FreeBSD.ORG Subject: Re: natd and aliases on same interface Message-ID: <20010812093840.A4733@d1c47d61.gw206.dsl.airmail.net> 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 %2B0000 References: <20010811185447.B491@d1c47d61.gw206.dsl.airmail.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010812093840.A4733>