From owner-freebsd-questions Wed Jan 24 9:35:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tmd.df.ru (cr219023-a.rchrd1.on.wave.home.com [24.43.203.140]) by hub.freebsd.org (Postfix) with ESMTP id F134437B400 for ; Wed, 24 Jan 2001 09:34:51 -0800 (PST) Received: (from tmd@localhost) by tmd.df.ru (8.11.1/8.11.1) id f0OHiFp97739; Wed, 24 Jan 2001 12:44:15 -0500 (EST) (envelope-from tmd) Date: Wed, 24 Jan 2001 12:44:14 -0500 From: Vlad To: Bart Pustjens Cc: freebsd-questions@freebsd.org Subject: Re: news redir Message-ID: <20010124124414.A97649@tmd.df.ru> Mail-Followup-To: Vlad , Bart Pustjens , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from skin@takeover.lion-access.net on Wed, Jan 24, 2001 at 03:17:41PM +0000 X-Operating-System: FreeBSD 4.2-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 24, 2001 at 03:17:41PM +0000, Bart Pustjens (skin@takeover.lion-access.net) wrote: > > Hi, > > Because of hardware troubles (running out of diskspace) I want > to redirect the connections on port 119 of my.news.machine to another > news server (which only allows my.news.machine to connect, so > my users can't connect directly to the other/new/temp news server). > > Are their any ('native') BSD tools to do this ? > > Thanks, > Bart Pustjens > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Use IPNAT (ipf). Compile kernel with the following options: options IPFILTER #kernel ipfilter support options IPFILTER_LOG #ipfilter logging and create a file /etc/ipnat.conf with: rdr ed0 your.news.server/32 port 119 -> your.new.news.server port 119 tcp then ipnat -FC -f /etc/ipnat.conf and you're done. IPFW is a pain :) (personal opinion) - -- tmd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message