The VPN works fine, but sometimes if the connection gets lost, when the VPN comes back the VPN route fails to re-stablish. The mikrotik seems to be unable to restore that route. So when that happens, I have to write the route myself to get everything working right again.
What I’m doing wrong? Am I missing something?
Is it possible to create a script sets the route back after a VPN reconnection? if so, any hints would be appreciated.
It is because the route is looking at a dynamic interface. When the dynamic interface goes away the route does not know which interface to point to. You can make this static by going to the dynamic interface while it is connected and click “Copy”.
Or you could set the remote address so it always pulls the same address and point your route to that address instead of an interface.
however, I’m still facing some connection problems with that vpn. Is there any watchdog or similar that restarts the vpn if pinging to a remote machine fails?
Because the route create dynamically when user connected to the router and disappear when user disconnected. And so the route will work flawlessly in all kinds of conditions, such as: changed vpn client ip address or any other changes.