Isolated sandbox with unshare namespaces

Spawn shell in fresh net+pid ns with private /proc; ip netns for named netns testing

unshare --net --pid --fork --mount-proc bash # then: ip netns add test; ip netns exec test ip a
more namespaces all 4 commands →