From owner-freebsd-questions Fri Nov 16 6:51: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hemi.metrotv.com (hemi.metrotv.com [66.100.208.35]) by hub.freebsd.org (Postfix) with SMTP id 3C95D37B41B for ; Fri, 16 Nov 2001 06:51:01 -0800 (PST) Received: (qmail 90220 invoked by uid 1009); 16 Nov 2001 14:52:06 -0000 Received: from powerstroke.metrotv.com (HELO ?192.168.1.102?) (66.100.208.34) by hemi.metrotv.com with SMTP; 16 Nov 2001 14:52:06 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Fri, 16 Nov 2001 08:51:40 -0600 Subject: Re: natd redirect_address From: Eric Long To: Patrick Soltani Cc: Message-ID: In-Reply-To: <3DBB075EEB95944492E127F2B9A96FAF0CE02E@ultra-exchange.UltraDNS.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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 Patrick, Thank you for the information, it is almost working now. I can successfully ping 66.100.208.36 and it reaches 192.168.1.6. However, I have the following two problems: 1.) The box running natd can't ping 66.100.208.36 (it can ping 192.168.1.6, though). Any machines other than the natd box (whether it be on the LAN or WAN) can ping 66.100.208.36. 2.) None of my workstations (all on 192.168.1.0/24) can access the services running on 66.100.208.36 by connecting to that IP. However, if I connect using 192.168.1.6 (which is what 66.100.208.36 is redirected to), things are fine. -Eric on 11/15/01 7:56 PM, Patrick Soltani at psoltani@ultradns.com wrote: > Hi, > Make sure you have defined a sub-interface to route the traffic thru in > your rc.conf: > ifconfig_fxp1_alias0="inet 66.100.208.36 netmask 255.255.255.0", etc > > Then in natd.conf file add the following line only: > redirect_address 192.168.1.6:8668 66.100.208.36:8668 > > That's it, now the traffic bound for 66.100.208.36 will be redirected to > 192.168.1.6 on port 8668 > > Regards, > Patrick Soltani > > -----Original Message----- > From: Eric Long [mailto:eric@metrotv.com] > Sent: Thursday, November 15, 2001 11:49 AM > To: freebsd-questions@FreeBSD.ORG > Subject: natd redirect_address > > > Running FreeBSD 4.4-STABLE, natd, ipfw, etc. etc. > > NATD is working fine, however, I can't figure out how to get the natd > redirect_address to work. > > My natd.conf file is as follows: > > port 8668 > interface xl0 > use_sockets yes > same_ports yes > redirect_address 192.168.1.6 66.100.208.36 > > Without 66.100.208.36 bound to xl0, the above simply does not work. > Traffic > to 66.100.208.34 does not get redirected to 192.168.1.6. Pings do not > go > through, etc. > > With 66.100.208.36 bound to xl0, it is saying that no alias address > (using > the alias_address command) is specified, and natd won't launch. > > I'm looking for clarification on what the alias_address should be (yes, > I > read man natd) and whether or not I should be binding this public ip the > interface xl0 for use with natd address redirection. > > -Eric > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message