Block website on VLAN
-
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
-
@p2ranger
Several ways to do this. Here is the documentation
https://docs.netgate.com/pfsense/en/latest/recipes/block-websites.html?highlight=websiteThis 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.
-
@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
-
@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.