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 [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message