I'm looking for an app that is fully Open Source OR built-in to MacOS as I am trying to use this for security / privacy (to ensure that particular apps cannot make arbitrary connections)
I have looked into things like the built in app sandboxing via
sandbox-exec
which seems promising, but super hard to find documentation and I haven't seen an example that forces networking through a proxy / port.Also
socketfilterfw
which seems to only control inbound connections.pfctl
seemed promising, but too low-level, I can't see how to isolate an entire app reliably.- I just found
TSocks
which looks great, but doesn't seem to be maintained. Was rejected 9 years ago from homebrew for this reason.
VMs are too heavy for my use case.
I believe some refer to this as an "App Firewall", but the built-in MacOS AppFirewall doesn't support this use.
I saw this question "Is it possible to have per-app network/vpn/proxy settings" but the answers are 7 years old and include closed-source software like ProxyCap.