Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 1999 11:42:33 -0500 (CDT)
From:      "Jeffrey D. LaCoursiere" <jeff@jeff.net>
To:        freebsd-questions@freebsd.org
Subject:   NATD
Message-ID:  <Pine.BSF.4.10.9909051122450.13202-100000@dudemon.jeff.net>

next in thread | raw e-mail | index | archive | help

Greetings,

Have been playing with natd this weekend on a new box with two nic's.  I
have it basically working for a handful of machines on the dirty inside
net.  I pass the following to natd in /etc/natd.conf:

redirect_address 10.1.1.3 209.197.192.68

And added the 209.197.192.68 address as an alias on the outside interface
(whose normal address is 209.197.192.66).

This works like a charm for external hosts to hit the web port on the
inside machine and get a reply through natd.

Inside machines, on the other hand, must use the dirty address of this web
box to talk to it.  The gateway box running natd cannot talk to it but on
the dirty address either.  I have trapped the following on the external
interface when the gateway box tries to ping the inside box using the
external secondary address:

11:25:17.459779 arp who-has 209.197.192.68 tell 209.197.192.66
11:25:18.469800 arp who-has 209.197.192.68 tell 209.197.192.66

So it looks like the gateway is ARPing for the alias address on the
external interface - the same interface the alias is attached to!

Is this a FreeBSD bug?  Seems like it ought to RARP itself :)  I am also
confused why the translation didn't take place first.  I ran natd in -v
mode to see what it was doing:

dudemon% s /sbin/natd -v -f /etc/natd.conf -n ed0
Out [ICMP] [ICMP] 209.197.192.66 -> 209.197.192.68 8(0) aliased to
           [ICMP] 209.197.192.66 -> 209.197.192.68 8(0)
Out [ICMP] [ICMP] 209.197.192.66 -> 209.197.192.68 8(0) aliased to
           [ICMP] 209.197.192.66 -> 209.197.192.68 8(0)
Out [ICMP] [ICMP] 209.197.192.66 -> 209.197.192.68 8(0) aliased to
           [ICMP] 209.197.192.66 -> 209.197.192.68 8(0)
Out [ICMP] [ICMP] 209.197.192.66 -> 209.197.192.68 8(0) aliased to
           [ICMP] 209.197.192.66 -> 209.197.192.68 8(0)
^C

No translation taking place?  What am I missing?

TIA,

j



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?Pine.BSF.4.10.9909051122450.13202-100000>