logoalt Hacker News

blanchedyesterday at 7:24 PM1 replyview on HN

What if the program doesn’t respect those env vars? Can Zerobox still block network calls in that case?


Replies

afshinmehyesterday at 7:50 PM

Great question! On Linux, yes, network namespaces enforce that and all net traffic goes through the proxy. Direct connections are blocked at the kernel level even if the program ignores proxy env vars, but I will test this case a bit more (unsure how to though, most network calls would respect HTTPS_PROXY and other similar env vars).

That being said, the default behaviour is no network, so nothing will be routed if it's not allowed regardless of whether the sandboxed process respects env vars or not.

show 1 reply