pfSense – How to block websites with Pfsense
1. System>Packages. Scroll down to the Squid package and then you can install by clicking + (Add) button on the right of that package.
2. Services>Proxy Server>General:
- Set Proxy interface to LAN
- Check Allow users on interface
- Check Transparent Proxy
- Make sure Log store directory has/var/squid/log (or other)
- Proxy port: 3128 (or other)
- Hit the Save button at the end of the page
3. Proxy Server>Cache Mgmt:
- Adjust the following as needed (defaults are OK):
- Hard disk cache size
- Hard disk cache location
- Memory cache size
- Minimum object size
- Maximum object size
- Hit the Save button
4. Proxy Server>Access Control:
- Enter websites under blacklist (ie, facebook.com)
- Hit Save button to save configuration.
Here’s a great step-by-step guide to setting up Squid + SquidGuard on your pfSense:
https://www.howtoforge.com/pfsense-squid-squidguard-traffic-shaping-tutorial