From owner-freebsd-questions Fri Mar 14 2:29: 4 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 104C137B401 for ; Fri, 14 Mar 2003 02:29:03 -0800 (PST) Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC8B643F85 for ; Fri, 14 Mar 2003 02:29:01 -0800 (PST) (envelope-from matt@overdose.com) Received: from overdose.com ([80.0.158.31]) by mta05-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030314102900.TXVV310.mta05-svc.ntlworld.com@overdose.com> for ; Fri, 14 Mar 2003 10:29:00 +0000 Date: Fri, 14 Mar 2003 10:30:28 +0000 Mime-Version: 1.0 (Apple Message framework v551) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Port Forwarding FreeBSD 4.7_Release From: Matthew Ryan To: freebsd-questions@FreeBSD.ORG Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.551) 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 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 I have tried adding the external address as follows but to no avail: natd -redirect_port tcp 192.168.1.241:xxxx XXX.XXX.XXX.XXX:xxxx To avoid confusion I am running with an open firewall - rules below: gatewayb# ipfw list 00050 divert 8668 ip from any to any via ep0 00100 allow ip from any to any via lo0 00200 deny ip from any to 127.0.0.0/8 00300 deny ip from 127.0.0.0/8 to any 65000 allow ip from any to any 65535 deny ip from any to any I have read quite a few mails from people finding the same problem but not yet found an answer. My guess is that I am missing something simple but i've been banging away at this for a while now and no joy. Any advice would be appreciated. Thanks Matthew Ryan Matt@overdose.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message