Shovel
Can't get enough of FH
- Joined
- Dec 22, 2003
- Messages
- 1,350
Ello all:
I want to do something rather clever.. hopefully those still reading and not run for cover at a patented "Shovel Linux Adventure" will be able to help.
Linux Router (Smoothwall 2, for reference sake), running Squid proxy (transparently) and using iptables for firewall/filtering tasks.
Now, ACLs for squid can be set to only allow access for a specific group during particular hours of the day. I'm going to set up such a rule to keep my brothers off the net after 10:30pm (they're still on now and should have been in bed ages ago... ahem). However, this will only block web cache traffic. To block MSN Messenger I need to apply similar restrictions in iptables.
Does anyone know whether it's possible to do this directly in the chain? I'm currently thinking that maybe I'll need to have a cron job kick in daily to modify the chains?
I've been looking for a good reference on iptables, but can't really find one. Squid documentation is excellent (but then, it seems to have a BSD version, so naturally documentation is good )
Am I on the right track here? Or is there some other part of the system that will do this for me with half as much effort?
Thanks for any tips
Ben
I want to do something rather clever.. hopefully those still reading and not run for cover at a patented "Shovel Linux Adventure" will be able to help.
Linux Router (Smoothwall 2, for reference sake), running Squid proxy (transparently) and using iptables for firewall/filtering tasks.
Now, ACLs for squid can be set to only allow access for a specific group during particular hours of the day. I'm going to set up such a rule to keep my brothers off the net after 10:30pm (they're still on now and should have been in bed ages ago... ahem). However, this will only block web cache traffic. To block MSN Messenger I need to apply similar restrictions in iptables.
Does anyone know whether it's possible to do this directly in the chain? I'm currently thinking that maybe I'll need to have a cron job kick in daily to modify the chains?
I've been looking for a good reference on iptables, but can't really find one. Squid documentation is excellent (but then, it seems to have a BSD version, so naturally documentation is good )
Am I on the right track here? Or is there some other part of the system that will do this for me with half as much effort?
Thanks for any tips
Ben