Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 10:55:12 +0000
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Port Forwarding FreeBSD 4.7_Release
Message-ID:  <20030314105512.GA92246@catflap.home.slightlystrange.org>
In-Reply-To: <F9E1EBA9-5607-11D7-AE54-0030654886A6@overdose.com>
References:  <F9E1EBA9-5607-11D7-AE54-0030654886A6@overdose.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030314105512.GA92246>