Mikrotik setup

The_Librarian

Another MyBB
Super Moderator
Joined
Nov 20, 2015
Messages
41,546
Reaction score
21,125
Location
Dark room in Adventure. Grues abound.
Hi Guys

Consider the following :

ook1.vsdx.jpg

Basically what I want to do is to have the Mikrotik or Smoothwall split youtube/video traffic and sending them over the iBurst router, and routing the rest of the traffic over the Telkom router.

The Smoothwall can be replaced by ipcop or pfsense, it doesn't matter. What matters is that I have the ability to :

1. Split youtube/videos traffic
2. Run a content filter on the firewall, filtering out undesired websites.

Is this setup possible?

note : before purists moan about the wifi being on green, this is as intended, I want to keep it simple, get it to work before making it more complex.
 
Should be pretty easy with routeros policy routing...

BUT...how do you identify youtube traffic, this is the key, if you can do that you A away.

EDIT: Look here for the script, second post:

http://forum.mikrotik.com/viewtopic.php?t=65015

Basically you can do the following:

1) Have your mikrotik as DNS proxy
2) Search through DNS cache with above script
3) Put all dns cache entries with "youtube" in CNAME into a address list
4) Policy route anything in that address list through your preferred WAN connection.

This is not a fool proof solution but should help you move most youtube traffic over and with only using the mikrotik
 
Last edited:
Why use the Mikrotik router in the first place?

Smoothwall wouldn't be my first choice, but lets pretend you use an OS that gets updated often, like say PfSense.
Why would you even bother not connecting it directly to the iBurst router and Telkom 3G dongle?
 
There's no reliable way to do what you want because of the CDN's which youtube uses. You won't know the IP address half the time and you'll end up using the TM modem without knowing it.
 
Did you came right Lib? You can achieve this on the Tik with L7 protocol

Code:
/ip firewall layer7-protocol
add name="Youtube" regexp=^.+youtube.*S

Then just create a mangle with route mark and then route it out on which ever gw with the route mark.
 
Top
Sign up to the MyBroadband newsletter
X