Need Help to Establish VPN

Example from the manual:

http://wiki.mikrotik.com/wiki/Manual:Scripting-examples#Check_if_IP_on_interface_have_changed

Also take a look in this thread.

http://forum.mikrotik.com/t/ppp-dial-out-server-with-dynamic-ip-address-solved/36299/1