point pptp client to dynamic ip

Hello

I need to point the pptp client to a dynamic dns address. if You fill out the field with the ddns address it fetches the current ip and fills it into the address field. But obviously when that ip changes im dead.

What do i do to point pptp client to a dynamic ip ?

Any help would be greatly appreciated.

Regards

The only way (as the config actually only takes ip addresses as destination) is making use of RouterOS’ scripting facility:

You can replace the ip address in the PPTP interface with the “right” one using a script and the “resolve” command (see scripting manual).

You can either run this script every few seconds or only “on demand” (for example, when a netwatch detects that a host “behind” the pptp connection isn’t reachable any more).

I think there was a complete example for something like that flying around here, but cannot get hold of it right now.

If you need more detailed help, please ask again.

Best regards,
Christian Mesi

Thanks Chris

Ill have a look over doing it through scripting, if i get stuck i’ll be sure to ask you for help! :slight_smile: