containers / containers/bubblewrap
Feature request: join network namespace created by 'ip netns create'
- Dominant language
- C
- Stars
- 8.7k
- Forks
- 386
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 11
Description
The `ip` utility has a subcommand to create persistent network namespaces, and to run processes in these namespaces. It would be really handy if bubblewrap could put processes into network namespaces created in this manner. I specifically want this because I have scripts that bring up VPN tunnels and associate them with these namespaces, and then run specific programs in those namespaces (so, at the same time, process A can be talking to VPN proxy X, process B to proxy Y, etc) and I'd like to have reliable sandboxing for these processes.
For more information on the `ip` feature:
* [`ip netns` manpage source](https://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/tree/man/man8/ip-netns.8)
* [core implementation of the "put a process into a network namespace" operation](https://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/tree/lib/namespace.c)
* [implementation of the `ip netns` command line](https://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/tree/ip/ipnetns.c)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.