We now when an interface with an ip creates , mikrotik automatically creates a dynamic route for that interface .
How we can create a route with higher priority for that ip .
Now we want to for example route all traffic or just port 80 traffic to 5.6.7.8 instead of
The question looks strange a little but this is only way for implementing TPROXY in a complex network which the squid should not be the main gateway or bridged ?
I also changed the value of “action” , “scope” , “target-scope” etc.
if it applies successfully the distance value of dynamic interface should be changed to new value or it remains 0 in the “/ip route print” ?
FYI: To filter connected routes you have to use chain=connected-in without types.
But as I mentioned previously it is not possible to change connected route distance.
Connected routes can be replaced by static routes with more specific netmask. However you already have /32 route. Maybe it’s time to reorganize your network.
My final goal is route port 80 traffic to another ip , not change distance . if you now better way i will use that.
I exactly want to for example route all traffic or just port 80 traffic to 5.6.7.8 instead of as i mentioned before
the only way i could implement is a little strange but i describe it . it is not useful but works .
assume i have not ip address 11.22.33.44 on any interface but i have created
this works but i have not that ip on any interface so the distance=1 is highest priority . but as i mentioned it is not useful and it is just a test in lab