From owner-freebsd-net Fri Nov 29 4:48:33 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FAA637B401 for ; Fri, 29 Nov 2002 04:48:33 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with SMTP id EEECF43E88 for ; Fri, 29 Nov 2002 04:48:31 -0800 (PST) (envelope-from oppermann@pipeline.ch) Received: (qmail 81162 invoked from network); 29 Nov 2002 12:48:21 -0000 Received: from unknown (HELO pipeline.ch) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 29 Nov 2002 12:48:21 -0000 Message-ID: <3DE761D1.F5F96F8C@pipeline.ch> Date: Fri, 29 Nov 2002 13:47:13 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Nerijus Bendziunas Cc: freebsd-net@freebsd.org Subject: Re: DNAT on freebsd References: <20021129095422.GA15876@migla.ktu.lt> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Nerijus Bendziunas wrote: > > Hi, > i need to do something like DNAT in iptables on freebsd. > I mean to rewrite packets which match some rule dst ip/port. > ie: all smtp traffic (any 25) redirect to some ip 25. or if user tries > to connect to www.yahoo.com:80 i rewrite dst and he realy connects to > www.google.lt:80 or smth. We have written one which can do that: http://diehard.n-r-g.com/stuff/freebsd/ -- Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message