I want to move traffic of youtube and facebook through Queue to ether2 = WAN2
Mikrotik Config
ether1 = WAN1 192.168.1.0/24
ether2 = WAN2 172.16.1.0/24
ether3 = LAN 10.0.0.0/20
how can i do ???
I want to move traffic of youtube and facebook through Queue to ether2 = WAN2
Mikrotik Config
ether1 = WAN1 192.168.1.0/24
ether2 = WAN2 172.16.1.0/24
ether3 = LAN 10.0.0.0/20
how can i do ???
You can use mangle with routing mark after that use the result in ip/route.
Regards.
Could you please give me an example
Thanks
Hello,
i m waiting for replies !
Marking traffic would work this way.
I am using this rule to mark all HTTP traffic. Once you have marked the traffic, in this case all packet are marked “medium” you should then be able to direct all that traffic through your WAN2 using the IP/route. Instead og marking traffic going through a certain port, you would just mark the traffic with a destination IP range matching the IP range used by e.g. facebook and instead of the packet mark you would use a routing mark.
I guess that would work, but the problems is that need to know all IP’s use by the sites you want to mark and these may change over time. I have not worked with proxy’s, but my guess is that this would be a better approach.
[admin@MikroTik] > ip firewall mangle pr
Flags: X - disabled, I - invalid, D - dynamic
7 ;;; HTTP Traffic
chain=prerouting action=mark-connection new-connection-mark=http-conn passthrough=yes protocol=tcp
src-address=192.168.0.0/24 dst-port=80
8 chain=prerouting action=mark-packet new-packet-mark=Medium passthrough=no connection-mark=Terminator-http-conn