Page 1 of 1

[Ask] Redirect Traceroute

Posted: Mon Feb 25, 2008 5:17 pm
by diyu
Hello Guys,

Please help me how to redirect only traceroute to another gateway ? please show me the script.

thanks

Re: [Ask] Redirect Traceroute

Posted: Mon Feb 25, 2008 6:43 pm
by maximan
Mark the icmp traffic with routing-mark and add static route for this mark


Max
http://mikrotikexpert.com
http://maxid.com.ar

Re: [Ask] Redirect Traceroute

Posted: Mon Feb 25, 2008 7:00 pm
by wavesprocd
Hello friend's right as I hise

ICMP Mark rout

chain=prerouting in-interface=lan protocol=icmp action=mark-routing
new-routing-mark=ICMP_rout passthrough=no

Rout

7 A S ;;; ICMP ROUTE
0.0.0.0/0 r 192.168.50.1 Public2

50.1 as my other conection gateway..

A hug ......goodbye 8)

Re: [Ask] Redirect Traceroute

Posted: Mon Feb 25, 2008 7:12 pm
by changeip
that is very dangerous... routing _all_ icmp out that second gateway might cause many other problems. You should look at only marking icmp echo and echo reply ... not all the icmp codes.

Re: [Ask] Redirect Traceroute

Posted: Mon Feb 25, 2008 7:13 pm
by changeip
also, traceroute in windows uses icmp, traceroute in unix uses udp ... so you might also want to mark routes on 33434-33500/udp.

Re: [Ask] Redirect Traceroute

Posted: Tue Feb 26, 2008 6:14 pm
by diyu
I don't understand. I have written the rule you specified, but still not working at all. How Come ?

-mangle
chain=prerouting in-interface=Wireless2 protocol=icmp
action=mark-routing new-routing-mark=ICMProute-out passthrough=no

-route
2 A S 0.0.0.0/0 r 118.137.xx.xx 0 FO
3 A S 0.0.0.0/0 r 58.65.xx.xx 1 FO2 ICMProute-out <mark>

Please Help me...

Thanks

Hello friend's right as I hise

ICMP Mark rout

chain=prerouting in-interface=lan protocol=icmp action=mark-routing
new-routing-mark=ICMP_rout passthrough=no

Rout

7 A S ;;; ICMP ROUTE
0.0.0.0/0 r 192.168.50.1 Public2

50.1 as my other conection gateway..

A hug ......goodbye 8)

Re: [Ask] Redirect Traceroute

Posted: Thu Feb 28, 2008 2:08 am
by diyu
Hello, is there anybody can help me ?