macos-fortress-proxy-squid (net/macos-fortress) Updated: 11 months, 3 weeks ago Add to my watchlist
Blackhole and Privatizing Proxy using Squid and easylist-pac.Blackhole and Privatizing Proxy using Squid and easylist-pac. The proxy uses Squid, Privoxy, adblock2privoxy, and easylist-pac.
Version: 2024.01.11 License: MIT GitHubMaintainers | essandess |
Categories | net security |
Homepage | https://github.com/essandess/macOS-Fortress |
Platforms | {darwin any} |
Variants |
|
Subport(s) (8)
"macos-fortress-proxy-squid" depends on
lib (5)
build (1)
Ports that depend on "macos-fortress-proxy-squid"
No ports
Port notes
The proxy uses a chain of squid (port 3128) and privoxy (port 8118) along with a blackhole and CSS blocking using an nginx webserver (port 8119). Please note that this approach may not work on several browsers, including iOS Safari 15. See https://github.com/essandess/easylist-pac-privoxy/issues/21. The port macos-fortress-proxy with HTTPS inspection is recommended.
Clients may be configured to use this proxy by either host:port or the PAC file:
localhost:3128
http://localhost/proxy.pac Domain names and a blacklist file are blocked, excluding whitelisted domain names. These are provised in the files:
${prefix}/etc/macos-fortress/blacklist.txt
${prefix}/etc/macos-fortress/whitelist.txt
The proxy also provides a proxy autoconfiguration (PAC) file with blocking rules generated from easylist ad and tracker blocks. The proxy uses these environment variables (with default values):
${PROXY_HOSTNAME:-localhost}
${PROXY_PAC_SERVER:-127.0.0.1}
${PROXY_PAC_DIRECTORY:-/Library/WebServer/Documents}
To change site-specific launchd environment variables, use the launchd plist:
${prefix}/share/macos-fortress/private.myserver.launchctl-setenv.plist
The native macOS web server is used by default to host the PAC file. This web server must be launched independently with the command
sudo apachectl start Startup items (named 'macos-fortress-proxy-squid.squid-rotate, macos-fortress-proxy-squid') have been generated that will aid in starting macos-fortress-proxy-squid with launchd. They are disabled by default. Execute the following command to start them, and to cause them to launch at startup:
sudo port load macos-fortress-proxy-squid
Port Health:
Loading Port Health