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.
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
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.
Introduction:
This thread mostly covers the manual installation of AdGuard Home's edge/beta version. OpenWrt's opkg version is the stable release. The edge version installs to /opt/AdGuardHome , the opkg version to /etc/adguardhome for the config files and /tmp for filters, logs etc thus you WILL loose them when your router reboots.
AGH - https://github.com/AdguardTeam/AdGuardHome
A few points first of all.
The ports chosen are either well known alternate ports or reasonable compromises. Y…
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.