🔌 Router Guides
Mikrotik OS configuration
How to run scripts on multi-WAN scenarios on Mikrotik
2min
+to synchronize 2 or more public ips, you need to create a script on mikrotik with the following lines 1 1 wans /ip route remove \[find comment=ddns wan] replace \<gateway wan2> with the gateway of the second line (wan) /ip route add dst address=185 236 104 114 gateway=\<gateway wan2> comment=ddns wan in the user1 and pass1 fields, enter the user name (username) and password of your account (first network) \ tool fetch url=" https //ddns flashstart com/nic/update?hostname=\&myip=\&wildcard=nochg\&username=user1\&password=pass1 " do the same thing for user2 and pass2 please note to synchronize the second public ip you must enter the second network within your dashboard ( network menu ) \ tool fetch url=" https //ddns2 flashstart com/nic/update?hostname=\&myip=\&wildcard=nochg\&username=user2\&password=pass2 " also copy and paste if following lines in order to delete previously created static routes and clear the cache /ip route remove \[find comment=ddns wan] /ip dns cache flush below are the scripts to be used in the case of 3 and 4 wans please note as explained above, you must replace the gateway wan,user and pass fields with your own data 2 2 wans /ip route remove \[find comment=ddns wan] /ip route add dst address=185 236 104 114 gateway=\<gateway wan2> comment=ddns wan /ip route add dst address=185 236 104 124 gateway=\<gateway wan3> comment=ddns wan \ tool fetch url=" https //ddns flashstart com/nic/update\\?hostname=\&myip=\&wildcard=nochg\&username=user1\&password=pass1 " \ tool fetch url=" https //ddns2 flashstart com/nic/update\\?hostname=\&myip=\&wildcard=nochg\&username=user2\&password=pass2 " \ tool fetch url=" https //ddns3 flashstart com/nic/update\\?hostname=\&myip=\&wildcard=nochg\&username=user3\&password=pass3 " /ip route remove \[find comment=ddns wan] /ip dns cache flush 3 3 wans /ip route remove \[find comment=ddns wan] /ip route add dst address=185 236 104 114 gateway=\<gateway wan2> comment=ddns wan /ip route add dst address=185 236 104 124 gateway=\<gateway wan3> comment=ddns wan /ip route add dst address=185 236 104 134 gateway=\<gateway wan4> comment=ddns wan \ tool fetch url=" https //ddns flashstart com/nic/update\\?hostname=\&myip=\&wildcard=nochg\&username=user1\&password=pass1 " \ tool fetch url=" https //ddns2 flashstart com/nic/update\\?hostname=\&myip=\&wildcard=nochg\&username=user2\&password=pass2 " \ tool fetch url=" https //ddns3 flashstart com/nic/update\\?hostname=\&myip=\&wildcard=nochg\&username=user3\&password=pass3 " \ tool fetch url=" https //ddns4 flashstart com/nic/update\\?hostname=\&myip=\&wildcard=nochg\&username=user4\&password=pass4 " /ip route remove \[find comment=ddns wan] /ip dns cache flush finally, you need to create a scheduler to automatically run the script , for example, every minute from your dashboard, in the networks menu , you can check the status of your various networks if everything is working properly you should see the various public ips and synchronization status other ways to ask how to run scripts on multi wan scenarios in mikrotik running scripts on multi wan scenarios in mikrotik how to handle them