• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Block website on VLAN

Scheduled Pinned Locked Moved Firewalling
vlanblockwebsiteyoutube
4 Posts 3 Posters 1.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    p2ranger
    last edited by Aug 7, 2023, 3:26 PM

    I have a VLAN that my kids laptops connect to. I'm wanting to block YouTube for any device that is on that VLAN. Ideally it would be on a schedule so I can allow them to watch 2 hours of YouTube on the weekend, but I'm willing to keep track of that.

    I'm assuming that PFSense can block a website for traffic on one VLAN. Is there a tutorial or something I can follow to make this happen?

    Thanks

    Jason

    M 1 Reply Last reply Aug 7, 2023, 4:08 PM Reply Quote 0
    • M
      michmoor LAYER 8 Rebel Alliance @p2ranger
      last edited by Aug 7, 2023, 4:08 PM

      @p2ranger
      Several ways to do this. Here is the documentation
      https://docs.netgate.com/pfsense/en/latest/recipes/block-websites.html?highlight=website

      This is what i do. My kids VLAN uses an AdGuard server that i stood up in docker. In Adguard there is a 'Blocked Application' feature where you can select Youtube and thats it. Blocked. No way to set a schedule there but that's an option

      The other options mentioned in the documentation are good but ultimately there isnt a perfect solution. Lots of pitfalls. I would argue that Squid Proxy is the best way but thats just really complicated and tedious to set up and maintain.

      Firewall: NetGate,Palo Alto-VM,Juniper SRX
      Routing: Juniper, Arista, Cisco
      Switching: Juniper, Arista, Cisco
      Wireless: Unifi, Aruba IAP
      JNCIP,CCNP Enterprise

      P 1 Reply Last reply Aug 8, 2023, 4:53 AM Reply Quote 0
      • P
        p2ranger @michmoor
        last edited by Aug 8, 2023, 4:53 AM

        @michmoor Thanks for letting me know what you have been able to do. I'm using PFBlocker. I'm assuming it works similar to AdGuard. I just don't know how to make part of it only work on one VLAN. I want my wife and I to be able to still look at YouTube from our VLAN.

        Jason

        B 1 Reply Last reply Aug 8, 2023, 8:57 AM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @p2ranger
          last edited by Bob.Dig Aug 8, 2023, 9:14 AM Aug 8, 2023, 8:57 AM

          @p2ranger @michmoor gave the link where it is explained for pfSense but it is not timebased:

          server:
          access-control-view: 192.168.1.69/32 blocksites
          
          view:
          name: "blocksites"
          local-zone: "youtube.com" static
          

          I don't think that there is a more integrated solution for youtube.com in pfBlocker. You can force save search for youtube though.

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received