Similar to how I can run time command, I'd like to run a command such as dont_allow_network_access command. Is this possible?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
|||
|
|
|
You can achieve this with lxc. This package contains a tool named lxc-unshare which you can use as follows:
|
|||
|
|
|
This will get you a list of your network devices:
If your device you want to diable is eth0
and to turn it back on:
|
|||
|
|