Logical. Right now the system is in production and working, but I want to add the following possibility. I will explain in more detail.
The Mikrotik router to use is CCR2116
You have contacted two ISPs.
ISP1 - Ip fija 98.X.X.X
ISP2 - DHCP y VLAN20 215.X.X.X
On the Lan side a subnet 192.168.10.0/24
I have a server with the IP 192.168.10.10 and it is an IPTV server.
In the NAT of the mikrotik I have the following ports open
ISP1 - 98.X.X.X -> Puerto 45100 - 192.168.10.10
ISP2 - 215.X.X.X -> Puerto 46100 - 192.168.10.10
What we need is that if from the outside we make a request for a channel, the traffic of that channel leaves through the same ISP through which it entered, for example
https://98.X.X.X:45100/X.m3u8 traffic is returned by ISP1
If we make a channel request with the url
https://215.X.X.X:46100/X.m3u8 traffic is returned by ISP2
I have configured two rules in nat
Masquerate - ISP1 - out interface - > ISP1
Masquerate - ISP2 - out interface - > ISP2
I have tried to create a route but I think I am not creating it correctly so that the router knows where to take the traffic.
What do I need to make it work?
Thank you so much.