[MASOCH-L] Source routing com Mikrotik?

Bruno at Openline.com.br Bruno at Openline.com.br
Sun Jun 7 09:53:47 BRT 2009


Olá

Respondendo minha propria pergunta, o problema era realmente que
o exemplo estava errado. funcionou fazendo dessa forma:

/ ip firewall mangle add action=mark-routing new-routing-mark=mt
chain=prerouting *src-address=10.0.0.144/32*

/ ip route add gateway=10.0.0.254 routing-mark=mt

não parece ter sido necessário o ip rule (?!)

[]s, !3runo Cabral


--- "Bruno at Openline.com.br" <Bruno at Openline.com.br> escreveu:
> O exemplo do manual do mikrotik não está correto:
> 
> http://www.mikrotik.com/testdocs/ros/2.9/ip/route.php
> 
> Example
> 
> To add the rule specifying that all the packets from the 10.0.0.144 host
> should lookup the mt routing table:
> 
> / ip firewall mangle add action=mark-routing new-routing-mark=mt
chain=prerouting
> / ip route add gateway=10.0.0.254 routing-mark=mt
> / ip route rule add src-address=10.0.0.144/32 table=mt action=lookup
> / ip route rule print
> Flags: X - disabled, I - invalid
>  0   src-address=192.168.0.144/32 action=lookup table=mt


More information about the masoch-l mailing list