Block a user from accessing internet on Linux

Posted by santhosh on Super User See other posts from Super User or by santhosh
Published on 2009-11-29T08:32:31Z Indexed on 2010/04/05 8:23 UTC
Read the original article Hit count: 323

Filed under:
|
|
|

How do I block a user from accessing the internet under Linux?

I'm trying the following:

iptables -A OUTPUT -p tcp --dport 80,443 -m owner --uid-owner $USERNAME -j DROP

Is that the right syntax or command?

© Super User or respective owner

Related posts about linux

Related posts about iptables