iptables – simple network sandbox

Create user 'restricted’. That user can connect only to localhost (sometimes usefully), no other connection can be established from this account.

Alternatively it can be done for a specific group (in this case: security)