[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NAT - Redirecionar Apache



On Thursday 12 September 2002 17:49, CPD - GOEG wrote:
> Olah todos...
>
> Eu gostaria de redirecionar o acesso a outro computador onde estaria o
> apache.
> Como seria isto?


	Pelo que eu entendi vc quer fazer um DNAT, entao nesse caso vc foi pelo 
caminho errado! O certo seria:

iptables -t nat -A PREROUTING -i ppp0 -dport 80 -j DNAT --to 192.168.0.1:80


> Eu pensei em:
>
> iptables -t nat -A POSTROUTING -i ppp0 --sport 80:80 -d 192.168.0.1 -j
> MASQUERADE
>
> ou
>
> iptables -t nat -A POSTROUTING -p tcp --sport 80:80 -d 192.168.0.1 -j
> MASQUERADE
>
> Alguem sabe se seria algo assim?
> Valeu desde jah...

-- 
Christian Lyra
POP-PR - RNP

  Thus spake the master programmer: 
  ``Though a program be but three lines long, someday it will have to be 
maintained.'' 
						The Tao Of Programing



Reply to: