Community discussions

MikroTik App
 
Herbie
just joined
Topic Author
Posts: 7
Joined: Mon Nov 08, 2010 8:17 pm

gateway reachability checking and performing actions

Sun Jun 10, 2018 5:46 pm

Hello all,
i have 2 wan interfaces on the router for failover reasons. The secondary link is a metered 3G internet and because of that I need a script that will check which default route is active (reachable) and if it detects that 3G is active to block traffic to a specified IP lets say 10.0.0.2 which is an IP camera that can use up all of the bandwidht in few hours.
I tried to write it alone but i cant find out how to check with an IF statement the reachability of a route.
Can someone help me with this?
 
samsung172
Forum Guru
Forum Guru
Posts: 1193
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: gateway reachability checking and performing actions

Sun Jun 10, 2018 11:35 pm

use netwatch
 
Herbie
just joined
Topic Author
Posts: 7
Joined: Mon Nov 08, 2010 8:17 pm

Re: gateway reachability checking and performing actions

Mon Jun 11, 2018 11:42 am

i dont know how to use netwatch for this scenario

Who is online

Users browsing this forum: panisk0 and 14 guests