LPIC-2 - Exam 202 (part 2 of 2), version 4.5 202-450 Question # 22 Topic 3 Discussion
202-450 Exam Topic 3 Question 22 Discussion:
Question #: 22
Topic #: 3
Which http_access directive for Squid allows users in the ACL named sales_net to only access the Internet at times specified in the time_acl named sales_time?
The http_access directive for Squid allows or denies access to the web resources based on defined access control lists (ACLs). The syntax of the http_access directive is:
http_access allow|deny [!]aclname …
The directive takes one or more ACL names as arguments, separated by spaces. The first argument is either allow or deny, indicating the action to be taken if the ACLs match. The optional ! character before an ACL name negates the result of that ACL.
To allow users in the ACL named sales_net to only access the Internet at times specified in the time_acl named sales_time, the correct http_access directive is:
http_access allow sales_net sales_time
This directive means that if the client IP address matches the sales_net ACL and the request time matches the sales_time ACL, then the access is allowed. Otherwise, the access is denied or the next http_access directive is evaluated.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit