1.

How To Enable Multiple Time Internet Access To Different Clients In Squid ?

Answer»

Edit the config FILE and add below RULES :

acl hosts1 src192.168.1.10

acl hosts2 src 192.168.1.20

acl hosts3 src 192.168.1.30

acl morning time 10:00-13:00

acl lunch time 13:30-14:30

acl evening time 15:00-18:00

http_access allow host1 morning

http_access allow host1 evening

http_access allow host2 lunch

http_access allow host3 evening

http_access deny all

The above RULE will allow host1 access during both morning as well as evening hours; where as host2 and host3 will be allowed access only during lunch and evening hours respectively.

Edit the config file and add below rules :

acl hosts1 src192.168.1.10

acl hosts2 src 192.168.1.20

acl hosts3 src 192.168.1.30

acl morning time 10:00-13:00

acl lunch time 13:30-14:30

acl evening time 15:00-18:00

http_access allow host1 morning

http_access allow host1 evening

http_access allow host2 lunch

http_access allow host3 evening

http_access deny all

The above rule will allow host1 access during both morning as well as evening hours; where as host2 and host3 will be allowed access only during lunch and evening hours respectively.



Discussion

No Comment Found