Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jun 2006 08:40:25 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        mufalani <mufalani@oi.com.br>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: ipfw + nat
Message-ID:  <4487AA39.70308@yandex.ru>
In-Reply-To: <004101c68a88$7ecd58d0$0101a8c0@cristian2aebca>
References:  <004101c68a88$7ecd58d0$0101a8c0@cristian2aebca>

next in thread | previous in thread | raw e-mail | index | archive | help
mufalani wrote:
> How to redirect requisitions at 80?s port (200.X.X.X:80) 
 > to address (192.x.x.x:80) with nat and ipfw?

You can try following:
# natd -alias_address 200.X.X.X -redirect_port tcp 192.x.x.x:80 80
# ipfw add divert natd tcp from any to 200.X.X.X in recv $ExtIf
# ipfw add divert natd tcp from 192.x.x.x 80 to any out xmit $ExtIf

$ExtIf - external interface.

-- 
WBR, Andrey V. Elsukov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4487AA39.70308>