How can I block or disable my Ethernet Internet connection, for the guest account only?
First you need to edit the network interfaces file.
Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
Now you need to add the simple iptables rule to the interfaces file when the internet connection starts up
Simply add this in the interfaces file
save and exit the file.
Now you need to type in the terminal with the following command
and switch users to the username you blocked and try to access the internet.
You can use the following command to block particular user: