差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
it:server:squid [2023-08-04 09:26] – [用户认证] goldentianya | it:server:squid [2023-08-05 17:25] (当前版本) – [测试服务] goldentianya | ||
---|---|---|---|
行 70: | 行 70: | ||
修改config文件 | 修改config文件 | ||
- | <code> | + | <file > |
+ | # | ||
+ | # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS | ||
+ | # | ||
include / | include / | ||
auth_param basic program / | auth_param basic program / | ||
- | </code> | + | auth_param basic realm proxy |
+ | acl authenticated proxy_auth REQUIRED | ||
+ | # Example rule allowing access from your local networks. | ||
+ | acl localnet src your_ip_address | ||
+ | # Adapt localnet in the ACL section to list your (internal) IP networks | ||
+ | # from where browsing should be allowed | ||
+ | # | ||
+ | http_access allow localhost | ||
+ | http_access allow authenticated | ||
+ | # And finally deny all other access to this proxy | ||
+ | http_access deny all | ||
+ | </file> | ||
===== 测试服务 ===== | ===== 测试服务 ===== | ||
测试方式 | 测试方式 | ||
- | * curl 命令 <color # | + | * curl 命令 <color # |
* nc -v < | * nc -v < | ||
* telnet < | * telnet < | ||
+ | * ++ 当前服务 | http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | 第二种方式 <color # | ||