From owner-freebsd-questions Sun Sep 5 9:42:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fastlane.net (fastlane.net [209.197.224.10]) by hub.freebsd.org (Postfix) with ESMTP id 0F75914FD8 for ; Sun, 5 Sep 1999 09:42:18 -0700 (PDT) (envelope-from jeff@jeff.net) Received: from dudemon.fastlane.net (dudemon.fastlane.net [209.197.192.66]) by fastlane.net (8.9.3/8.9.3) with ESMTP id LAA09856 for ; Sun, 5 Sep 1999 11:41:32 -0500 (CDT) Date: Sun, 5 Sep 1999 11:42:33 -0500 (CDT) From: "Jeffrey D. LaCoursiere" To: freebsd-questions@freebsd.org Subject: NATD Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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