SQUID: Can anyone help me out with the ACL's
Hey you guys, I have got a question to all you linux wizzards. I can't figure it out by myself, so maybe one of you guys can help me with the squid config file.
I have 2 networks, both used by parents and kids; but they all have a specific adress range. Wired: parents have the IP range 10.0.0.10 to .100 and the kids have the range 10.0.101 to .200. Wireless: parents have the range 10.0.1.1 to .10 and the kids from 10.0.1.11 to .100 What i want is that both, parents and kids, to authenticate themselves on the proxysever using the ncsa_auth program. The kids, on both networks are allowed to surf the internet from monday to friday from 16:00 (4pm) to 19:00 (7pm). Saturday they can surf the entire day and on sunday until 20:00 (8pm). The kids are also not allowed to visit websites containing the words in pornwords.txt (acl porno url_regex -i "/etc/squid pornwords.txt"). Can anyone help me correct this or help me set the squid.conf up? So the squid.conf would be: Code:
http_port 8080 |
Hi, Welcome to LQ!
LQ has a fantastic search function that may save you time waiting for an answer to a popular question. With over 3 million posts to search it's possible the answer has been given. :) I see and error here, in red Code:
acl WEEKTIME time MTWHF 16:00-19:00 Monday, Tuesday, Wednesday, Thursday and Friday Regards Glenn |
Quote:
I can't find the answer, that's why i am asking it here.. I'm so confused about it... |
still don't work
I tried alot to get this to work properly, but it still won't work... anyone here who can help me out... *frustrated :(*
|
Hi, although I do not use similar restrictions on my system (one user) I have used squid for some time.
The protocols have undergone changes from version to version, and I may miss the mark, but a few discrepancies I see are notated below with references. Code:
Restricting Web Access By Time should "netmask" be appended to the address ranges? Code:
ACL TYPE src In the default squid config file it also mentions netmask Code:
# TAG: acl regards Glenn |
Quote:
The Netmask thing: Well, i tried this too... no luck at all... the problem seems to be somewhere located near the order of the http_access. I've tried any possible combination... Maybe, it could be because i don't know why the and when the ! sign is used in thoseh a statements.. I know squid reads them from top to bottom and stops when he finds a match, but i still am a little confused about the ! sign. I know squid interpreterps a ! as false, so true & false = false... Due to the complexity of my network layout, it is a little confusing... anyway, up for some more testing... I still got 70 yrs to make it work ;) lol |
All times are GMT -5. The time now is 02:10 AM. |