Answer the question
In order to leave comments, you need to log in
How to proxy traffic by attribute?
Hello!
There are several external proxies, and it is necessary to proxy traffic to them - but according to signs.
For example: outgoing traffic crashes, *yandex* and it crashes through proxy 1.1.1.1:3128
now, traffic *shulbeke* and it goes through 2.2.2.2:3128
Naturally, transparent proxying. The proxies mentioned above are not in the Mikrotik network.
Answer the question
In order to leave comments, you need to log in
The task of traffic differentiation is solved using the firewall's Mangle table. You mark the traffic there according to some criteria (for example, using the L7 filter with the word yandex included. This is a very conditional example, there are many nuances in this case), assign a label to the traffic, and then send all packets with this label through a specific gateway (in In your case - a proxy).
The topic is called Policy Based Routing. Described here , discussed in detail on the MTCRE course.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question