The e2guardian plugin for OPNsense is designed to provide advanced web content filtering.
The plugin supports various lists for blocking or allowing sites, URLs, IP addresses, phrases, file extentions, MIME types and regular expressions.
- Content scanner which includes Clamav scanning.
- HTTPS transparent filtering
- ICAP server mode
- Upstream proxy
- Multiple filter configurations to provide varying degrees of web filtering to different groups of users
- IP authentication support
- Port authentication support
- Whitelist domains and urls
- Blacklist domains and urls
- Deny regular Expressions on urls and body content
- URL regular expression replacement so you can for example force safe search in search engines
- Deep URL scanning to spot URLs in URLs to for example block images in Google images
To use the e2guardian plugin, you need to build e2guardian version 5.5 from ports, applying the provided patch from this project to the 5.3 port version.
opnsense-code tools ports
cd /usr/ports/www
curl https://raw.githubusercontent.com/Gunior80/E2G-OPNsense/master/e2guardian.patch --output ./e2guardian.patch
patch -t -p0 < e2guardian.patch
cd ./e2guardian
make config-recursive
make install
git clone https://github.com/Gunior80/E2G-OPNsense
cp -R ./E2G-OPNsense/src/* /usr/local/
Finally, you need to restart OPNsense services.