OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: rwmopn2019 on May 20, 2019, 11:49:53 am

Title: How to block YouTube and Netflix?
Post by: rwmopn2019 on May 20, 2019, 11:49:53 am
Hi Opnsense community, I'm a new user of Opnsense, I need some help on how to block YouTube and Netflix from clients access. Any previous topic would help. Thank you.
Title: Re: How to block YouTube and Netflix?
Post by: jimk2048 on June 15, 2019, 08:11:33 pm
On the OPNsense web gui
Services\Unbound DNS\Overrides
Add Domain Overrides for youtube.com and netflix.com and point them to a bogus DNS server, such as 10.1.1.1
Workstations may have DNS cached for youtube.com and netflix.com and may have access until the cache expires

Alternatively;
setup an account at opendns.com
setup custom dns filtering and block youtube.com and netflix.com
configure OPNsense to use OpenDNS in Services\OpenDNS
Title: Re: How to block YouTube and Netflix?
Post by: rwmopn2019 on June 17, 2019, 09:39:04 am
Hi jimk2048,

Thank you for your reply, we'll try your suggestion and do some configuration in our OPNsense server.
Title: Re: How to block YouTube and Netflix?
Post by: donatom3 on July 09, 2019, 08:54:29 am
The Sensei plugin could pull this off as well. Blocking at unbound would only block it if the users don't figure out they can just change their dns settings. Sensei would inspect the packets and block them even if they use a different dns server.
Title: Re: How to block YouTube and Netflix?
Post by: mimugmail on July 09, 2019, 09:55:44 am
Via IPS and App detection rules it should also work
Title: Re: How to block YouTube and Netflix?
Post by: hbc on July 09, 2019, 10:02:50 pm
Blocking at unbound would only block it if the users don't figure out they can just change their dns settings. Sensei would inspect the packets and block them even if they use a different dns server.
You can block any 3rd party dns and just allow your own ones or redirect queries to foreign dns servers to your campus dns. Then people have to use the assigned dns. I would never allow foreign dns server - not only for filtering, but also due to split dns. Even some malware changes dns settings to hijack connections. Better to force the use of the own server.
But with DoH the control over dns is lost anyway.  :(
Title: Re: How to block YouTube and Netflix?
Post by: tomstephens89 on July 18, 2019, 02:26:30 pm
Use the web proxy and just block the URL?