1. Do you want failover at all. If one ISP becomes unavailable is there a case where LAN1 should use ISP2, or LAN2 should use ISP1 ??
2. Do you want any traffic between LAN1 or LAN2 or fully closed off??
3. Do you as an admin want to be able to reach certain devices on LAN2 if on LAN1 or vice versa, on LAN2 and want to reach devices on LAN1.
4. Assuming you want ISP1 bandwidth to go only to LAN1 and ISP2 bandwidth only to be available to LAN2 ??
5. Did you want to ensure equal sharing of BW amognst users in a particular LAN?
6. Did you want to ensure minimum bandwidth available to specific users in any particular LAN?
1. no, and i only want 1 lan setups as bridge
2. dont know what you mean by this
3. i only want 1 lan .
4. nope.. isp 1 should go to lan 1 , and isp 2 go to lan1 also. only specific sites like youtube should go to isp 1 and only online games should go to isp2
5. im not planning on load balancing
6. maybe
I too would love to be able to make wine from water................
In other words the requirements are challenging (at least for me with little experience).
So as to understand the correct ideas...........
You want users from a single LAN to be able to connect to a specific WAN depending upon what they are doing.
Regular use all are directed to ...........wan1, gaming directed to.......... wan2
As noted this will have to be done, if possible, with a combination of MANGLE rules (marking route) and ROUTE rules.
I would go further and state, the Mangle rules are best suited to detect gaming and that is easier to work with.
In terms of two ISPs I would set up my WAN1 as the primary and WAN2 as the secondary.
In this regard all traffic will to WAN1 (general use).
Then apply a mangle rule and IP route rule to CATCH all gaming traffic and send that out WAN2.
The difficulty as noted by SOLAR is that there is no practical way of knowing destination IPs...
a. However, you may have some success in identifying specific ports on outgoing traffic. (a first mangle rule).
b. There may be a way of identifying WORDs, such as names of games or even names of game servers (steam for example),
maybe the common domain names, in some sort of address list and apply the mangle rule to the address list containing all the names.
/ip firewall address-list
add list=forceWan2 address=
www.gamesiteA.com
add list=forceWan2 address=
www.gamesiteB.com.
add list=forceWan2 address=
www.gameserverA.com
add list=forceWan2 address=
www.gameserver.B.com
I noted in the tabs of the mangle rule there is a CONTENT entry, whereby the router can match a text.
However I don't know if one can
- use a list in CONTENT?
- can put more than one word in CONTENT?
( what the format would be if one can put more than one word)?
( if the router matches any of the words or has to match all the words)??
IP Mangle
a. Chain- prerouting
source address: 0.0.0.0/0
dstn ports xx,yyy,ttttt,uuuuu, protocol TCp
In Interface: LAN
Action Mark routing
new marking route "gaming_ports_TCp"
b. Chain-prerouting
source addresss 0.0.0.0/0
dstn ports xx,yyy,tttt,uuuu, protocol UDP
In Interface: LAN
Action: Mark routing
new marking route "gaming_ports_UDP"
I am not sure if one can use the same marking route name such as 'gaming_ports" and have both rules use the same marking route????
b. Chain-prerouting
Source address; 0.0.0.0/0
Dst:address - forceWan2 address
In INterface: LAN
Action- mark routing
new marking route "gaming_domains"
Then basically create two IP routes one for each mangle rule.
Destination 0.0.0.0/0
Interface: Gateway IP of WAN2
Marking - gaming_ports
Destination 0.0.0.0/0
Interface: Gateway IP of WAN2
Marking - gaming_domains