Quote:
|
Originally Posted by Delryn
I had looked at iptables, and I will be using them to help filter the content on my computer. As for the timing, this is a shared computer. So I can't just arbitrarily have the system shutdown the internet.
|
Using iptables, it's possible to write firewall rules that only apply to packets sent from certain users or groups of users.
Here's a short article on how to achieve this.
Presumably, you could have a series of cron jobs that enable/disable access on a per group basis. Thus, all users in a particular group would have their net access revoked from, say, 10pm to 6am, whilst those users not in that group would have free access. One could use iptables-save to construct several rulesets, and then use iptables-restore to update the firewall to use these rulesets at certain times.