From owner-freebsd-questions Fri Jul 5 7:44:10 2002 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 CCEDB37B401 for ; Fri, 5 Jul 2002 07:44:06 -0700 (PDT) Received: from catflap.home.slightlystrange.org (host217-39-46-78.in-addr.btopenworld.com [217.39.46.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9436243E3B for ; Fri, 5 Jul 2002 07:44:01 -0700 (PDT) (envelope-from danielby@home.slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 17QUJU-0009PN-00 for questions@freebsd.org; Fri, 05 Jul 2002 15:44:00 +0100 Date: Fri, 5 Jul 2002 15:44:00 +0100 From: Daniel Bye To: questions@freebsd.org Subject: Re: natd to forward connections? Message-ID: <20020705144400.GA35786@catflap.home.slightlystrange.or> Reply-To: dan@slightlystrange.org Mail-Followup-To: questions@freebsd.org References: <000e01c22426$ad755420$417719d1@powersurge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000e01c22426$ad755420$417719d1@powersurge.net> User-Agent: Mutt/1.4i 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 On Fri, Jul 05, 2002 at 08:20:04AM -0500, Adam Ryan wrote: > Hello, > > At work I have a usenet server that can only be accessed from a certain > block of IPs. I would like to use my freebsd machine to setup a proxy > of some sort to forward any requests from a remote machine on port 119 > to my freebsd machine which in turn forwards to the news servers. > > How can I do this with natd? Try the -redirect_port option: natd -redirect_port tcp 192.168.0.119:119 119 This tells natd to redirect any tcp requests on port 119 of your FreeBSD box to port 119 on the news server box (change its IP address accordingly) 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