Community discussions

MikroTik App
 
cyph3r
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Sun May 25, 2008 12:21 pm
Location: Pakistan
Contact:

Youtube And Facebook Queue traffic

Tue Nov 17, 2009 8:58 pm

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 ??????
 
pastranini
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Mon Nov 19, 2007 5:48 am

Re: Youtube And Facebook Queue traffic

Wed Nov 18, 2009 8:51 am

You can use mangle with routing mark after that use the result in ip/route.

Regards.
 
cyph3r
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Sun May 25, 2008 12:21 pm
Location: Pakistan
Contact:

Re: Youtube And Facebook Queue traffic

Wed Nov 18, 2009 2:55 pm

You can use mangle with routing mark after that use the result in ip/route.

Regards.
Could you please give me an example
Thanks
 
cyph3r
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Sun May 25, 2008 12:21 pm
Location: Pakistan
Contact:

Re: Youtube And Facebook Queue traffic

Fri Nov 20, 2009 5:55 pm

Hello,
i m waiting for replies !
 
Pilgrim
Member Candidate
Member Candidate
Posts: 265
Joined: Sun Mar 30, 2008 1:04 pm

Re: Youtube And Facebook Queue traffic

Sat Nov 21, 2009 12:12 pm

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

Who is online

Users browsing this forum: AndyGs, duquesnoyinfo, jaclaz, miker3000 and 103 guests