Hello Mikrotik!
I’m very interested if there is a known way to bind IPCloud to interface or IP address? Or at least would you share the IP address of IPCloud server?
I have 2 uplinks: one fixed IP, and one dynamic - of course, i would like to bind IP Cloud to dynamic, but i found no option for this.
Older changeIP and other scipts had an option to specify interface, but the IPCloud not…
I think, it would be a workaround (until you offer this option) if you share the used IP (range) for IPCloud server, to add a route with preferred source, but i don’t know if you have more IPs for this service, or not…
It uses cloud.mikrotik.com. With recent RouterOS, you can make an auto-updated address list with all addresses and then use it to mark routing:
/ip firewall address-list
add address=cloud.mikrotik.com list=mikrotik-cloud
well, if i add route to cloud.mikrotik.com with gateway of dynamic interface, its OK.
unless doing to, it’s not OK.
Probably i have to use netwatch for doing this trick?
Ok, I did not think it through. My original idea was to simply mark routing for given destination:
/ip firewall mangle
add action=mark-routing chain=output dst-address-list=mikrotik-cloud new-routing-mark=<dynamic-interface-routing-mark>
But even if it sends packets the right way, they may have wrong source address. It’s possible to fix using NAT:
/ip firewall nat
add action=masquerade chain=srcnat dst-address-list=mikrotik-cloud out-interface=<dynamic-interface>
I don’t like it too much, but it works.