Basically the setup is:
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.
Code: Select all
... /ip firewall service-port set pptp disabled=no /ppp profile add name="pptp-in" local-address=192.168.40.1 remote-address=pptp use-encryption=required only-one=yes change-tcp-mss=yes dns-server=192.168.40.1 /interface pptp-server server set enabled=yes max-mtu=1460 max-mru=1460 authentication=chap,mschap1,mschap2 default-profile=pptp-in /ppp secret add name="myvpn" service=pptp password="xxxxxxx" profile=pptp-in ... # VPN route /ip route add dst-address=192.168.1.0/24 gateway=<pptp-myvpn>
* 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.
Thanks in advance