Hi, I am trying to disable internet access by username on family computer, running Ubuntu 22.04 LTS.
I've tried all of the standard variations of:
Code:
sudo iptables -A OUTPUT -p tcp -m owner --uid-owner username -j DROP
with and without the -p tcp and with both -j DROP and -j REJECT.
I don't think it's a persistence issue as when I issue the command and then go and login to username's account without restarting computer, they can still browse the internet unrestricted. And yes, I have substituted username for the username eg joebloggs. All user accounts are standard local accounts in /etc/passwd so nothing fancy.
Any pointers?
Thanks
Ubuntu