[FUGSPBR] natd: divert no mesmo network

Norberto Rozas norberto em kw.com.br
Ter Set 17 19:30:54 BRT 2002


Experimente:

natd_enable="YES"
natd_interface="xl1"
natd_flags="-f /etc/ipnat.conf"      # Nao esqueca o -f !!!


em /etc/ipnat.conf:

redirect_port tcp 192.168.0.7:80 80


Se xl1 for

192.168.0.1



Eu já fiz redirecionamento IP externo--> IP externo

Talvez IP interno - IP interno funcione tbém....

Boa sorte!


usina em hydra.com.br wrote:

>prezados colegas:
>
>já tentei de diversas formas fazer o seguinte divert:
>
>acesso ao 192.168.0.1 (http) transferido para 192.168.0.7 (http).
>
>tentei via nat e ipf mas não obtive resultados.
>
>em /etc/ipnat.conf ---> redirect_port tcp 192.168.0.7:80 80
>em /etc/rc.conf tentei o seguinte:
>natd_enable="YES"
>natd_interface="xl1"
>natd_flags="-n xl0 -redirect_port tcp 192.168.0.7:80 80"
>
>em /etc/rc.firewall tentei:
>ipfw add 5000 divert natd tcp from 192.168.0.7 80 to any via xl0
>ipfw add 5001 divert natd tcp from any to 192.168.0.7 80
>
>tentativas em /etc/ipf.conf:
>rdr xl0 192.168.0.1 port http -> 192.168.0.7 port http
>
>nenhuma delas funcionou. imagino que seja um erro óbvio, ou talvez não seja 
>possível fazer o divert no mesmo network?
>
>agradeço qualquer ajuda,
>
>karma
>_______________________________________________________________
>Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
>Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
>
>


_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd