Clear NAT script

Hi Everyone,

I have an issue. I’ve got a RB2011UiAS-2HnD-IN and I’ve set it up with dual wan uplinks. Primary is via adsl and backup is 4g.

I’m just wondering if anyone has a script to clear nat on failover? Sorry I’m still a MT newbie so it may be a simple fix that I haven’t got my head around to.

thanks
Jay

You need to clear conntrack. It’s not working perfectly because the command to clear all entries gets their numbers first and then starts to delete one by one but the numbers are changing meanwhile so it ends with an error. Search the forum it is discussed several times here.