Community discussions

MikroTik App
 
User avatar
genesispro
Member Candidate
Member Candidate
Topic Author
Posts: 283
Joined: Fri Mar 14, 2014 12:33 pm

v7 filter dynamic-in set check gateway option not found

Mon Nov 08, 2021 2:17 pm

in v6 I used route filters to add "set check gateway" as a dynamic-in filter rule that allowed to check for ping in the automatic routes.

I can't find that option in v7. Is it there on a different location or is it missing that option?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: v7 filter dynamic-in set check gateway option not found

Mon Nov 08, 2021 3:01 pm

v7 does not have equivalent to dynamic-in and connected-in chains.
 
User avatar
genesispro
Member Candidate
Member Candidate
Topic Author
Posts: 283
Joined: Fri Mar 14, 2014 12:33 pm

Re: v7 filter dynamic-in set check gateway option not found

Mon Nov 08, 2021 3:04 pm

so any workaround?
 
User avatar
MikroTikTack
just joined
Posts: 1
Joined: Sat Nov 27, 2021 8:37 pm

Re: v7 filter dynamic-in set check gateway option not found

Sat Nov 27, 2021 8:47 pm

Hi! I'm looking this feature as well...
I get internet access via DHCP from my "main" ISP, as an alternative I have failover ISP (via LTE modem, static IP, static route), so the only way to check gateway if main connection fails was dynamic-in filter which is working in 6.x ROS just flawlessly.
/routing filter
add chain=dynamic-in distance=1 set-check-gateway=ping set-distance=1
I changed hEXS router to RB5009 with ROS 7 factory installed.
Any solution dear MikroTik?... :)
 
mike7
just joined
Posts: 12
Joined: Sun Oct 28, 2018 12:20 am

Re: v7 filter dynamic-in set check gateway option not found

Tue Nov 30, 2021 9:01 am

@MikroTik
Are there any plans to implement equivalent of dynamic-in and connected-in chains? It's possible to create workaround with scripts for dynamic-in but for connected it is not possible (I would like to add comments for example).
 
wojo
Frequent Visitor
Frequent Visitor
Posts: 85
Joined: Tue Aug 21, 2018 4:37 am

Re: v7 filter dynamic-in set check gateway option not found

Sun Dec 05, 2021 6:37 am

When I migrated, I ended up with these:
/routing filter rule
add chain=dynamic-in comment="101 -> 1 with check-gateway=ping" rule=\
    "if (distance == 101) { set distance 1; set gw-check icmp; }"
add chain=dynamic-in comment="102 -> 2 with check-gateway=ping" rule=\
    "if (distance == 102) { set distance 2; set gw-check icmp; }"
I don't think these worked, and I don't use them anymore but though that was interesting.
 
dennislun
just joined
Posts: 1
Joined: Mon Jan 24, 2022 12:51 am

Re: v7 filter dynamic-in set check gateway option not found

Mon Jan 24, 2022 12:53 am

A bit of a hack. But this seems to work.
/ip dhcp-client
add default-route-distance=77 interface="ether8 - ISP2-CM" script=\
    ":if (\$bound=1) do={\r\
    \n  /system script run check-gateway\r\
    \n  :log info \"Setting Check-Gateway ISP2-CM\"\r\
    \n}" use-peer-dns=no use-peer-ntp=no

/system script
add dont-require-permissions=no name=check-gateway owner=admin policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/ip route set [find distance=77] check-gateway=ping"

Who is online

Users browsing this forum: No registered users and 15 guests