Help with YouTube block on selected devices

Started by stuffu, September 13, 2023, 04:40:37 PM

Previous topic - Next topic
I read into the alias part https://docs.opnsense.org/manual/aliases.html but I don't understand how to assign specific IP:s to the alias.

I have two devices with static IP addresses and I want to block YouTube on those devices.

Can someone explain how to achieve that? My kids watch YouTube for approx 36 hours/day...  ;D

Hi,

that's not what firewall rules are made for.

You may need an application firewall for HTTPS (also called web proxy) or just block DNS (may be tricky, too) or go with this: https://www.zenarmor.com/docs/network-security-tutorials/how-to-block-youtube-on-opnsense

Thanks, but my router can't handle Zenarmor unfortunately. I can't find the post now, I'm pretty sure I read a post a while back someone blocked YouTube and subdomains using a rule. I could be wrong but any advice appreciated!

Try AdGuardHome plugin. Light on resources. Has an option to block youtube.
Or try a domain override in Unbound.
A service like AdGuardH is better suited as it has worked out the subdomains and all that jazz that is harder on ip addresses only.

I have thought of AdGuard but I don't think you can limit access on device level?

Not sure about AdGuard but,

On Pihole you can create groups per devices and block specific domain for a specific group/device. I am doing it home to prevent access to certain contented for certain VLANs.

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

I don't use this particular functionality of AdG but the section for identifiying clients read:
"Identifier:
Clients can be identified by their IP address, CIDR, MAC address, or ClientID (can be used for DoT/DoH/DoQ). Learn more about how to identify clients https://github.com/AdguardTeam/AdGuardHome/wiki/Clients#clientid."
Then the blocks and filter can be applied per client as well.
Seems worth a try.

Everything is blocked perfectly in AdGuard Home. You can set different locks for different clients.


Quote from: senseuser on September 15, 2023, 11:24:26 AM
Everything is blocked perfectly in AdGuard Home. You can set different locks for different clients.

Had only seen the global settings before, this did the trick! Big thanks!