OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • How to block YouTube and Netflix?
« previous next »
  • Print
Pages: [1]

Author Topic: How to block YouTube and Netflix?  (Read 5401 times)

rwmopn2019

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
How to block YouTube and Netflix?
« 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.
« Last Edit: May 20, 2019, 12:39:49 pm by rwmopn2019 »
Logged

jimk2048

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: How to block YouTube and Netflix?
« Reply #1 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
Logged

rwmopn2019

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: How to block YouTube and Netflix?
« Reply #2 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.
Logged

donatom3

  • Jr. Member
  • **
  • Posts: 69
  • Karma: 11
    • View Profile
Re: How to block YouTube and Netflix?
« Reply #3 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.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6404
  • Karma: 446
    • View Profile
Re: How to block YouTube and Netflix?
« Reply #4 on: July 09, 2019, 09:55:44 am »
Via IPS and App detection rules it should also work
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

hbc

  • Hero Member
  • *****
  • Posts: 503
  • Karma: 46
    • View Profile
Re: How to block YouTube and Netflix?
« Reply #5 on: July 09, 2019, 10:02:50 pm »
Quote from: donatom3 on July 09, 2019, 08:54:29 am
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.  :(
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

tomstephens89

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
    • View Profile
Re: How to block YouTube and Netflix?
« Reply #6 on: July 18, 2019, 02:26:30 pm »
Use the web proxy and just block the URL?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • How to block YouTube and Netflix?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2