Community discussions

MUM Europe 2020
 
User avatar
diyu
just joined
Topic Author
Posts: 9
Joined: Sat Sep 15, 2007 7:47 am
Location: Jakarta
Contact:

[Ask] Redirect Traceroute

Mon Feb 25, 2008 5:17 pm

Hello Guys,

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

thanks
 
User avatar
maximan
Trainer
Trainer
Posts: 549
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Re: [Ask] Redirect Traceroute

Mon Feb 25, 2008 6:43 pm

Mark the icmp traffic with routing-mark and add static route for this mark


Max
http://mikrotikexpert.com
http://maxid.com.ar
 
wavesprocd
just joined
Posts: 3
Joined: Thu Jun 08, 2006 7:53 am
Location: Huinca renanco Argentina

Re: [Ask] Redirect Traceroute

Mon Feb 25, 2008 7:00 pm

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)
 
changeip
Forum Guru
Forum Guru
Posts: 3804
Joined: Fri May 28, 2004 5:22 pm

Re: [Ask] Redirect Traceroute

Mon Feb 25, 2008 7:12 pm

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.
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com
 
changeip
Forum Guru
Forum Guru
Posts: 3804
Joined: Fri May 28, 2004 5:22 pm

Re: [Ask] Redirect Traceroute

Mon Feb 25, 2008 7:13 pm

also, traceroute in windows uses icmp, traceroute in unix uses udp ... so you might also want to mark routes on 33434-33500/udp.
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com
 
User avatar
diyu
just joined
Topic Author
Posts: 9
Joined: Sat Sep 15, 2007 7:47 am
Location: Jakarta
Contact:

Re: [Ask] Redirect Traceroute

Tue Feb 26, 2008 6:14 pm

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)
 
User avatar
diyu
just joined
Topic Author
Posts: 9
Joined: Sat Sep 15, 2007 7:47 am
Location: Jakarta
Contact:

Re: [Ask] Redirect Traceroute

Thu Feb 28, 2008 2:08 am

Hello, is there anybody can help me ?

Who is online

Users browsing this forum: MSN [Bot] and 83 guests