Multi WAN Separating Port Specific Protocols
I have two ISP and I would like to separate traffics using specific ports. For example:
WAN1 = All ports can use this connection
WAN2 = Only 80 and 443 can use this connection
Thank You very much.
Go to Firewall rules under initiating interface. Then put in add a firewall rule with following:
Interface: current interface that has, let's call it LAN1
Source: any, or you could specify LAN1 addresses, or LAN1 network
Destination: any IP address, going to HTTP, port 80 to HTTP, port 80
Here's the trick now, go to Extra Options by clicking it. Some new info will pop down
Then go to Gateway and choose WAN2 for the pull down.
This is called policy routing. It's routing by rule, vs. routing by routes. This is not normally newbie recommended because you can really mess things up, but as long as you know what you're getting into, and how to undo it you should be ok.
You'll have to do this for 443 (SSL). No put those two high up in the list of rules.
Next, do one more rule near bottom and do the same thing but do any, any, and on extra options choose wan1 as the gateway.
I hope I explained that right, and please others jump in if I'm telling him something completely wrong.
I've used this in that past to route to different VPNs from certain devices.