mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1058] Feature request: join network namespace created by 'ip netns create' #718
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#718
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zackw on GitHub (Jan 19, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1058
The
iputility has a subcommand to create persistent network namespaces, and to run processes in these namespaces. It would be really handy if firejail 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.In addition to setting the network namespace itself,
ip netns exec NAMESPACEputs the process into a fresh mount namespace, and then remounts/sys(so that its contents reflect the network namespace) and bind-mounts/etc/netns/NAMESPACE/whateverover/etc/whateverfor all whatever (so, for instance, you can override/etc/resolv.confthis way). And it also does avrf_reset(), which I don't know what that means.For more information on the
ipfeature:ip netnsmanpage sourceip netnscommand line@netblue30 commented on GitHub (Jan 22, 2017):
all merged.