how to unshare network for current process
It’s possible to run a new command without network access as non-root using unshare -r -n
, for example:
It’s possible to run a new command without network access as non-root using unshare -r -n
, for example: