Comment by fullstop
4 years ago
This seems (somewhat) similar to unshare. [1] [2]
1. https://manpages.ubuntu.com/manpages/jammy/man1/unshare.1.ht...
2. https://manpages.ubuntu.com/manpages/jammy/en/man2/unshare.2...
4 years ago
This seems (somewhat) similar to unshare. [1] [2]
1. https://manpages.ubuntu.com/manpages/jammy/man1/unshare.1.ht...
2. https://manpages.ubuntu.com/manpages/jammy/en/man2/unshare.2...
It seems you can disable[0] networking with `unshare --map-root-user --net`.
[0] I don't think it's meant to disable it, I just know too little about namespaces to appreciate how you would unshare a new network namespace and have it keep working.