{"id":5684,"date":"2024-05-11T19:47:35","date_gmt":"2024-05-11T11:47:35","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5684"},"modified":"2024-05-11T19:47:35","modified_gmt":"2024-05-11T11:47:35","slug":"squid%e7%9a%84%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%e6%b5%8b%e8%af%95","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5684.html","title":{"rendered":"Squid\u7684\u73af\u5883\u642d\u5efa\u6d4b\u8bd5"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u7b80\u5355\u8bb0\u5f55\u4e00\u4e0b Squid \u4ee3\u7406\u670d\u52a1\u7684\u642d\u5efa\u8fc7\u7a0b\uff0c\u65b9\u4fbf\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<h4 class=\"wp-block-heading\">Squid \u662f\u4ec0\u4e48\uff1f\u4ee5\u53ca\u80fd\u505a\u4ec0\u4e48\uff1f<\/h4>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Squid Cache\uff08\u7b80\u79f0\u4e3aSquid\uff09\u662f\u4e00\u4e2a\u652f\u6301HTTP\uff0cHTTPS\uff0cFTP\u7b49\u670d\u52a1\u7684<strong>\u4ee3\u7406\u670d\u52a1\u8f6f\u4ef6<\/strong>\u3002Squid\u7528\u9014\u5e7f\u6cdb\uff0c\u53ef\u4ee5\u4f5c\u4e3a<strong>\u7f13\u5b58\u670d\u52a1\u5668<\/strong>\uff08\u5b83\u53ef\u4ee5\u901a\u8fc7\u7f13\u5b58\u9875\u9762\u6765\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u54cd\u5e94\u901f\u5ea6\u5e76\u964d\u4f4e\u5e26\u5bbd\u5360\u7528\uff09\uff0c\u53ef\u4ee5<strong>\u8fc7\u6ee4\u6d41\u91cf<\/strong>\u5e2e\u52a9\u7f51\u7edc\u5b89\u5168\uff08\u5b83\u5177\u6709\u5f3a\u5927\u7684\u8bbf\u95ee\u63a7\u5236\u529f\u80fd\uff09\uff0c\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u4ee3\u7406\u670d\u52a1\u5668\u94fe\u4e2d\u7684\u4e00\u73af\uff0c\u5411\u4e0a\u7ea7\u4ee3\u7406\u8f6c\u53d1\u6570\u636e\u6216\u76f4\u63a5\u8fde\u63a5\u4e92\u8054\u7f51\u3002<\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528 Squid \u7b80\u5355\u5feb\u901f\u7684\u642d\u5efaHTTP\u4ee3\u7406<\/h4>\n\n\n\n<p>\u7528Squid\u642d\u5efaHTTP\u4ee3\u7406\u4ee5\u53ca\u652f\u6301\u7b80\u5355\u7684Basic\u8ba4\u8bc1\u8fd8\u662f\u5f88\u5feb\u7684\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u5185\u5bb9\u4e3b\u8981\u5f15\u7528\u81ea <a href=\"https:\/\/blog.kieng.cn\/2717.html\">\u4f7f\u7528Squid,\u7b80\u5355\u5feb\u901f\u7684\u642d\u5efaHTTP\u4ee3\u7406<\/a> \u4e00\u6587\uff0c\u7b80\u5355\u660e\u4e86\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5b89\u88c5 Squid<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo yum install squid -y<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo vim \/etc\/squid\/squid.conf\n...\n# \u5c06 http_access deny all \u4e2ddeny\u6539\u4e3aallow\uff0c\u8fd8\u6709\u5c31\u662f http_port \u540e\u9762\u7684\u662f\u7aef\u53e3\u53f7\uff0c\u968f\u4fbf\u6539\u6210\u6ca1\u88ab\u5360\u7528\u7684\u7aef\u53e3\u53f7\u5c31\u884c\nhttp_access allow all\nhttp_port 13128\n...<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>\u542f\u52a8\/\u91cd\u542f\u670d\u52a1<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code># \u67e5\u770b\u72b6\u6001\n$ sudo systemctl status squid.service\n\n# \u542f\u52a8\n$ sudo systemctl start squid.service\n\n# \u91cd\u542f\n$ sudo systemctl restart squid.service<\/code><\/pre>\n\n\n\n<p>\u9ad8\u533f\u4ee3\u7406:<\/p>\n\n\n\n<p>\u5728\/etc\/squid\/squid.conf\u4e2d\u6dfb\u52a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>request_header_access Via deny all\nrequest_header_access X-Forwarded-For deny all<\/code><\/pre>\n\n\n\n<p>OK \u62c9~<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528 Squid \u5feb\u901f\u7684\u642d\u5efa\u5e26\u8ba4\u8bc1\u7684HTTP\u4ee3\u7406\u670d\u52a1<\/h4>\n\n\n\n<p>\u81ea\u5df1\u642d\u5efa\u7684HTTP\u4ee3\u7406\u670d\u52a1\u5982\u679c\u6ca1\u6709\u8ba4\u8bc1\u8fd8\u662f\u4e0d\u592a\u5b89\u5168\uff08\u5bb9\u6613\u88ab\u626b\u63cf\u5230\u7136\u540e\u88ab\u6ee5\u7528\uff09\uff0c\u8fd9\u91cc\u7b80\u5355\u8bb0\u5f55\u4e00\u4e0b\u5982\u4f55\u914d\u7f6e\u5e26\u8ba4\u8bc1\u7684HTTP\u4ee3\u7406\u670d\u52a1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. \u5b89\u88c5\u76f8\u5173\u4f9d\u8d56\uff08htpasswd\u547d\u4ee4\u5728\u8fd9\u91cc\u9762\uff09\n$ sudo yum install -y httpd-tools\n\n2. \u521b\u5efa\u8d26\u53f7\u5e76\u8bbe\u7f6e\u5bc6\u7801\n$ sudo htpasswd -c \/etc\/squid\/passwords squid_username_here #\u6307\u5b9a\u521b\u5efa\u7684\u7528\u6237\u540d\uff0c\u8f93\u5165\u56de\u8f66\u4e4b\u540e\u518d\u8f93\u5165\u5bc6\u7801\n$ sudo cat \/etc\/squid\/passwords\n\n3. \u66f4\u65b0 Squid \u7684\u914d\u7f6e\u6587\u4ef6\n$ sudo vim \/etc\/squid\/squid.conf\n...\n#\n# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS\n# \u5728\u4e0a\u9762\u8fd9\u4e00\u884c\u63d0\u793a\u4e4b\u540e\u6dfb\u52a0\u81ea\u5df1\u7684\u5141\u8bb8\u89c4\u5219\uff08\u5b9e\u9645\u6d4b\u8bd5basic\u8ba4\u8bc1\u7684\u903b\u8f91\u76f4\u63a5\u6dfb\u52a0\u5728\u6700\u540e\u662f\u65e0\u6548\u7684\uff0c\u56e0\u4e3a\u524d\u9762\u53ef\u80fd\u6709allow all\u4e86\uff09\n\nauth_param basic program \/usr\/lib64\/squid\/basic_ncsa_auth \/etc\/squid\/passwords\nauth_param basic realm proxy\nacl authenticated proxy_auth REQUIRED\nhttp_access allow authenticated\n...\n\n4. \u91cd\u542f Squid \u670d\u52a1\n$ systemctl status squid.service\n$ sudo systemctl start squid.service\n$ sudo systemctl stop squid.service\n$ sudo systemctl restart squid.service<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e00\u4e9b\u5176\u5b83\u5185\u5bb9<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u68c0\u67e5 Squid \u914d\u7f6e\u6587\u4ef6\u662f\u5426\u5b58\u5728\u8bed\u6cd5\u9519\u8bef\n# squid -k parse\n\n\n# 2. \u5f53\u8fde\u63a5\u547d\u4ee4\u62a5\u9519\u201cNo route to host\uff08\u6ca1\u6709\u5230\u4e3b\u673a\u7684\u8def\u7531\uff09\u201d\u65f6\u8be5\u600e\u4e48\u6392\u67e5\u548c\u5904\u7406\uff1f\n# \u6ca1\u6709\u5230\u4e3b\u673a\u7684\u8def\u7531\u8fd9\u79cd\u95ee\u9898\u5f88\u5e38\u89c1\uff0c\u7edd\u5927\u591a\u6570\u662f\u7531\u673a\u5668\u7684\u9632\u706b\u5899\u6ca1\u6709\u5173\u95ed\uff0c\u5c11\u6570\u60c5\u51b5\u662f\u771f\u7684\u56e0\u4e3a\u6ca1\u6709\u8def\u7531\u800c\u4e0d\u901a\n\n# \u67e5\u770b\u9632\u706b\u5899\u72b6\u6001\nservice iptables status\nfirewall-cmd --state\n\n# \u5173\u95ed\u9632\u706b\u5899\uff0c\u6ce8\u610f\u6709\u4e9b\u673a\u5668\u9632\u706b\u5899\u662fiptables\nsystemctl stop firewalld &amp;&amp; systemctl disable firewalld \n\n# \u6216\u8005\u5f00\u653e\u7279\u5b9a\u7aef\u53e3\uff0c\u7136\u540e\u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899\u914d\u7f6e\nfirewall-cmd --add-port=9092\/tcp --permanent\nfirewall-cmd --reload\n\n# \u9996\u5148\u68c0\u67e5\u4e00\u4e0b\u670d\u52a1\u5668\u7684iptables\u89c4\u5219\uff0c\u7136\u540e\u5148\u5907\u4efd\uff0c\u518d\u6e05\u7a7a\u5df2\u6709\u89c4\u5219\n$ sudo iptables --list\n$ sudo iptables-save &gt; iptables-save-$(date +%F).txt\n$ sudo iptables -F\n$ sudo iptables --list\n\n\n# 3. \u5f53\u4f7f\u7528 yum \u547d\u4ee4\u5b89\u88c5\u65f6\u53d1\u73b0\u7f51\u7edc\u4e0d\u901a\u6216\u662f\u7f51\u901f\u8f83\u6162\u65f6\uff0c\u66f4\u6362\u6210\u66f4\u5408\u9002\u7684repo\u6e90\n# \u5907\u4efd\u7136\u540e\u66f4\u65b0repo\u6587\u4ef6\nsudo cp \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup\nwget https:\/\/mirrors.163.com\/.help\/CentOS7-Base-163.repo\nsudo mv CentOS7-Base-163.repo \/etc\/yum.repos.d\/\n\n# \u751f\u6210\u7f13\u5b58\nsudo yum clean all\nsudo yum makecache<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u67e5\u770b Squid \u65e5\u5fd7<\/h4>\n\n\n\n<p>$ sudo ls -lt \/var\/log\/squid\/<br>$ sudo cat \/var\/log\/squid\/access.log<br>$ sudo tail -f \/var\/log\/squid\/access.log<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528 Squid \u642d\u5efa HTTPS \u4ee3\u7406<\/h4>\n\n\n\n<p>\u8fd9\u91cc\u53ea\u7b80\u5355\u6458\u5f55\u4e00\u4e0b\u7f51\u4e0a\u641c\u5230\u7684\u770b\u4e0a\u53bb\u8fd8\u6bd4\u8f83\u9760\u8c31\u7684\u6b65\u9aa4\u8bf4\u660e\u3002<strong>\u5b9e\u9645\u6d4b\u8bd5\u53d1\u73b0\u7528 Squid \u914d\u7f6e HTTPS \u4ee3\u7406\u8fd8\u662f\u6ca1\u90a3\u4e48\u7b80\u5355\u76f4\u63a5\u7684\uff0c\u540e\u9762\u5b9e\u6d4bOK\u4e86\u6211\u518d\u6574\u7406\u4e00\u7bc7\u6587\u7ae0\u8bf4\u660e\u3002<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u751f\u6210\u4e00\u4e2aCA\u8bc1\u4e66\u7ed9Squid\u4f7f\u7528 (Generate a CA Certificate to be used by Squid)\n<ul class=\"wp-block-list\">\n<li>\u914d\u7f6eSquid\u4ee5\u652f\u6301\u529f\u80fd (Configure Squid to Peek-N-Slice SSL Connections)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u5728\u6d4f\u89c8\u5668\u4e2d\u5bfc\u5165\u8bc1\u4e66CA (Import Certificate CA into the Browser for Squid)\n<ul class=\"wp-block-list\">\n<li>\u68c0\u67e5Squid\u65e5\u5fd7 (Check out Squid Logs)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u4f7f\u7528\u4ee3\u7406\u81ea\u52a8\u914d\u7f6e(PAC)\u6587\u4ef6\u8fdb\u884c\u4ee3\u7406\u8bbe\u7f6e (Using a proxy auto-config (PAC) file to Specify Proxy Settings)\n<ul class=\"wp-block-list\">\n<li>\u5b89\u5168\u8fde\u63a5\u4ee3\u7406 (Secure Proxy Connections)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u9996\u5148\u9700\u8981\u51c6\u5907\u8bc1\u4e66\uff0c\u6709\u4e09\u79cd\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u81ea\u5df1\u7b7e\u540d<\/li>\n\n\n\n<li>\u627e\u673a\u6784\u8d2d\u4e70\uff08\u5982\u963f\u91cc\u4e91\uff09<\/li>\n\n\n\n<li>\u4f7f\u7528acme.sh\u514d\u8d39\u751f\u6210<\/li>\n<\/ol>\n\n\n\n<p>\u6211\u7528\u7684\u7b2c\u4e09\u79cd\uff0c\u64cd\u4f5c\u5b98\u7f51\u4e0a\u5199\u7740\uff0c\u8fd9\u91cc\u4e0d\u591a\u8bf4\u4e86\u3002<\/p>\n\n\n\n<p>\u2026\u2026<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528 Squid \u642d\u5efa\u4f7f\u7528 LDAP \u8ba4\u8bc1\u7684 HTTP \u4ee3\u7406<\/h4>\n\n\n\n<p>\u6839\u636e\u4ee5\u540e\u7684\u5b9e\u9645\u9700\u6c42\u60c5\u51b5\u518d\u770b\u662f\u5426\u8fdb\u884c\u8865\u5145<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528 Squid \u642d\u5efa\u4f7f\u7528 Kerberos \u8ba4\u8bc1\u7684 HTTP \u4ee3\u7406<\/h4>\n\n\n\n<p>\u6839\u636e\u4ee5\u540e\u7684\u5b9e\u9645\u9700\u6c42\u60c5\u51b5\u518d\u770b\u662f\u5426\u8fdb\u884c\u8865\u5145<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>\u4f7f\u7528Squid,\u7b80\u5355\u5feb\u901f\u7684\u642d\u5efaHTTP\u4ee3\u7406<br><a href=\"https:\/\/blog.kieng.cn\/2717.html\">https:\/\/blog.kieng.cn\/2717.html<\/a><\/p>\n\n\n\n<p>Centos7\u4e0b\u4f7f\u7528Squid\u5feb\u901f\u642d\u5efa\u5e26\u8ba4\u8bc1\u7684HTTP\u4ee3\u7406\u670d\u52a1\u5668<br><a href=\"https:\/\/blog.phpgao.com\/squid_proxy_with_basic_auth.html\">https:\/\/blog.phpgao.com\/squid_proxy_with_basic_auth.html<\/a><\/p>\n\n\n\n<p>\u4f7f\u7528Squid\u642d\u5efaHTTP\u4ee3\u7406\u670d\u52a1\u5668<br><a href=\"https:\/\/bu1.github.io\/2021\/12\/04\/%E4%BD%BF%E7%94%A8Squid%E6%90%AD%E5%BB%BAHTTP%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8\/\">https:\/\/bu1.github.io\/2021\/12\/04\/%E4%BD%BF%E7%94%A8Squid%E6%90%AD%E5%BB%BAHTTP%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8\/<\/a><\/p>\n\n\n\n<p>squid\u4ee3\u7406\u53ca\u5e38\u89c1\u7684\u4ee3\u7406\u4e0a\u7f51<br><a href=\"https:\/\/www.cnblogs.com\/ssgeek\/p\/12302135.html\">https:\/\/www.cnblogs.com\/ssgeek\/p\/12302135.html<\/a><\/p>\n\n\n\n<p>\u73a9\u8f6cVPS\u4e4b\u5feb\u901f\u642d\u5efaHTTP\u4ee3\u7406<br><a href=\"https:\/\/blog.phpgao.com\/vps_tinyproxy.html\">https:\/\/blog.phpgao.com\/vps_tinyproxy.html<\/a><\/p>\n\n\n\n<p>Squid test config file for syntax errors<br><a href=\"https:\/\/www.cyberciti.biz\/faq\/squid-test-config-file-for-syntax-errors\/\">https:\/\/www.cyberciti.biz\/faq\/squid-test-config-file-for-syntax-errors\/<\/a><\/p>\n\n\n\n<p>Squid\u6781\u7b80\u642d\u5efaHTTP\/HTTPS\u4ee3\u7406\u670d\u52a1\u5668<br><a href=\"https:\/\/cooolin.com\/scinet\/2020\/06\/21\/squid-proxy-simple.html\">https:\/\/cooolin.com\/scinet\/2020\/06\/21\/squid-proxy-simple.html<\/a><\/p>\n\n\n\n<p>CentOS 7 + TinyProxy \u5feb\u901f\u642d\u5efaHTTP\u4ee3\u7406<br><a href=\"https:\/\/www.bestyii.com\/topic\/126\">https:\/\/www.bestyii.com\/topic\/126<\/a><\/p>\n\n\n\n<p>How to install Squid forward proxy with TLS enabled<br><a href=\"https:\/\/www.googlecloudcommunity.com\/gc\/Cloud-Product-Articles\/How-to-install-Squid-forward-proxy-with-TLS-enabled\/ta-p\/478008\">https:\/\/www.googlecloudcommunity.com\/gc\/Cloud-Product-Articles\/How-to-install-Squid-forward-proxy-with-TLS-enabled\/ta-p\/478008<\/a><br><a href=\"https:\/\/elatov.github.io\/2019\/01\/using-squid-to-proxy-ssl-sites\/\">https:\/\/elatov.github.io\/2019\/01\/using-squid-to-proxy-ssl-sites\/<\/a><\/p>\n\n\n\n<p>acme.sh \u5b9e\u73b0\u4e86 acme \u534f\u8bae, \u53ef\u4ee5\u4ece letsencrypt \u751f\u6210\u514d\u8d39\u7684\u8bc1\u4e66<br><a href=\"https:\/\/github.com\/acmesh-official\/acme.sh\/wiki\">https:\/\/github.com\/acmesh-official\/acme.sh\/wiki<\/a><br><a href=\"https:\/\/github.com\/acmesh-official\/acme.sh\/wiki\/%E8%AF%B4%E6%98%8E\">https:\/\/github.com\/acmesh-official\/acme.sh\/wiki\/%E8%AF%B4%E6%98%8E<\/a><\/p>\n\n\n\n<p>Chapter 3. Configuring the Squid caching proxy server<br><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/9\/html\/deploying_web_servers_and_reverse_proxies\/configuring-the-squid-caching-proxy-server_deploying-web-servers-and-reverse-proxies\">https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/9\/html\/deploying_web_servers_and_reverse_proxies\/configuring-the-squid-caching-proxy-server_deploying-web-servers-and-reverse-proxies<\/a><\/p>\n\n\n\n<p>Chapter 16. Configuring the Squid Caching Proxy Server<br><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/7\/html\/networking_guide\/configuring-the-squid-caching-proxy-server\">https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/7\/html\/networking_guide\/configuring-the-squid-caching-proxy-server<\/a><\/p>\n\n\n\n<p>Squid Log Files<br><a href=\"https:\/\/wiki.squid-cache.org\/SquidFaq\/SquidLogs\">https:\/\/wiki.squid-cache.org\/SquidFaq\/SquidLogs<\/a><\/p>\n\n\n\n<p>Squid Web Cache wiki<br><a href=\"https:\/\/wiki.squid-cache.org\/Features\/LogFormat\">https:\/\/wiki.squid-cache.org\/Features\/LogFormat<\/a><\/p>\n\n\n\n<p>Squid configuration directive access_log<br><a href=\"https:\/\/www.squid-cache.org\/Doc\/config\/access_log\/\">https:\/\/www.squid-cache.org\/Doc\/config\/access_log\/<\/a><\/p>\n\n\n\n<p>Squid configuration directive logformat<br><a href=\"https:\/\/www.squid-cache.org\/Doc\/config\/logformat\/\">https:\/\/www.squid-cache.org\/Doc\/config\/logformat\/<\/a><\/p>\n\n\n\n<p>Squid \u4ee3\u7406\u670d\u52a1\u4e4b\u4f20\u7edf\u4ee3\u7406\u670d\u52a1\u5668\u67b6\u6784\u642d\u5efa<br><a href=\"https:\/\/blog.csdn.net\/shenyuanhaojie\/article\/details\/121128443\">https:\/\/blog.csdn.net\/shenyuanhaojie\/article\/details\/121128443<\/a><\/p>\n\n\n\n<p>Squid \u7f13\u5b58\u4ee3\u7406\uff08\u539f\u7406 + \u5b89\u88c5\u914d\u7f6e\uff09<br><a href=\"https:\/\/blog.csdn.net\/shenyuanhaojie\/article\/details\/121123525\">https:\/\/blog.csdn.net\/shenyuanhaojie\/article\/details\/121123525<\/a><\/p>\n\n\n\n<p>squid\u4ee3\u7406\u53ca\u5e38\u89c1\u7684\u4ee3\u7406\u4e0a\u7f51<br><a href=\"https:\/\/www.ssgeek.com\/post\/squid-dai-li-ji-chang-jian-de-dai-li-shang-wang\/\">https:\/\/www.ssgeek.com\/post\/squid-dai-li-ji-chang-jian-de-dai-li-shang-wang\/<\/a><\/p>\n\n\n\n<p>squid\u4ee3\u7406\u4e0e\u7f13\u5b58\uff08\u4e0a\uff09<br><a href=\"https:\/\/www.cnblogs.com\/ywb123\/p\/11395954.html\">https:\/\/www.cnblogs.com\/ywb123\/p\/11395954.html<\/a><\/p>\n\n\n\n<p>squid\u4ee3\u7406\u4e0e\u7f13\u5b58\uff08\u4e0b\uff09<br><a href=\"https:\/\/www.cnblogs.com\/ywb123\/p\/11396059.html\">https:\/\/www.cnblogs.com\/ywb123\/p\/11396059.html<\/a><\/p>\n\n\n\n<p>\u4ee3\u7406\u670d\u52a1\u5668\u4e4b squid\u3001lvs\u3001nginx\u3001haproxy\u4e4b\u95f4\u7684\u533a\u522b<br><a href=\"https:\/\/www.cnblogs.com\/ywb123\/p\/17514940.html\">https:\/\/www.cnblogs.com\/ywb123\/p\/17514940.html<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u7b80\u5355\u8bb0\u5f55\u4e00\u4e0b Squid \u4ee3\u7406\u670d\u52a1\u7684\u642d\u5efa\u8fc7\u7a0b\uff0c\u65b9\u4fbf\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002 \u6b63\u6587\uff1a \u53c2\u8003\u89e3\u7b54 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11,25,12],"tags":[2266,128,2264,2265],"class_list":["post-5684","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","category-security","category-tools","tag-htpasswd","tag-proxy","tag-squid","tag-2265"],"views":928,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5684"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5684\/revisions"}],"predecessor-version":[{"id":5685,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5684\/revisions\/5685"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}