Answer the question
In order to leave comments, you need to log in
How to route individual users in mikrotik?
Hey!
Does anyone know the routing methods for mikrotik users?
Well, for example, I have two channels and one vpn entering Mikrotik.
It is necessary to throw the separate user on other route. Users, for the time being, via normal dhcp, but I think that for such purposes it will be necessary to connect them via vpn so that it is possible to shoot into separate routes. Has anyone already implemented this?
Answer the question
In order to leave comments, you need to log in
create default routes with markings
/ip route add dst-address=0.0.0.0/0 gateway=1.1.1.1 routing-mark=ISP1
/ip route add dst-address=0.0.0.0/0 gateway=2.2.2.2 routing-mark=ISP2
/ip route add dst-address=0.0.0.0/0 gateway=3.3.3.3 routing-mark=VPN
/ip firewall mangle add chain=prerouting src-address=192.168.0.2 action=mark-routing new-routing-mark=ISP1
/ip firewall mangle add chain=prerouting src-address=192.168.0.3 action=mark-routing new-routing -mark=ISP2
/ip firewall nat add chain=src-nat action=src-nat routing-mark=ISP1 to-addresses=1.1.1.2
/ip firewall nat add chain=src-nat action=masquerade routing-mark=ISP2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question