Galera,

Ja ta ficando chato!
Achei o esquema de rotear 2 links
eth0 rede interna
eth1 speedy -> tudo tarfega menos o email
eth2 intelig -> link dedicado

Gostaria que o trafego de email (porta 25) fosse pela intelig e todo resto 
fosse pela speedy.! Beleza achei o iproute2, li e gostei.
Fiz o seguinte
Subi as placas e a rota padrao e pela speedy
route add default gw speedy

Ai mascarei
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
iptables -t mangle -A PREROUTING -s 192.168.0.0/24 -p tcp --dport 25 -j MARK 
--set-mark 2
iptables -t mangle -A OUTPUT -s 192.168.0.0/24 -p tcp --dport 25 -j MARK 
--set-mark 2

Matei o rp_filter
echo > 0 /proc/sys/net/ipv4/all/rp_filter

Criei as rotas
ip route add default via "gateway_da_intelig" table 20

Regra
ip rule add fwmark 2 tables 20

ip route flush cache

Simplismente da erro no iptraf todos os emails na porta 25 ficam parados e o 
pacote icmp da destino "unrechaeble"  para a placa eth2.

Alguem tem algo a dizer?
Valeu
-- 
Gustavo Andreoni Vieira d'Almeida
[EMAIL PROTECTED]
icq: 136922243
Linux ID #235942


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to