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

    Block website on VLAN

    Firewalling
    vlan block website youtube
    3
    4
    1.1k
    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

      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 Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @p2ranger
        last edited by

        @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 Reply Quote 0
        • P
          p2ranger @michmoor
          last edited by

          @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

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @p2ranger
            last edited by Bob.Dig

            @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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.