Sun Java System Web Proxy Server 4.0.8 管理指南

Procedure启用基于 IP 的访问控制

  1. 编辑 server-root/httpacl/gen*.proxy-admserv.acl 文件,除了 usergroup 之外,再将 ip 添加到验证列表中,如下所示:

    acl "proxy-admserv"; authenticate (user,group,ip) { database = "default"; method = "basic"; };

  2. 添加以下访问控制条目:

    deny absolute (all) ip !="ip_for_which_access_is_allowed ";

    例如:

    acl "proxy-admserv"; authenticate (user,group,ip) { database = "default"; method = "basic"; }; deny absolute (all) ip !="205.217.243.119";