ipfw + nat

Nick Withers nick at nickwithers.com
Thu Jun 8 02:43:43 PDT 2006


On Wed, 7 Jun 2006 20:17:07 -0300
"mufalani" <mufalani at oi.com.br> wrote:

>     Hi all,
> 
>     I have a webserver runing apache 2.3 under windows 2003, and one BSD 5.4 (gateway). 
> 
> How to redirect requisitions at 80´s port (200.X.X.X:80) to address (192.x.x.x:80) with nat and ipfw?

Assuming you're running both already, simply adding the
following line (with the appropriate IP addresses, of course) to
your natd configuration should do the trick:

redirect_port tcp 192.x.x.x:80 200.X.X.X:80

Otherwise, I'd recommend reading the FreeBSD Handbook sections
on this
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html
and
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html,
for instance).

> Att,
> Rodrigo Mufalani    
>      
> _______________________________________________
> freebsd-ipfw at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe at freebsd.org"

This probably belongs on freebsd-questions, by the way...
-- 
Nick Withers
email: nick at nickwithers.com
Web: http://www.nickwithers.com
Mobile: +61 414 397 446


More information about the freebsd-ipfw mailing list