-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 17/10/2014 10:36 p.m., Ding Guigeng wrote: > hi guys! i had install squid 3.4.7 on centos 6.5. i defined acls > like below: acl worktime1 MTWH 8:00-12:00 acl worktime2 F > 13:00-18:00 > > http_access deny !worktime1 http_access deny !worktime2 http_access > allow localnet http_access deny all > > it only works at Monday to Thursday 8:00-12:00 but the client cant > connect internet at Friday 13:00-18:00 > > whats the problem? How are you defining "works at Monday to Thursday 8:00-12:00" ?? By my reading that configuration should reject *all* traffic regardless of day. Because... On Mon-Thu it will match !worktime2 -> deny On Fri-Sun it will match !worktime1 -> deny The configuration should look like this: acl work time MTWH 8:00-12:00 acl work time F 13:00-18:00 http_access allow localnet work http_access deny all Amos -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUQOyIAAoJELJo5wb/XPRjbx4H/1ht6FoA1gSda2IeNZgILRX1 sirW34QSze30y8i8Ud3Y8bV1ft4NtIQBY8UX04wok+KIaZCRTLxxEYTRRnXyI9jV LFsOKG6U8fNjny3SO58Y/j7Utsyl+M8OimhHUftd0R0dH0MWbj3YToybGlJMbIVv WwONCmkf68Z1U1GeDsI0gYCFN3OvIPYcgZZykoG78TEnyFUxTKyrbur3W1ctaf8j dOUkbfKKAKFaqsldb2SmdWt6cdgPJohF43szxgByzrBebsCjKV8Br+If5h/UcD8+ rV+Wnhgf+y8it8jMWFaKf9lwSY+FWVN91/xeAn3s4sKaX6sUCpA+iTSIUbuiVLY= =6+op -----END PGP SIGNATURE----- _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users