From owner-freebsd-net Mon Dec 2 23:57:15 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 424D937B401 for ; Mon, 2 Dec 2002 23:57:14 -0800 (PST) Received: from moof.catpipe.net (moof.catpipe.net [195.249.214.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28EC343EBE for ; Mon, 2 Dec 2002 23:57:13 -0800 (PST) (envelope-from nicolai@catpipe.net) Received: from unlink.catpipe.net (unlink.catpipe.net [195.249.214.172]) by moof.catpipe.net (8.11.6/8.11.6) with ESMTP id gB37v0u18781; Tue, 3 Dec 2002 08:57:00 +0100 (CET) (envelope-from nicolai@catpipe.net) Content-Type: text/plain; charset="iso-8859-1" From: Nicolai Petri Organization: catpipe Systems ApS To: Andre Oppermann Subject: Re: DNAT on freebsd Date: Tue, 3 Dec 2002 08:57:49 +0100 User-Agent: KMail/1.4.3 References: <20021129095422.GA15876@migla.ktu.lt> <3DE761D1.F5F96F8C@pipeline.ch> In-Reply-To: <3DE761D1.F5F96F8C@pipeline.ch> Cc: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212030857.49306.nicolai@catpipe.net> 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 Hi, All. Please note that natd supports the proxy_rule command which enables some = of=20 this functionality. The only issues is the missing UDP support (which I h= ave=20 patches for locally) and the lack of rewriting urls embedded in packets. Best regards, Nicolai Petri On Friday 29 November 2002 13:47, Andre Oppermann wrote: > 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 trie= s > > 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/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message