PPTP connection on a 2 wan router

I have a mikrotik 750g win router os 4.6, 2 wan links (pppoe&dhcp).
the 2 wan links are configured with a 1 distance, and 10 distance so that the pppoe is the main outgoing connection.

i also have a pptp connection to a vpn server. all ok.

when the pppoe link goes down the router will use the wan2 connection (dhcp one) immediatly – that’s nice.
but the pptp connection will not re-establish immediatly. it will reconnect only after aboutn 1 min. :frowning:

how can i improove upon that time? whenever the router will change the outgoing link, the pptp connection will also reconnect immediatly.

thanks.

I think keepalive parameters are set on the server. If you can’t influence that, maybe use netwatch to ping the gateway of the PPPoE link, and fire a script that deletes the PPTP session when it goes down (and probably another one when it comes back up, as after failover PPTP would continue to run across the failover link).

i have access to the vpn server but do you have any ideea on how to change the keepalive on microsoft isa server 2006 standard?

regarding netwatch. wouldn’t disable/enable force routeros to try and reconnect the pptp connection and hence use the failover link? if not, how do i kill an active pptp session and how do i use netwatch on a pppoe link?

i’m new to mikrotik and the scripting language. :slight_smile:

thanks.

Don’t know about IAS.

On the CLI map out the commands you need to disable the PPTP client and to start it again. Put those exact commands into a script. Make a netwatch item that pings something only reachable via the PPPoE link, and runs your script on up and down events.