From owner-freebsd-questions Fri Nov 16 7: 0:15 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 82C4237B417 for ; Fri, 16 Nov 2001 07:00:11 -0800 (PST) Received: (qmail 90405 invoked by uid 1009); 16 Nov 2001 15:01:17 -0000 Received: from powerstroke.metrotv.com (HELO ?192.168.1.102?) (66.100.208.34) by hemi.metrotv.com with SMTP; 16 Nov 2001 15:01:17 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Fri, 16 Nov 2001 09:00:51 -0600 Subject: Re: natd redirect_address From: Eric Long To: Cc: Message-ID: In-Reply-To: <20011116014854.D9851@blossom.cjclark.org> 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 >> Without 66.100.208.36 bound to xl0, the above simply does not work. > So, give xl0 that address. Did that, it almost works now (already sent a message to the list with the same subject in regards to the problems). >> Traffic >> to 66.100.208.34 does not get redirected to 192.168.1.6. > Uhh... Well, you wrote 66.100.208.36 above. Typo? Yes, a typo. >> 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. > > Let's see your natd(8) and firewall configuration in rc.conf(5) and > rc.firewall (if it's been modified). Firewall's running in open mode. Regardless, the address redirection is almost working anyway. My natd.conf is as follows: redirect_address 192.168.1.6 66.100.208.36 port 8668 interface xl0 use_sockets yes same_ports yes log_denied yes >> 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. > > Huh? You shouldn't need to set alias_address if you use the interface > argument. What exactly are you trying to do? My thoughts exactly. Simply trying to get address redirection for connections destined for a public IP to go to a private IP on my LAN. It works fine from the outside world, but from the LAN, nothing can connect to the services if they try and access the services from the public IP. The workstations on the LAN can, however, access the services via the private IP's. From a DNS standpoint, I want one host to work for both WAN and LAN connections to the server on the LAN. For example, it's an apple file server, so asip.domain.com should access the file sharing services on the box whether the connection was initiated from the WAN or LAN. Right now, it's not working from the LAN (again, see my other message to the list with the same subject "natd redirect_address" with a more in depth description of the problem). -Eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message