Timed based access restrictions with squid & danguardian
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Timed based access restrictions with squid & danguardian
Hi.
I have recently (with help from these forums) got Squid and danguardian running on a Fedora 4 linux box.
My aim is to provide internet content & access filtering for my children.
Thus far, I have content filtering largely working, just need to tweak the configuration files etc, if anybody has any hints on cleanly allowing hotmail, whilst blocking all the MSN chat stuff, your advice will be gladly recieved.
However my current aim is to restrict the hours of access. To do this, I have set the following rules in the squid.conf file
By my reasoning this should firstly allow prety much anybody, but then deny the kids PC if outside the allowable time.
Now what I think is happening is that because the browsers are being pointed to dansguardian, and not squid, then squid is never seeing the kids pc's IP addresses ? If this is the case then how do I get around it, or if not, then can someone tell me what I've missed from above.
For simple time control, use iptables.
If you have the TIME module compiled already, you can do..
iptables -I INPUT -i eth~ -s 192.168.0.80 -m time --timestart 21:30 -j REJECT
(Enter your appropriate eth interface)
See man iptables for more options.
If your kernel & iptables don't have this module, you will need to recompile both using patch-o-matic to add the function.
running Fedora 4, sourced from a magazine cover CD, and it doesn't appear to have the time module. I've never tried to compile modules etc under linux, and is probably a bit above my head at this stage. will keep this suggestion in mind if no one else is able to provide an easier solution. Thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.