How to block facebook in Mikrotik using L7 Protocols

In this tutorial, I will show you, how to block facebook or some others website, using Layer 7 Protocol.

Let’s begin:

1.Block facebook website for everyone on local network

Check the IP address of our client

165

Next step is to to create new Regexp rule at Layer7 Protocols for blocking facebook in local network.

328

429

Enter the next line:

^.+(facebook.com).*$

526

Now, we need to create Filter Rule, using the next steps:

5a1

628

723

2. Allow facebook for specific host(s) 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(s).

1214

Next we need to create a second Filter rule

1313

1413

1510

Move this rule at the top:

166

At the end test to see what happens.

Source

Adaugă un răspuns

Your email address will not be published. Required fields are marked *