From owner-freebsd-questions Fri Mar 14 2:55:29 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 915D837B401 for ; Fri, 14 Mar 2003 02:55:21 -0800 (PST) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E0A443FD7 for ; Fri, 14 Mar 2003 02:55:20 -0800 (PST) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 18tmqG-000O3m-00 for freebsd-questions@FreeBSD.ORG; Fri, 14 Mar 2003 10:55:12 +0000 Date: Fri, 14 Mar 2003 10:55:12 +0000 From: Daniel Bye To: freebsd-questions@FreeBSD.ORG Subject: Re: Port Forwarding FreeBSD 4.7_Release Message-ID: <20030314105512.GA92246@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Scanner: exiscan *18tmqG-000O3m-00*zVfr7ntp5.U* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) 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 On Fri, Mar 14, 2003 at 10:30:28AM +0000, Matthew Ryan wrote: > Hi there, > > I've been trying to route packets received on port xxxx via the > external interface (used by NAT) of my FreeBSD gateway to the same port > on a local machine. > > The manual would seem to make this simple stuff - I have added the > following line to /etc/rc.conf: > > natd_flags="-redirect_port tcp 192.168.1.241:xxxx xxxx" > > accessing this service on the local machine via the local address is > fine but a port scan from the outside, reveals that the relevant ports > appear closed still. Needless to say - the service is unavailable. > > I have tried entering the following on the command line (with and > without the /etc/rc.conf flag): > > natd -redirect_port tcp 192.168.1.241:xxxx xxxx > > but here's what i get: > > natd: aliasing address not given That's because natd can't determine which interface it should use for aliasing. Try specifying it with the -n flag: # natd -n xl0 -redirect... Replace xl0 with whatever your external interface is. HTH, Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message