Morning all.
I have a RouterOS powered box in the house with a couple of internet connections in it (2 200Mb cable modems and a 100Mb VDSL line). There are 4 network connections in the box currently, 3 for WAN (WAN1-3) and a LAN connection. Due to lazyness, unless needed, i wont be posting the full NAT and Mangle rules here, but basically speaking here is what is going on.
/ip firewall mangle
chain=prerouting action=mark-connection new-connection-mark=WAN1_conn
passthrough=yes dst-address-type=!local in-interface=LAN1
connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/0
(there are 7 due to the way it was setup previously where i had 2x200mb and 1x 70… 7 seemed to split the connections somewhat evenly… now with the 100mb, i might move to 5, which would be more evenly… anyway, 7/1 goes to WAN2_conn, 7/3 goes back to WAN1_conn, 7/4 goes to WAN3 and then WAN1_conn and so on… each of WAN1 and WAN2 get 3 connection of the 7, WAN3 gets 1).
then i have the following:
;;; conn mark WAN1 mark routing WAN1
chain=prerouting action=mark-routing new-routing-mark=to_WAN1
passthrough=yes in-interface=LAN1 connection-mark=WAN1_conn
again, there are 3 of them, one for each WAN connection
finally, i have:
chain=output action=mark-routing new-routing-mark=to_WAN1 passthrough=yes
connection-mark=WAN1_conn
Then on the routes tab, the following goes:
distance 0 goes directly to the given network (eg 192.168.0.0/24 has a distance of 0 and goes to LAN1, 46.7.30.0/24 goes to WAN1, etc).
distance 1 is for VPNs, ignore that for the moment…
distance 2, 0.0.0.0/0 has routing marks directly to the given WAN ports
distance 3, 0.0.0.0/0 has all 3 routes listed and no routing marks…
So, thats the setup…
my question is as follows:
all traffic from the LAN1 port is being load balanced, some what, but traffic from the router, like proxy traffic, is not being balanced, and is coming from the first connection with a distance of 3… which is actually WAN2. I am wondering how do i balance traffic from the router itself? the In Interface on the mangle is LAN1… what is the In-Interface for the router?
Thanks.