Community discussions

MikroTik App
 
kimdobranski
newbie
Topic Author
Posts: 43
Joined: Mon Aug 03, 2015 9:39 pm

Blocking A website

Mon Oct 26, 2015 6:58 am

Hi, i am trying to block a number of streaming websites(netflix, etc) for a customer that has a satellite connection.

I have searched the forum but none of the suggestions seem to be working.

I have a RB2011Uias-2Hnd with v6.32.3.

I have tried the firewall rule at the beginning and at the end.

Using layer7 protocol is not working either.

I even tried to block all traffic from my IP and it still allows it.

The router is setup to be a standard router.

Can anyone help troubleshoot? I don't know whats going on.

Maybe a script to block netflix.com and vimeo.com as an example and i can add the others?

Thanks!
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Blocking A website

Mon Oct 26, 2015 9:32 am

Try this rule:
/ip firewall filter
add chain=forward action=reject reject-with=tcp-reset protocol=tcp content="Host: www.vimeo.com"
/ip firewall filter
add chain=forward action=reject reject-with=tcp-reset protocol=tcp content="Host: www.netflix.com"
And move this rules to the top of Firewall rules.
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1075
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: Blocking A website

Mon Oct 26, 2015 1:25 pm

Try this rule:
/ip firewall filter
add chain=forward action=reject reject-with=tcp-reset protocol=tcp content="Host: www.vimeo.com"
/ip firewall filter
add chain=forward action=reject reject-with=tcp-reset protocol=tcp content="Host: www.netflix.com"
And move this rules to the top of Firewall rules.
That is not very accurate. The content field will look into packets and if matches will drop them. But that content could be found on other websites and will cause those websites to be dropped. And in case it is a secure connection, like https it can not read the packet content.

The safest way if you want to block a website is to add a static entry into dns, and redirect all customers transparently to your dns cache. That way the webpage they will be looking for will be resolved into your dns static entry.
 
alphacentury
just joined
Posts: 1
Joined: Thu Nov 12, 2015 5:54 am

Re: Blocking A website

Thu Nov 12, 2015 10:21 am

anyone knows how to made firewall rule witch is only google/gmail, yahoo and LAN only can pass trought ?

Who is online

Users browsing this forum: Bing [Bot], ericsboro, Google [Bot], GoogleOther [Bot] and 196 guests