Any plans for further hardening the sandbox with firewall rules? #2702
Replies: 7 comments 5 replies
|
We would be interested in your ideas on this. I would want to make it as simple as possible, so a user does not need to be a Linux networking expert to set it up. Simplicity / Security should be the goal. We are looking for goldilocks level of security. |
|
I have no idea what the requirements are, AFAIK most of these tools use user space proxies to provide easier control and runtime decisions. With firewall rules you either block or don't. Blocking outbound/inbound can while allowing communication between containers can be done as a internal network. Podman 6 will add a new blackhole route option so you could block a specific subnet via a custom route in the container which is definitely simpler than firewall rules. podman-container-tools/podman#28230 (but anything that blocks via routes or firewall rules inside the container netns requires that you do not give it CAP_NET_ADMIN as they could just unset it then) Everything else is pretty much write your own rules yourself. As root that is just adding the firewall rules on the host, as rootless it can be a bit more tricky, for custom networks it is |
|
A practical "goldilocks" model could be profiles rather than raw firewall controls. For example:
The UX matters because most users will not reason correctly about iptables/nftables. The command should expose intent-level options, while the implementation can choose network namespace, podman flags, nftables, or a sidecar proxy underneath. I would also log the effective network policy at container start. When someone later asks whether a model/tool could have exfiltrated data, the answer should be recoverable from the run metadata, not from memory of which flags were used. |
|
Now that the OpenShell podman/docker compute drivers are available I think it would make more sense to delegate the sandboxing to it instead of trying to implement similar functionality - or perhaps https://github.com/always-further/nono if we want something very lightweight. |
Not quite packaged in Fedora yet. |


Uh oh!
There was an error while loading. Please reload this page.
Other projects, like 89luca89/clampdown or mattolson/agent-sandbox have been adding
iptableswith sane default rules, using a sidecar container as a means of extra control.Any plans to add something similar to
ramalama sandbox?All reactions