Page 1 of 1

Blocking social website in mikrotik

Posted: Tue Nov 19, 2013 7:03 pm
by krisan
greetings to everyone in the forum.
I have been trying to block social website on my mk router (RB493) but i cannot achieve it. i have used L7 to block facebook, though it worked for only "www.facebook.com" but could not work on https://facebook.com, as well as linkdin and twitter.
Please i need your various contributions on how i can fix this problem.
Thanks.

Re: Blocking social website in mikrotik

Posted: Tue Nov 19, 2013 8:48 pm
by rickfrey
Use the web proxy, its a lot easier :-) You can find a very simple example here: http://www.tiktube.com/video/GChD3alGgl ... sDlEonpKD=

Re: Blocking social website in mikrotik

Posted: Wed Nov 20, 2013 2:49 pm
by krisan
I tried using web proxy, i was only able to block www.facebook.com but still able to open https:\\facebook.com and other https domain.

Re: Blocking social website in mikrotik

Posted: Wed Nov 20, 2013 4:02 pm
by rickfrey
There is a difference between using the web proxy to cache and using it to limit access. Although, it won't cache https traffic, it can block it. You can also use wild cards with the address to block sub pages.

Re: Blocking social website in mikrotik

Posted: Thu Nov 21, 2013 12:12 am
by Neilson
Or you can grab the prefix lists for Facebook / Twitter / etc and just blackhole those IP Addresses with a simple firewall rule.

Should be at a lower level than L7 filters so less load on your router.

You do need to keep on top of their changes to IP Space but it should be fairly reliable to cut them off completely.

Regards
Alexander

Re: Blocking social website in mikrotik

Posted: Thu Nov 21, 2013 4:53 pm
by rickfrey
You could black-hole that traffic, but I think you will find that with sites that have a large web presence such as the sites we are talking about, there are more specific IP addresses and IP ranges then would normally be expected. Its much easier to use a URL with a wildcard then to try to block that traffic by IP. Theoretically, you could create a script that resolves the DNS names and then black-holes the updated list. I believe their is a similar script on the wiki that resolves names for adding to the firewall.

Re: Blocking social website in mikrotik

Posted: Fri Nov 22, 2013 11:02 am
by krisan
There is a difference between using the web proxy to cache and using it to limit access. Although, it won't cache https traffic, it can block it. You can also use wild cards with the address to block sub pages.

Please how do i use the wild cards with the address to block sub pages.
Thank you for your suggestion.