2009/4/14 Alex de A. Souza <[email protected]>: > Eu quero fazer isso através do ipfw mesmo. Conseguir essa informações abaixo > mas ainda não deu certo, alguém pode me ajudar nessas configurações. > > REDE > > xl0 (Rede Interna): > IP: 192.168.0.1 > REDE: 192.168.0.0 / 255.255.255.0 > > xl1 (ISP1): > IP: 100.100.100.100 > Gateway: 100.100.100.1 > > xl2 (ISP2): > IP: 200.200.200.200 > Gateway: 200.200.200.1 > 00010 divert 8669 ip from any to 200.200.200.200 in recv xl2 > 00020 divert 8669 ip from 192.168.0.8 to any out xmit xl1 > 00030 fwd 200.200.200.1 ip from 200.200.200.200 to any > 00040 divert 8668 ip from any to 100.100.100.100 in recv xl1 > 00050 divert 8668 ip from 192.168.0.5 to any out xmit xl1 > Gateway default, configurado no rc.conf: 100.100.100.1 > O que tem de errado nessas configurações > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd >
Boa noite. No seu teste você quer que cada um desses ips saiam por um link, correto? Tente isso: gateway da xl1 é o default. ipfw add 10 divert 8668 all from 192.168.0.5 to any 80 out via xl1 ipfw add 20 divert 8668 all from any to me in via xl1 ipfw add 30 fwd 200.200.200.1 all from 192.168.0.8 to any 80 out via xl1 ipfw add 40 divert 8669 all from 192.168.0.8 to any 80 out via xl2 ipfw add 50 divert 8669 all from any to me in via xl2 ipfw add 100 allow all from any to any wanderson ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

