PPTP Reset

Good Day,

i have a PPTP conn running from a client they have some packet loss on their internet line so on a daily basis i need to manually drop the connection a few times so it can reconnect then everything is back to normal ,

Is there a script i can use to check if it is down then it can reset the connection automatically?

i think you can use the tool netwatch to ping a specific host and if it is down it will run a script , this script will be for resetting the connection

I use this and run it once per minute. 192.168.130.1 is the LAN IP of the remote Mikrotik. If all 5 pings fail, it disables the pptp-client for 10 seconds then re-enables it.

The remote Mikrotik doesn’t run a script. Sometimes the remote side will think the connection is still open and will deny the pptp connection because it’s set to not allow multiple connections from the same user, but this only lasts a minute or two.

{
:local p [ping address=192.168.130.1 count=5]

:if ($p = 0) do={
/interface pptp-client disable name_of_pptp_client
/delay 10
/interface pptp-client enable name_of_pptp_client
}

}