v7 filter dynamic-in set check gateway option not found

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?

v7 does not have equivalent to dynamic-in and connected-in chains.

so any workaround?

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?.. :slight_smile:

@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).

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.

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"