<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//ZH"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=gb2312"> <META NAME="GENERATOR" CONTENT="lfparser_2.27"> <META NAME="LFCATEGORY" CONTENT="SystemAdministration"> <TITLE>lf235, SystemAdministration: ���� Squid ����������</TITLE> <style type="text/css"> <!-- td.top {font-family: Arial,Geneva,Verdana,Helvetica,sans-serif; font-size:12 } pre { font-familiy:monospace,Courier } p.cl { color:#EE9500 } a.nodec { text-decoration:none } p.trans { font-size:8pt; text-align:right } p.clbox { width:50%; alignment:center; background-color:#FFD700; border-style:none; border-width:medium; border-color:#FFD700; padding:0.5cm; text-align:center } p.code { width:80%; alignment:center; background-color:#aedbe8; border-style:none; border-width:medium; border-color:#aedbe8; padding:0.1cm; text-align:left } p.foot { background-color:#AAAAAA; color:#FFFFFF; border-style:none; border-width:medium; border-color:#AAAAAA; padding:0.5cm ; margin-top:0.1cm; margin-right:1cm; margin-left:1cm; text-align:center } --> </style> </HEAD> <BODY bgcolor="#ffffff" text="#000000"> <!-- this is generated html code. NEVER use this file for your translation work. Instead get the file with the same article number and .meta.shtml in its name. Translate this meta file and then use lfparser program to generate the final article --> <!-- lfparser can be obtained from http://www.linuxfocus.org/~guido/dev/lfparser.html --> <!-- this is used by a number of tools: =LF=AUTHOR: D.S. Oberoi =LF=CAT___: SystemAdministration =LF=TITLE_: ���� Squid ���������� =LF=NUMBER: 235 =LF=ANAME_: article235.shtml --> <!-- 2pdaIgnoreStart --> <!-- start navegation bar --> <!-- top navegation bar --> <TABLE summary="topbar_1" cellspacing="0" cellpadding="0" border="0" align="center" width="90%"> <TR bgcolor="#2e2292"> <TD class="top"><TABLE summary="topbar_1_logo" cellspacing="0" cellpadding="0" border="0" width= "100%"> <TR><TD width="319"><IMG src="../../common/images/logolftop_319x45.gif" alt="[LinuxFocus-icon]" width="319" height="45" align="left" border="0"></TD> <TD class="top"> <TABLE summary="topbar_1_links" width="100%"> <TR align="right"> <TD class="top"><A class="nodec" href="../index.shtml"><FONT color= "#DDDDDD" size="2">��ҳ</FONT></A> | <A class= "nodec" href="../map.html"><FONT color= "#DDDDDD" size="2">վ���ͼ</FONT></A> | <A class= "nodec" href="../indice.html"><FONT color= "#DDDDDD" size="2">����</FONT></A> | <A class="nodec" href="../Search/index.shtml"><FONT color= "#DDDDDD" size="2">����</FONT></A> </TD> </TR> <TR align="right"> <TD class="top"> <HR width="100%" noshade size="1"> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> </TR> </TABLE> <!-- end top navegation bar --> <!-- blue bar --> <TABLE summary="topbar_2" cellspacing="0" cellpadding="0" border="0" align="center" width="90%"> <TR bgcolor="#00ffff"> <TD><IMG src="../../common/images/transpix.gif" width="1" height= "2" alt=""></TD> </TR> </TABLE> <!-- end blue bar --> <!-- bottom navegation bar --> <TABLE summary="topbar_3" cellspacing="0" cellpadding="0" border="0" align="center" width="94%"> <TR bgcolor="#000000"> <TD> <TABLE summary="topbar_3_links" cellspacing="0" cellpadding="1" border="0" width= "100%"> <TR align="center"> <TD WIDTH="20%"><A class="nodec" href="../News/index.shtml"><FONT color= "#FFFFFF">����</FONT></A> </TD> <TD WIDTH="5%"><FONT color="#FFFFFF">|</FONT> </TD> <TD WIDTH="20%"><A class="nodec" href="../Archives/"><FONT color= "#FFFFFF">�����ڿ�</FONT></A> </TD> <TD WIDTH="5%"><FONT color="#FFFFFF">|</FONT> </TD> <TD WIDTH="20%"><A class="nodec" href="../Links/index.shtml"><FONT color= "#FFFFFF">����</FONT></A> </TD> <TD WIDTH="5%"><FONT color="#FFFFFF">|</FONT> </TD> <TD WIDTH="20%"><A class="nodec" href="../aboutus.html"><FONT color= "#FFFFFF">����LF</FONT></A> </TD> </TR> </TABLE> </TD> </TR> </TABLE> <!-- end bottom navegation bar --> <!-- stop navegation bar --> <!-- SSI_INFO --> <!-- tr_staticssi include virtual --> <!-- tr_staticssi exec cmd --> <!-- addedByLfdynahead ver 1.3 --><TABLE ALIGN="right" border=0><TR><TD ALIGN="right"><FONT SIZE="-1" FACE="Arial,Helvetica">This document is available in: <A href="../../English/March2002/article235.shtml">English</a> <A href="../../Castellano/March2002/article235.shtml">Castellano</a> <A href="../../ChineseGB/March2002/article235.shtml">ChineseGB</a> <A href="../../Deutsch/March2002/article235.shtml">Deutsch</a> <A href="../../Francais/March2002/article235.shtml">Francais</a> <A href="../../Italiano/March2002/article235.shtml">Italiano</a> <A href="../../Nederlands/March2002/article235.shtml">Nederlands</a> <A href="../../Russian/March2002/article235.shtml">Russian</a> <A href="../../Turkce/March2002/article235.shtml">Turkce</a> </FONT></TD></TR></TABLE><br> <!-- SSI_INFO STOP --> <!-- 2pdaIgnoreStop --> <!-- SHORT BIO ABOUT THE AUTHOR --> <TABLE ALIGN=LEFT BORDER=0 WIDTH="190" > <TR> <TD> <img src="http://main.linuxfocus.org/common/images/DSOberoi.jpg" width="154" height="208" alt="[DSOberoi]"> <BR>by D.S. Oberoi <br> <small><ds_oberoi(at)yahoo.com></small> <BR><BR> <I>��������:</I><BR> D.S. Oberoi ������ӡ�ȵ� Jammu,ӡ��Ŀǰ�������ֽ��ţ��ձ����������� Internet�� <!-- TRANSLATED TO gb --> <!-- TRANSLATED TO STOP --> <BR><i>Ŀ¼</i>: <UL> <LI><A HREF="#235lfindex0">Squid �Ѿ���װ����</A></LI> <LI><A HREF="#235lfindex1">���� Squid</A></LI> <LI><A HREF="#235lfindex2">���ʿ���</A></LI> <LI><A HREF="#235lfindex3">�ص����� Squid</A></LI> <LI><A HREF="#235lfindex4">���ÿͻ���</A></LI> <LI><A HREF="#235lfindex5">ʹ�÷��ʿ���</A></LI> <LI><A HREF="#235lfindex6">��־</A></LI> <LI><A HREF="#235lfindex7">��֤��ʽ</A></LI> <LI><A HREF="#235lfindex8">�ο�����</A></LI> <LI><A HREF="http://cgi.linuxfocus.org/cgi-bin/lftalkback?anum=235&lang=en">����ƪ���·�������</A></LI> </UL> </TD></TR></TABLE> <!-- HEAD OF THE ARTICLE --> <br> <H2>���� Squid ����������</H2> <img src="http://main.linuxfocus.org/common/images/illustration235.gif" width="100" height="44" alt="[squid]" hspace=10> <!-- ABSTRACT OF THE ARTICLE --> <P><i>ժҪ</i>: <P> Linux Ŀǰ�Ѿ���Ϊ�����ͬ��ʡ��������ڰ칫�������ճ���ͥ����Ϊ�ļ�����������ӡ�������� <br>�ʼ��������Լ�Ӧ��������������ʹ�ã� ��������Ϊ������������ʹ�á�<br> һ̨��������������ͨ��һ��Internet������ͬһʱ��Ϊ��ͬ���û��ṩInternet���ʷ��õĴ����� <br>����ͬʱ��Ϊ���������ṩ�������������һ�����ط�������ʱ�����������������ڻ����¼��� <br>��������ͬ����������У���ӻ����а�����ֱ�ӻ��͵��ͻ��ˣ��Ӷ����̷���WEB��ʱ�䲢������� <br>��ѹ���� <br>Squid ��һ��֧��Proxy��HTTP���桢Ftp��Gopher �ȵȵ���������Ҳ֧��SSL�����ʿ��ơ�DNS���沢��Ϊ <br>���е���������¼��Squid �� Windows NT ��Ҳ���ã���� <a href="http://www.logisense.com/">Logi Sense</a>. <br><br> ���ĵ��ص���Ϊ����һ̨������������Ϊ�û��ṩ�ɿط����ṩ������ָ���� <br><br><!-- HR divider --><table width="300" align="center" border="0"> <tr> <td bgcolor="#8282e0"><IMG src="../../common/images/transpix.gif" width="1" height="2" alt=""></td> </tr> </table> <!-- BODY OF THE ARTICLE --> <A NAME="235lfindex0"> </A> <H2>Squid �Ѿ���װ����</H2> Squid �� rpm �ļ��Ѿ��� RedHat 7.1 �������ˣ��ڰ�װϵͳ��ʱ������� Networks ѡ����ѡ�е� <br>���������Զ���װ��ϵͳ�ϡ������������������������ϵͳ���Ƿ��Ѿ���װ�� Squid�� <pre>rpm -q squid </pre> Squid �����°汾������ <a href="http://www.squid-cache.org/">Squid ��ҳ</a> ������<a href="http://www.squid-cache.org/mirrors.html">����վ��</a>�õ��� Squid �������������װ��ϵͳ�ϣ� <pre>rpm -ivh squid-2.3.STABLE4-10.i386.rpm </pre> <A NAME="235lfindex1"> </A> <H2>���� Squid</H2> Squid �Ķ�����ͨ���༭���������ļ� squid.conf ��ʵ�ֵģ�squid.conf �ļ�ͨ���� /etc/squid Ŀ¼ <br>�¡���������ļ����ݺܶ࣬����������ÿ��ѡ����꾡��˵���� <br> <br> ����Ҫ�ĵ��� http_port�����ѡ��ָ���� Squid �����ͻ�����Ķ˿ڣ�Ĭ��ֵ�� 3128��Ҫʹ�ô��� <br>���ܣ�����˿�ֵҪ������ Squid �Ļ����� IP ��ַһ��ʹ�ã������ij����������� <p class="code">http_port 192.168.0.1:8080</p> ����������ʾ Squid ���� IP ��ַ 192.168.0.1 �ϣ��˿�Ϊ 8080���˿ڿ�������Ϊ����ֵ����Ҫȷ�� <br>û�����������ʹ��ͬ���Ķ˿ڡ������ķ�������Ķ˿�����Ҳ������Ϊ���Ƶ����á� <A NAME="235lfindex2"> </A> <H2>���ʿ���</H2> ʹ�÷��ʿ������ԣ����Կ����ڷ���ʱ�����ض���ʱ�������л��桢�����ض�վ���һ��վ��ȵȡ� Squid ���ʿ���������Ҫ�أ�ACL Ԫ�غ� �����б��������б�����������ܾ�ijЩ�û��Դ˷���ķ��ʡ� <br> <br> �����г�һЩ��Ҫ�� ACL Ԫ������<br> <ul> <li>src : Դ��ַ �����ͻ���IP��ַ��</li> <li>dst : Ŀ���ַ ����������IP��ַ��</li> <li>srcdomain : Դ���� �����ͻ������ƣ�</li> <li>dstdomain : Ŀ������ �������������ƣ�</li> <li>time : һ���е�ʱ�̺�һ���ڵ�һ��</li> <li>url_regex : URL �������ʽƥ��</li> <li>urlpath_regex: URL-path �������ʽƥ�䣬��ȥЭ���������</li> <li>proxy_auth : ͨ���ⲿ��������û���֤</li> <li>maxconn : ��һ IP �����������</li> </ul> Ϊ��ʹ�ÿ��ƹ��ܣ����������� ACL ����Ӧ�á�ACL �����ĸ�ʽ���£� <p class="code">acl acl_element_name type_of_acl_element values_to_acl</p> ע�� <ol> <li>acl_element_name ��������һ���� ACL �ж�������ơ�</li> <li>�κ����� ACL Ԫ�ز�������ͬ�����֡�</li> <li>ÿ�� ACL ���б�ֵ��ɡ�������ƥ�����ʱ���ֵ�������������ӣ�����֮������һ ACL <br>Ԫ�ص�ֵ��ƥ�䣬����� ACL Ԫ�ؼ���ƥ�䡣</li> <li>���������е� ACL Ԫ�ض���ʹ�÷����б��е�ȫ�����͡�</li> <li>��ͬ�� ACL Ԫ��д�ڲ�ͬ���У�Squid �������������һ���б��С�</li> </ol> ���ǿ���ʹ�����ͬ�ķ�����Ŀ�������г����ǽ�Ҫ�õ��ļ����� <ul> <li><b>http_access:</b> ���� HTTP ���ʡ��������Ҫ�ķ��ʿ�����Ŀ��</li> <li><b>no_cache:</b> ����Ի����������Ӧ��</li> </ul> �����б��Ĺ�����һЩ���� 'allow' �� 'deny' �Ĺؼ��ֹ��ɣ�����������ܾ����ض���һ�� ACL Ԫ���ṩ���� <br> ע�� <ol> <li>��Щ���������ǵ�����˳�����ƥ���⣬һ����ƥ��Ĺ���ƥ���������������</li> <li>һ�������б������ֶ���������ɡ�</li> <li>���û���κι������������ƥ�䣬Ĭ�϶��������б������һ�������Ӧ��</li> <li>һ��������Ŀ�е�����Ԫ�ؽ��������������ӣ�<br> http_access Action ����1 AND ����2 AND ���� OR.<br> http_access Action ����3<br> ��� http_access �������û��������ӣ���ÿ��������Ŀ��Ԫ�ؼ������������ӡ�</li> <li>���ס�б��еĹ���������ѭ���϶��µ�˳��</li> </ol> <A NAME="235lfindex3"> </A> <H2>�ص����� Squid</H2> Squid Ĭ�ϲ����κ��û����ʿ��ơ���Ҫ����ij�����ʣ�������ж��ƹ����� squid.conf �� http_access deny ��ǰ�����������֣� <p class="code">acl mynetwork 192.168.0.1/255.255.255.0<br> http_access allow mynetwork</p> mynetwork �� acl ���ƣ���һ�������������ض� acl ���� mynetwork �� �Ĺ���192.168.0.1 ָ��������������Ϊ 255.255.255.0 ��������mynetwork ��Ҫ��Ϊ�˸���������һ���������һ��������������Щ <br>�������� http ������������� http_port �Ϳ����� Squid �ܺõĹ��������ˡ� ����ɺ�Squid <br>�������������������� <p class="code">service squid start</p> ע��<br> Squid Ҳ������ϵͳ������ʱ���Զ����У��������� ntsysv �� setup��ϵͳ����˵����д� Squid���� <br>�������ļ������κθ���֮��ǰ�����е� Squid ���̱��������������������������������ɣ� <ol> <li>service squid restart ��</li> <li>/etc/rc.d/init.d/squid restart</li> </ol> <A NAME="235lfindex4"> </A> <H2>���ÿͻ���</H2> ���ڿͻ��˵��������͵��������������ض��˿ڵģ���ˣ��ͻ���ҲҪ����Ӧ���á��ڼ�����һ��֮ǰ���� <br>ȷ��Ҫ���ʴ����������Ŀͻ����Ѿ������ھ������в��ѷ�������Ч�� IP ��ַ����ȷ�����Ƕ��� ping ͨ <br>������ Squid �� Linux ��������<br> �� Internet Explorer �µ����ã�<br> <ol> <li>����˵��ϵ� ���� -> Internet ѡ��</li> <li>ѡ�� ���� ������ ����������</li> <li>ѡ�� ʹ�ô��������� �������������������� IP ��ַ�Ͷ˿ڡ�</li> </ol> <br> �� Netscape Navigator �µ����ã�<br> <ol> <li>����˵��ϵı༭��Edit��->��ѡ�Preference��->����Advanced��->������������Proxies����</li> <li>ѡ���ֶ����ô�����������Manual Proxy Configuration����</li> <li>����鿴��View�� ��</li> <li>�������������������� IP ��ַ�Ͷ˿ڡ�</li> </ol> <A NAME="235lfindex5"> </A> <H2>ʹ�÷��ʿ���</H2> ������ʿ��Ƽ������Ϊ�ͻ��˷��ʿ����ṩ��һ�����Ļ��ơ��������ͨ�����õ������ӣ� <ol> <li> �����б��еĻ������� Internet��<br> <p class="code">acl allowed_clients src 192.168.0.10 192.168.0.20 192.168.0.30<br> http_access allow allowed_clients<br> http_access deny !allowed_clients</p> �������ֻ���� IP ��ַΪ 192.168.0.10��192.168.0.20 �� 192.168.0.30 �Ļ��� <br>���� Internet������ IP ��ַ�Ļ������ܾ����ʡ� </li> <br><br> <li> ���Ʒ���ʱ�Ρ�<br> <p class="code">acl allowed_clients src 192.168.0.1/255.255.255.0<br> acl regular_days time MTWHF 10:00-16:00<br> http_access allow allowed_clients regular_days<br> http_access deny !allowed_clients</p> ���������������192.168.0.1�е����пͻ�������һ�����������10:00������4:00 <br>���� Internet�� </li> <br><br> <li> Ϊ��ͬ�Ŀͻ������䲻ͬ�ķ���ʱ�Ρ�<br> <p class="code">acl hosts1 src192.168.0.10<br> acl hosts2 src 192.168.0.20<br> acl hosts3 src 192.168.0.30<br> acl morning time 10:00-13:00<br> acl lunch time 13:30-14:30<br> acl evening time 15:00-18:00<br> http_access allow host1 morning<br> http_access allow host1 evening<br> http_access allow host2 lunch<br> http_access allow host3 evening<br> http_access deny all</p> ����������У����� host1 ������ morning �� evening ʱ�η��� Internet������ <br>host2 �� host3 �ֱ�ֻ���� lunch �� evening ʱ�η��� Internet��<br> <br> ע��<br> һ��������Ŀ�����е�Ԫ��֮���������㰴������ʽ���� �� <p class="code">http_access Action statement1 AND staement2 AND statement OR.</p> ��� http_access ����֮���û��������Ӷ�ÿ��������Ŀ�е�Ԫ�������������ӣ��� <br>�£� <p class="code">http_access allow host1 morning evening</p> ����ʱ�� morning ��ʱ�� evening ͬʱ����(morning AND evening )��������� <br>ʽ�����᷵����ֵ��TRUE�����Ӷ������Ŀ�����������κζ����� </li> <br><br> <li> վ������<br> Squid ��������ijЩ�ض�վ�����ijЩ�ض��ִʵ�վ�㡣����������Ĺ���ʵ�֣� <p class="code">acl allowed_clients src 192.168.0.1/255.255.255.0<br> acl banned_sites url_regex abc.com *()(*.com<br> http_access deny banned_sites<br> http_access allow allowed_clients<br> </p> Ҳ�����������κ���ijЩ�ض��ִʣ�����˵ dummy��fake����վ�� <p class="code">acl allowed_clients src 192.168.0.1/255.255.255.0<br> acl banned_sites url_regex dummy fake<br> http_access deny banned_sites<br> http_access allow allowed_machibes</p> ��ʵ��Ӧ���У�����Ҫ�������ε�����վ����ִʶ��������棬�����ȱ�����һ���ļ� <br>�У���鿴 /etc Ŀ¼�е� banned.list�ļ���ACL ��������ļ��ж���������Ϣ���� <br>���α���ֹ��վ�㡣 <p class="code">acl allowed_clients src 192.168.0.1/255.255.255.0<br> acl banned_sites url_regex "/etc/banned.list"<br> http_access deny banned_sites<br> http_access allow allowed_clients</p> </li> <li> �Ż�<br> Squid ����ͨ��ʹ�� maxconn Ԫ�������ƿͻ������ӵ���Ŀ�� Ҫʹ�����ѡ����� <br>������ client_db�� <p class="code">acl mynetwork 192.168.0.1/255.255.255.0<br> acl numconn maxconn 5<br> http_access deny mynetwork numconn</p> ע��<br> maxconn ACL ʹ��С�ڣ�less-than���Աȡ��� ACL �����������������趨ֵʱ��ƥ�䡣 <br>���� ACL ���� http_access �����������õ���Ҫԭ�� </li> <br><br> <li> ��������<br> ���ھ�̬ҳ�棬����������ܹ����̻��͵���������Ŀͻ��ˡ�û�б�Ҫȥ���� cgi-bin <br>�� Servlet����Щ������ ACL Ԫ�� no_cache ����ֹ�� <p class="code">acl cache_prevent1 url_regex cgi-bin /?<br> acl cache_prevent2 url_regex Servlet<br> no_cache deny cache_prevent1<br> no_cache deny cache_prevent2</p> </li> <li> �Զ���������Ϣ<br> �����þܾ������ deny_info ѡ�����Զ���������Ϣ��Squid Ĭ�ϵĴ�����Ϣ���� <br>/etc/squid/errors Ŀ¼�С����Ŀ¼������ error_directory ѡ��ָ������Ҳ���� <br>�����ִ�Ĵ�������Ϣ�� <p class="code">acl allowed_clients src 192.168.0.1/255.255.255.0<br> acl banned_sites url_regex abc.com *()(*.com<br> http_access deny banned_sites<br> deny_info ERR_BANNED_SITE banned_sites<br> http_access allow allowed_clients</p> ������������У����û���ͼ���ʱ���ֹ��վ��ʱ��������ʾһ�����Ƶ���Ϣ�� <br>ERR_BANNED_SITE ѡ���е��ļ��������������Ĵ�����Ϣ��Ŀ¼�С�������Ϣ������ HTML �� <br>ʽ�ġ������г��� ACL ��һЩѡ������Բο� Squid ��ҳ�ϵ� <a href= "http://www.squid-cache.org/Doc/FAQ">FAQ �ĵ�</a> �Ի��ʹ�� ACL <br>�������Ϣ�� </li> </ol> <A NAME="235lfindex6"> </A> <H2>��־</H2> Squid ��������־�ļ�������� /var/log/squid Ŀ¼�У��л�����־��������־�� store.log�ļ����� <br>�� access.log ��¼���йؿͻ������������ӻ��ÿ�� HTTP & ICP ѯ�ʡ��ͻ��� IP ��ַ������ <br>ʽ������� URL �ȵ���Ϣ����Щ���ݿ��������Է��ʽ��з�������������� <a href="http://web.onda.com.br/orso/ index.html">sarg</a>�� <a href="http://calamaris.cord.de/">calamaris</a>, <a href= "http://squidlog.sourceforge.net/">Squid-Log-Analyzer</a> ����������������Щ���ݲ����� HTML ��ʽ�ķ������档 ��Щ���������һ���û���һ�� <br>IP ��ַ��һ����ʹ���վ��ȵȼ�¼�в�����<br> <br> ��Щ��¼�ļ�Ҳ���Գ�Ϊ���������� <br> <pre> cache_access_log For access.log cache_log For cache.log cache_store_log For store.log (Store manager) pid_filename Squid process ID file name </pre> <A NAME="235lfindex7"> </A> <H2>��֤��ʽ</H2> Squid ��Ĭ�����������κ��û���������֤���̾Ϳ��Խ��з��ʡ�Squid ͨ��һ���ⲿ�����ṩ�û���֤ <br>���ܣ�����˵ֻ������Ч���û����� Internet���������Ҫһ����Ч���û��������롣������ proxy_auth <br>ACL �� authenticate_program ��ʵ�֣�����������ǰǿ�ƽ����û���������ĺ˲顣�����г�һЩ Squid <br>���õ�����֤���� <ol> <li>LDAP : ʹ�� Linux Lightweight Ŀ¼����Э�飨Linux Lightweight Directory Access Protocol��</li> <li>NCSA : ʹ�� NCSA �����û��������뵵</li> <li>SMB : ʹ�� SMB Э��ķ����� SAMBA �� Windows NT</li> <li>MSNT : ʹ�� Windows NT ������֤</li> <li>PAM : ʹ�� Linux �Ŀ�װ����֤ģ��</li> <li>getpwam : ʹ�� Linux ���뵵</li> </ol> ����ָ��ʹ�õ���֤�������� authenticate_program ѡ����ɡ���ȷ��ѡ������֤�����Ѱ�װ���ܺ� <br>�õĹ�����<br> <br> �� squid.conf �ļ�ѡ����֤����<br> authenticate_program /usr/local/bin/pam_auth <p class="code">acl pass proxy_auth REQUIRED<br> acl mynetwork src 192.168.0.1/255.255.255.0<br> http_access deny !mynetwork<br> http_access allow pass<br> http_access deny all</p> ��������ʾ��ʹ�� PAM ��֤���������û��ڻ�÷�������ǰ���������֤��<br> <br> ����Щѡ����� authenticate_ttl �� authenticate_ip_ttl�����������ı���֤����Ķ���������˵ʹij���û���������������Ч�� <A NAME="235lfindex8"> </A> <H2>�ο�����</H2> ���Ľ��������� Squid �ı�ɽһ�ǣ�����IJο����Ͽ����������վ���ҵ��� <ul> <li><a href="http://www.squid-cache.org/">Squid Home, www.squid-cache.org</a></li> <li><a href="http://squid-docs.sourceforge.net/">Squid Documentation Project, squid-docs.sourceforge.net</a></li> <li><a href="http://www.visolve.com">visolve.com</a></li> <li><a href= "http://home.iae.nl/users/devet/squid/proxy_auth/">For Proxy Authentication, home.iae.nl/users/devet/squid/proxy_auth</a></li> </ul> <!-- vim: set sw=2 ts=2 et tw=80: --> <!-- 2pdaIgnoreStart --> <A NAME="talkback"> </a> <h2>����ƪ���·�������</h2> ÿƪ���¶��и��Եķ���ҳ�档�����ҳ����������ύ���ۣ�Ҳ���Բ鿴�������ߵ����ۣ� <center> <table border="0" CELLSPACING="2" CELLPADDING="1"> <tr BGCOLOR="#C2C2C2"><td align=center> <table border="3" CELLSPACING="2" CELLPADDING="1"> <tr BGCOLOR="#C2C2C2"><td align=center> <A href="http://cgi.linuxfocus.org/cgi-bin/lftalkback?anum=235&lang=en"><b> ����ҳ�� </b></a> </td></tr></table> </td></tr></table> </center> <HR size="2" noshade> <!-- ARTICLE FOOT --> <CENTER><TABLE WIDTH="98%"> <TR><TD ALIGN=CENTER BGCOLOR="#9999AA" WIDTH="50%"> <A HREF="../../common/lfteam.html">��ҳ��LinuxFocus�༭��ά��</A> <BR><FONT COLOR="#FFFFFF">© D.S. Oberoi, <a href="../../common/copy.html">FDL</a> <BR><a href="http://www.linuxfocus.org">LinuxFocus.org</a></FONT> <BR><a href="http://cgi.linuxfocus.org/cgi-bin/lfcomment?lang=gb&article=article235.shtml" target="_TOP">���������LinuxFocus��������������</A><BR></TD> <TD BGCOLOR="#9999AA"> <!-- TRANSLATION INFO --> <font size=2>������Ϣ:</font> <TABLE> <tr><td><font size="2">en --> -- : D.S. Oberoi <small><ds_oberoi(at)yahoo.com></small></font></td></tr> <tr><td><font size="2">en --> zh: Free Neil <freeneil(at)sohu.com></font></td></tr> </TABLE> </TD> </TR></TABLE></CENTER> <p><font size=1>2002-03-13, generated by lfparser version 2.27</font></p> <!-- 2pdaIgnoreStop --> </BODY> </HTML>