1 Mikrotik with 1 ethernet card plugged in to a switch. (192.168.1.1)
3x ADSL routers plugged in to the same switch. (192.168.1.2 , 192.168.1.3, 192.168.1.4)
10x Client PCs plugged in to the same switch.
I would like to do this:
I would like mikrotik to use router 192.168.1.3 for the Web.
I would like mikrotik to use router 192.168.1.4 for the connections on port 1080 (SOCKS).
and finally i would like mikrotik to use router 192.168.1.2 for everything else.
Is this possible?
Any ideas are welcome, please give a minute from your time and reply if you know the answer because i’m really frustrated about this.
Thank you in advance,
Jim
Mark packets with mangle rules, then add three gateways with routing-mark enabled and set to whatever you choosed.
Add another route at the end, with a lower priority, for the gateway you want to be used for packets not marked by anything.
( eg. mangle - mark packets going outside to port 80 with packet-mark=x
mark packets going outside to port 1080 with packet-mark=y
add default routes = 192.168.1.2 with no routing mark.)
Of course that you need to separate your clients in two switches, and put the router with TWO - that is 2 network interfaces, or else the mt. box has NO USE. Of course, with 1 interface, the mikrotik, setup like upper, can use whatever router you wish, but what is the point ? Also, read policy routing in the manual.