LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Blocking an account from accessing the internet. (https://www.linuxquestions.org/questions/linux-security-4/blocking-an-account-from-accessing-the-internet-122186/)

magnum818 12-03-2003 01:27 AM

Blocking an account from accessing the internet.
 
Is there an effective way of blocking a particular user account from using the internet/network/network interfaces on a Linux machine?

Y0jiMb0 12-03-2003 01:46 AM

Hi!
With "iptables" you should be able to do it, maybe adding a rule like
Code:

iptables -A OUTPUT -p all -m --uid-owner UID -j DROP
(where "UID" is the one of the user you want to block)
althought there must be easier ways to do it. (without iptables) ;)
Regards

Y0jiMb0 12-03-2003 01:50 AM

... you also could use "--gid-owner", instead of "--uid-owner"; then, you could use it to block all but the users in the network group from getting out onto the Internet.
Regards


All times are GMT -5. The time now is 10:09 PM.