ipfw + nat
    Andrey V. Elsukov 
    bu7cher at yandex.ru
       
    Thu Jun  8 00:15:18 PDT 2006
    
    
  
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
    
    
More information about the freebsd-ipfw
mailing list