ccchan
December 5, 2021, 8:15am
#1
hi.
Currently I wish to COMPLETELY, 24/7x365 block youtube and some websites like lihkg.com etc within
my openwrt, they include brumeW, and others.
previously I tried using the plugin “adblock” and type the websites there.
May I ask is this the best way? (i dont want to modify the windows, want to do at the router level).
The blockage only need to be static and doesn’t need to vary with time or other factors.
Thank you.
pavelgl
December 5, 2021, 9:01am
#2
uci add_list dhcp.@dnsmasq[0].server="/youtube.com/"
uci add_list dhcp.@dnsmasq[0].server="/lihkg.com/"
uci commit dhcp
/etc/init.d/dnsmasq restart
Make sure that the LAN clients use the router as a DNS server, or configure the firewall to intercept the DNS traffic. Flush the DNS cache of the windows computers before testing.
2 Likes
frollic
December 5, 2021, 9:09am
#3
3 Likes
Brave browser blocks on PC and Android.
diizzy
December 5, 2021, 12:26pm
#5
You'd also need to block/intercept dns over https, dns over tls etc
ccchan
December 5, 2021, 5:43pm
#6
thanks all input but this is going to be complex when comparing to commercial one say TP link...
anyway i appreciate the inputs and will digest later. thx
ps: blocking other than the router level can easily be go around by user.
and indeep if they install VPN on the phone, the blockage at router fails.
if you want something more serious for filtering etc, consider AdGuardHome.
You can use their DNS service or install it on your router.
AGH - https://github.com/AdguardTeam/AdGuardHome
A few notes first of all.
OpenWrt does have AGH in the opkg repository. However it is version 104 and has a number of serious issues. The primary being that it installs to /tmp/AdGuardHome. This means every time you reboot your router you will have to re-setup AGH. This is not ideal. This install uses AGH's new Edge 107 build.
For limited space routers you can mount a USB drive and use that to host AGH. Mounting it as /opt/AdGuardHome will …
tmomas
split this topic
March 1, 2022, 11:34am
#9
tmomas
closed
March 11, 2022, 11:34am
#10
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.