D
D
Diversia2020-09-30 17:33:49
Mikrotik
Diversia, 2020-09-30 17:33:49

Why can't I block a site in MikroTik?

Please tell me what I'm doing wrong. You need to block youtube.com. Using firewall, I add a domain to the address list. Then I create a reject - tcp reset rule. The client has a dns router, but the added domain does not cut.

5f74967c9d09d204815631.jpeg
5f749684531bb746762493.jpeg
5f74968b81fe3548074222.jpeg
5f74968fcead0327889700.jpeg
5f7496943e677000294350.jpeg

Answer the question

In order to leave comments, you need to log in

6 answer(s)
W
Wexter, 2020-09-30
@Wexter

fasttrack disable

D
Dmitry, 2020-10-01
@dtmse

Try to raise the rules blocking for this address list higher. And put reject action instead of tcp reset (not sure if tcp reset and fasttrack will coexist normally).

D
Diman89, 2020-09-30
@Diman89

in my opinion, on Mikrotik you can’t block sites except for L7 https in principle - you need to use a proxy

N
nApoBo3, 2020-10-01
@nApoBo3

Replace reject with drop. Add udp, youtube can work on udp down anyway.
Check which addresses the client is going to, youtube can have a lot of them, and the address list is not updated online.
Alternatively, add a static entry for youtube to mikrotik's dns, to a stub or to 127.0.0.1, and block other dns.

V
V32052ZF, 2020-10-02
@V32052ZF

Most likely, the IP of the YouTuber changes very quickly, to which the address of the Mikrotik sheet does not respond.
Try this:
By adding a .*\\.youtube\\.com DNS entry and wrapping it in a stub, we will block access to all hosts in the youtube.com domain.
Using the .*youtube\\.com entry will block all hosts whose name ends with youtube.com By
adding the .*youtube.* DNS entry and wrapping it around a stub, you can block all sites that contain youtube in the address.
To protect yourself from alternative dns, you can do the following:

/ip firewall nat
add chain=dstnat protocol=udp dst-port=53 action=redirect 
add chain=dstnat protocol=tcp dst-port=53 action=redirect

A
Alexander Karabanov, 2020-10-10
@karabanov

Checked. This method works, but there is a nuance - the browser has its own DNS client and it will still be able to resolve the address that is not in the address list.
You can try to prohibit access to foreign DNS, but in the era of DoH, this is also useless ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question