at this time ,better wait @ik3umt reply, assuming he answers....
Thanks for replies,
Not sure what reply you're expecting from me.....
Just as said, that failover technique works fine, connection on failover route is immediately available but (tcp,udp, etc) old connections are stuck on waiting/sleeping, so no internet for current LAN users (except for new connections) despite backup route is up
I'm just finding the IMMEDIATE way to automatically restart all current connections toward new route (and IMMEDIATELY back on main one when it becomes available again).
Unfortunately I can't netwatch the virtual recursive host as it doesn't respond to ping,
I could netwatch real internet hosts under test ( 1.1.1.1 , 8.8.4.4 etc) but a single lack of packet doesn't necessary mean main route failure.
I think the problem is not in what the script will do (what to flush) , instead, by what i recall the script..... basically, how to detect routes switch