<div dir="ltr"><div>I know this ACL.<br>However managing the ACLs statically is not the same as dynamically.<br>Managing squid.conf or any squid.conf formatted file is kinds of an issue when using a web ui.</div><div>It's much easier for me to handle a sqlite/mysql table for that.</div><div>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.</div><div>And if the web ui is simple enough you can manage the times on the fly with a margin of error by a minute.</div><div>It's kids not a business so it's enough for my use case.<br>I just need to allow them to surf or block them as needed and also in a planned matter.<br>There is another factor which I have considered and it's a timer based external_acl helper.</div><div>A helper that will check for the current state and then allow or deny based on the timer and in time the scheduler will<br>send a command to the timer.</div><div><br></div><div>----</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Eliezer Croitoru<br>Tech Support<br>Mobile: +972-5-28704261<br>Email: <a href="mailto:ngtech1ltd@gmail.com" target="_blank">ngtech1ltd@gmail.com</a><br></div></div></div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Mar 17, 2025 at 3:27 AM Jonathan Lee <<a href="mailto:jonathanlee571@gmail.com">jonathanlee571@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div><pre style="font-family:courier;padding:15px;color:rgb(30,30,30);font-size:12px"> 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
</pre><br><div><br></div><div>You can add any ACL with time based needs…</div><div><br></div><div>Is this what you're looking for?</div><div><blockquote type="cite"><div>On Mar 16, 2025, at 08:41, Jonathan Lee <<a href="mailto:jonathanlee571@gmail.com" target="_blank">jonathanlee571@gmail.com</a>> wrote:</div><br><div><div dir="auto">This would block everything during a time frame <div><div><br></div><div>acl block_hours time 00:30-05:00</div><div>ssl_bump terminate all block_hours</div><div>http_access deny all block_hours</div></div><div><br></div><div>Squid’s time directive is what you need. </div><div><br id="m_-338531290404948583lineBreakAtBeginningOfSignature"><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Mar 16, 2025, at 01:52, NgTech LTD <<a href="mailto:ngtech1ltd@gmail.com" target="_blank">ngtech1ltd@gmail.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>I was wondering if there is a ready to use solution with web-ui for kid time limit.</div><div>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.</div><div>The src options are by:</div><div>* username</div><div>* src ip address</div><div>* src mac address</div><div><br></div><div>There should be a schedule in a DB per user ID.</div><div>The external ACL helper should cache for about 30 seconds and the table should be by an hour and day of the week.</div><div>This way it would be pretty simple to build a web ui to manage the schedule.</div><div><br>I would like to get some input on things that kid control might be good doing.</div><div><br></div><div>Thanks,</div><div><div dir="ltr" class="gmail_signature"><div dir="ltr">----<br>Eliezer Croitoru<br>Tech Support<br>Mobile: +972-5-28704261<br>Email: <a href="mailto:ngtech1ltd@gmail.com" target="_blank">ngtech1ltd@gmail.com</a><br></div></div></div></div>
<span>_______________________________________________</span><br><span>squid-users mailing list</span><br><span><a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a></span><br><span><a href="https://lists.squid-cache.org/listinfo/squid-users" target="_blank">https://lists.squid-cache.org/listinfo/squid-users</a></span><br></div></blockquote></div></div></div></blockquote></div><br></div></blockquote></div>