Hi there,
Thanks for reading. I'm looking to route outbound traffic for a specific URL to use the local breakout. I'm brand new to MikroTik but familiar with networking (route/switch with some firewall)
Hi there,
Thanks for reading. I'm looking to route outbound traffic for a specific URL to use the local breakout. I'm brand new to MikroTik but familiar with networking (route/switch with some firewall)
Likely not possible unless you can use a DNS entry to point to an alternate IP address.
Maybe: Address List for DNS to IP resolution, using this Address List then in Mangling to "Route Mark" the IPs to your desired desination.
Really one specific URL? Like https://forum.mikrotik.com/t/route-single-url-out-local-breakout and not https://forum.mikrotik.com/ ?
Or do you instead mean a single hostname like forum.mikrotik.com and not all others?
When it is really only a single URL: no, that cannot be done. In the past you could do that for http with a proxy, but that is not realistic anymore.
When it is a single host you could use the methods given above. But it would fail when another hostname uses the same IP address (shared hosting).
Thanks for the feedback. I meant a single domain.
I think you might want to describe your problem with a bit more specifics. There is not one magic command that does this. So depending on DNS resolution and what exactly you mean by a "local breakout" (e.g. it is a server on your LAN?) be helpful if you want to get a good answer to your question. And even still subtleties like browser may matter (e.g. Safari proxies non-local domains, so MikroTik cannot match on the HTTP request since destination-ip != DNS-resolved-IP) that may impact the answer.