How to filter website in Mikrotik using L7 Protocols

Posted by Unknown Monday, February 25, 2013

In Some Scenarios , We May need to Block Facebook Social Website or some others …In this tutorial, I will show you, how to achieve this goal using L7


This tutorial consists of two parts :
1- Block facebook website for everyone on local network.
2- Allow facebook for specific host(s) and block for others on local network.


1.       Block facebook website for everyone on local network.
We need to create new Firewall rule at Layer7 Protocols, in order to block the facebook for our local network.



The string is : ^.+(facebook.com).*$

Now, create the filter rule, see this step






2.   Allow facebook for specific host and block for others on local network.
Now, we want to allow facebook for 2nd client (172.16.10.199/24) but still want to block it for other host.

Create a second Filter rule, to do this, please follow these steps :





Move the new rule to the top :




Post a Comment