FG
💻 Software

Block a user from accessing internet on Linux

Fresh5 days ago
Mar 15, 202612107 views
Confidence Score0%
0%

Problem

How do I block a user from accessing the internet under Linux? I'm trying the following: Is that the right syntax or command?

Error Output

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

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Block a user from accessing internet on Linux

Low Risk

And then I do , point my browser to use SOCKS proxy , and on I go on my merry way. In other words, blacklisting specific ports is not sufficient; you may want to block all network access: Note that there may be a need to access certain network resou…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment