From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 06:44:17 2003 Return-Path: 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 5F94737B401 for ; Fri, 25 Jul 2003 06:44:17 -0700 (PDT) Received: from web40603.mail.yahoo.com (web40603.mail.yahoo.com [66.218.78.140]) by mx1.FreeBSD.org (Postfix) with SMTP id 0681B43F3F for ; Fri, 25 Jul 2003 06:44:17 -0700 (PDT) (envelope-from deesto@yahoo.com) Message-ID: <20030725134413.24291.qmail@web40603.mail.yahoo.com> Received: from [143.48.14.233] by web40603.mail.yahoo.com via HTTP; Fri, 25 Jul 2003 06:44:13 PDT Date: Fri, 25 Jul 2003 06:44:13 -0700 (PDT) From: John DeStefano To: ryallsd@datasphereweb.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-questions@freebsd.org Subject: re: redirect_port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 13:44:17 -0000 "Derrick Ryalls" wrote: >> Hi there, >>=20 >> Using nat on my gateway to forward traffic on many ports the same=20 >> internal machine, what is the correct syntax? >>=20 >> redirect_port x.x.x.x zz zz >> redirect_port x.x.x.x yy yy >> redirect_port x x x x nn nn >>=20 >Copied from my natd.conf > >redirect_port tcp 192.168.0.20:22 5520 >redirect_port udp 192.168.0.20:22 5520 > >The 5520 is the outside port number This could be the solution I was seeking... If I have opened, say, port 50000 for incoming ftp traffic, would it be as simple as: redirect_port tcp 192.168.0.20:21 50000 redirect_port udp 192.168.0.20:21 50000 If so, what do I do allow outgoing ftp traffic/packets? Thanks! ~John --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software