ACLs can be applied explicitly to authorized users, but they are also effective for administering access control to individuals as part of a group, such as finance.
Note
You can create groups, add users, and assign group memberships using the Authentication feature of the Appliance Manager. See Chapter 1, Authenticating NetCache Users, for information about configuring the NetCache user database.
ACLs can be applied to members of administrative groups that are assigned "Admin, Full" and "Admin, Read-Only" access permissions.
To allow or deny requests for a particular protocol, for example, FTP, then carefully combine variables to limit that type of request.
Note
Rules for controlling access to protocols can also be applied from protocol-specific pages in the Appliance Manager, for example, Setup tab > FTP > General.
The following table lists examples of rules and explains how those rules govern requests.
Denies HTTP requests for Web content in the SmartFilter "Worthless" category. |
||
Note
Access to protocols must be enabled before rules that control client requests apply. See Chapter 1, Authenticating NetCache Users, for information on enabling access to NetCache supported protocols.
You can allow or deny user or group access to Web objects or domains using variables and pattern-matching expressions that specify the URLs or servers to which you want to restrict access.
The following table lists examples of rules and explains how those rules govern requests.
Note
Because requests can be made by specifying an IP address, the server-ip variable is more secure than specifying server-name for denying access to a server.
You can allow or deny access, based on the IP addresses from which users make requests, by using variables and pattern-matching expressions that represent the IP addresses of a specific host, a subnet, or an entire network.
The following table lists examples of rules and explains how those rules govern requests.
A redirect action will immediately send a redirect response to the client, causing the client's browser to attempt to fetch the new URL, usually through the cache. You can redirect NetCache-generated "access denied" messages to a URL explaining why the access was denied with instructions on how the user can resolve the problem.
To redirect requests from server subnet 128.125.51 to an internal Web page, specify the following rule:
redirect "http://www.mycorp.com/restricted.html" server-ip 128.125.51
Because redirect causes the client to issue a new request to the cache, a redirection loop may occur. To avoid a redirection loop, use the Global Access Control option on the Setup tab > Access Control > Access Control Lists page of the Appliance Manager to explicitly allow the redirection URL. For example:
allow url "http://www.mycorp.com/gambling.html"
A rewrite will internally rewrite a URL, causing NetCache to fetch a different object and return it to the client, if the request is allowed. You can also rewrite requests for restricted objects to other URLs by creating a pattern-matching expression or rule that represents the URL to which requests are directed.
Note
The ACL rewrite action does not support HTTP-based tunneling requests.
To rewrite requests for block.com to safe.com, specify the following rule:
rewrite "http://www.safe.com/restrict.html" url-prefix http://www.block.com
Note
Rewrite should be used only when absolutely necessary, as relative links and inline images may not work. Use of redirect avoids this problem.
Rewrite and redirect rules have the same action expression syntax. Optionally, however, the action can be followed by a URL that is the redirection target. The URL must be included in double quotation marks.
To follow an action by a URL that is a redirection target for example, <action> "URL" <expression>, specify the following rule:
redirect "http://mycorp.com/no-gopher.html" gopher
Note
If a URL is not specified for a rewrite or redirect action, the Default Redirect/Rewrite URL setting in the Appliance Manager Access Control Options is used. To enter a default rewrite/redirect URL, use the following command line interface command: set config.acl.default_url URL name
Copyright © 1994-2002, Network Appliance, Inc. All rights
reserved.
Part No. 210-00370
File: acls7.htm
Last updated: 11/12/02 11:23:23