From owner-freebsd-questions Mon Nov 22 11:49:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from logisticsoftware.co.nz (logisticsoftware.co.nz [202.37.163.1]) by hub.freebsd.org (Postfix) with ESMTP id 9EBBD14F47 for ; Mon, 22 Nov 1999 11:49:32 -0800 (PST) (envelope-from jonc@logisticsoftware.co.nz) Received: from jonc.logisticsoftware.co.nz (jonc.logisticsoftware.co.nz [10.1.3.1]) by logisticsoftware.co.nz (8.9.3/8.9.3) with ESMTP id IAA18410; Tue, 23 Nov 1999 08:49:15 +1300 (NZDT) Received: (from jonc@localhost) by jonc.logisticsoftware.co.nz (8.9.3/8.9.3) id IAA93613; Tue, 23 Nov 1999 08:49:14 +1300 (NZDT) (envelope-from jonc) Date: Tue, 23 Nov 1999 08:49:14 +1300 From: Jonathan Chen To: Capriotti Cc: freebsd-questions@FreeBSD.ORG Subject: Re: NATd and diverting a port Message-ID: <19991123084914.A93526@jonc.logisticsoftware.co.nz> References: <3.0.6.32.19991122080622.0096fb40@pop.mpcnet.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3.0.6.32.19991122080622.0096fb40@pop.mpcnet.com.br>; from capriotti@geocities.com on Mon, Nov 22, 1999 at 08:06:22AM -0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Nov 22, 1999 at 08:06:22AM -0200, Capriotti wrote: [...] > I was trying to use NATd to forward any traffic to ports 25 and 110 to the > NT box like this: > > (called from .../rc.d/nats.sh during boot) > > natd -n ed1 -redirect_port 192.16.1.100:25 25 > natd -n ed1 -redirect_port 192.16.1.100:110 110 Try putting it all on one line. ie: natd -n ed1 -redirect_port 192.16.1.100:25 25 -redirect_port 192.16.1.100:110 110 Or use a configuration file: natd -n -f /etc/natd.conf With /etc/natd.conf having: # # Redirects to NT machine # redirect_port 192.16.1.100:25 25 redirect_port 192.16.1.100:110 110 Jonathan Chen ---------------------------------------------------------------------- When everything's coming your way, you're in the wrong lane. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message