Search squid archive

Re: Kids control and time limit function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know this ACL.
However managing the ACLs statically is not the same as dynamically.
Managing squid.conf or any squid.conf formatted file is kinds of an issue when using a web ui.
It's much easier for me to handle a sqlite/mysql table for that.
If I set the times to static ie by the hour ie 0-1 and 1-2 and 2-3 coupled with the day, it's pretty easy to handle.
And if the web ui is simple enough you can manage the times on the fly with a margin of error by a minute.
It's kids not a business so it's enough for my use case.
I just need to allow them to surf or block them as needed and also in a planned matter.
There is another factor which I have considered and it's a timer based external_acl helper.
A helper that will check for the current state and then allow or deny based on the timer and in time the scheduler will
send a command to the timer.

----
Eliezer Croitoru
Tech Support
Mobile: +972-5-28704261
Email: ngtech1ltd@xxxxxxxxx


On Mon, Mar 17, 2025 at 3:27 AM Jonathan Lee <jonathanlee571@xxxxxxxxx> wrote:

	acl aclname time [day-abbrevs] [h1:m1-h2:m2]
	  # [fast]
	  #  day-abbrevs:
	  #	S - Sunday
	  #	M - Monday
	  #	T - Tuesday
	  #	W - Wednesday
	  #	H - Thursday
	  #	F - Friday
	  #	A - Saturday
	  #  h1:m1 must be less than h2:m2


You can add any ACL with time based needs…

Is this what you're looking for?
On Mar 16, 2025, at 08:41, Jonathan Lee <jonathanlee571@xxxxxxxxx> wrote:

This would block everything during a time frame 

acl block_hours time 00:30-05:00
ssl_bump terminate all block_hours
http_access deny all block_hours

Squid’s time directive is what you need. 

Sent from my iPhone

On Mar 16, 2025, at 01:52, NgTech LTD <ngtech1ltd@xxxxxxxxx> wrote:


I was wondering if there is a ready to use solution with web-ui for kid time limit.
I am using mikrotik kid-control which is very nice and I was wondering if anyone have implemented a similar function for squid with an external-acl helper.
The src options are by:
* username
* src ip address
* src mac address

There should be a schedule in a DB per user ID.
The external ACL helper should cache for about 30 seconds and the table should be by an hour and day of the week.
This way it would be pretty simple to build a web ui to manage the schedule.

I would like to get some input on things that kid control might be good doing.

Thanks,
----
Eliezer Croitoru
Tech Support
Mobile: +972-5-28704261
Email: ngtech1ltd@xxxxxxxxx
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux