
{"id":4495,"date":"2021-01-04T17:32:35","date_gmt":"2021-01-04T09:32:35","guid":{"rendered":"https:\/\/www.webteach.tw\/?p=4495"},"modified":"2021-01-04T17:32:35","modified_gmt":"2021-01-04T09:32:35","slug":"squid","status":"publish","type":"post","link":"https:\/\/www.webteach.tw\/?p=4495","title":{"rendered":"[ Linux ] &#8211; Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a"},"content":{"rendered":"<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div><div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>\n<p>\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002<\/p>\n\n\n<p>\u5b89\u88dd Squid<br \/><br \/>\u6307\u4ee4\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install squid<\/code><\/pre>\n\n\n<p>\u8a2d\u5b9a Squid<\/p>\n\n\n<p>\u6015\u8a2d\u5b9a\u932f\u8aa4\u5148\u5099\u4efd\u4e00\u4e0b\u8a2d\u5b9a\u6a94<br \/><br \/>\u6307\u4ee4\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sudo cp \/etc\/squid\/squid.conf \/etc\/squid\/squid.conf.bk<\/code><\/pre>\n\n\n<p>\u958b\u59cb\u8a2d\u5b9a squid.conf<\/p>\n\n\n<p>\u6307\u4ee4\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/squid\/squid.conf<\/code><\/pre>\n\n\n<p>\u627e\u5230 acl CONNECT method CONNECT<\/p>\n\n\n<pre class=\"wp-block-code\"><code>#\u9650\u5b9a\u67d0\u500b\u7db2\u6bb5\u624d\u5141\u8a31\u4f7f\u7528Proxy\nacl our_networks src 172.2.0.0\/16\nhttp_access allow our_networks\n#Proxy \u76e3\u807d\u7684port  \u9810\u8a2d\u70ba 3128 \u53ef\u6539\u53ef\u4e0d\u6539\nhttp_port 3128\n<\/code><\/pre>\n\n\n<p>\u5047\u8a2d\u88dd\u8a2dSquid \u7684\u4e3b\u6a5fIP\u70ba\uff1a172.2.3.11<\/p>\n\n\n<p>Proxy \u7aef\u9a57\u8b49<\/p>\n\n\n<p>\u6307\u4ee4\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>tail -f \/var\/log\/squid\/access.log<\/code><\/pre>\n\n\n<p>\u5176\u5b83\u8981\u4f7f\u7528Proxy\u7684\u4e3b\u6a5f 172.2.3.22<\/p>\n\n\n<p>\u5728\u5ba2\u6236\u7aef\u4e3b\u6a5f 172.2.3.22 \u4f7f\u7528curl \u6e2c\u8a66 proxy<\/p>\n\n\n<p>\u6307\u4ee4\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>curl -x http:\/\/172.2.3.11:3128 -L https:\/\/www.webteach.tw<\/code><\/pre>\n\n\n<p>\u7136\u5f8c\u5728 https:\/\/www.webteach.tw \u90a3\u53f0\u4e3b\u6a5f\u78ba\u8a8d\u4f86\u8a2a\u7684IP\u70baProxy\u7684IP<\/p>\n\n\n<p>\u6307\u4ee4\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>tail -f \/var\/log\/apache2\/access.log<\/code><\/pre>\n\n\n<p>\u7531\u65bc\u8b93\u5ba2\u6236\u56de\u547c\u662f\u4f7f\u7528curl \u6240\u4ee5\u8981\u5e6bcurl\u8a2d\u5b9aproxy<\/p>\n\n\n<p>\u5728\u5ba2\u6236\u7aef\u4e3b\u6a5f 172.2.3.22\u4fee\u6539\u74b0\u5883\u8b8a\u6578<\/p>\n\n\n<pre class=\"wp-block-code\"><code>export http_proxy=http:\/\/172.2.3.11:3128\/\nexport https_proxy=$http_proxy\n<\/code><\/pre>\n\n\n<p>\u8a2d\u5b9a\u597d\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 curl \u5c31\u4e0d\u7528\u52a0 -x \u53c3\u6578<\/p>\n\n\n<pre class=\"wp-block-code\"><code>curl -L https:\/\/www.webteach.tw<\/code><\/pre>\n\n\n<p>2021-01-14 \u66f4\u65b0<\/p>\n\n\n<p>swoole client \u7aef proxy \u8a2d\u5b9a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>$Client-&gt;set(\n\tarray(\n\t    'http_proxy_host' =&gt; '172.31.2.16',\n\t    'http_proxy_port' =&gt; 3110)\n);<\/code><\/pre>\n\n\n<p>\u53c3\u8003\u7db2\u5740\uff1a<br \/><a href=\"https:\/\/www.ichiayi.com\/wiki\/tech\/squid\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.ichiayi.com\/wiki\/tech\/squid<\/a><br \/><a href=\"https:\/\/www.cyberciti.biz\/faq\/linux-unix-curl-command-with-proxy-username-password-http-options\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.cyberciti.biz\/faq\/linux-unix-curl-command-with-proxy-username-password-http-options\/<\/a><br \/><a href=\"https:\/\/www.serverlab.ca\/tutorials\/linux\/administration-linux\/how-to-configure-proxy-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.serverlab.ca\/tutorials\/linux\/administration-linux\/how-to-configure-proxy-on-ubuntu-18-04\/<\/a><br \/><a href=\"https:\/\/blog.longwin.com.tw\/2014\/04\/curl-cli-use-proxy-2014\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/blog.longwin.com.tw\/2014\/04\/curl-cli-use-proxy-2014\/<\/a><br \/><a href=\"https:\/\/wiki.swoole.com\/#\/client?id=http_proxy\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/wiki.swoole.com\/#\/client?id=http_proxy<\/a><br \/><a href=\"https:\/\/tech.yj777.cn\/swoole-websocket-behind-apache-mod_ssl-proxy\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/tech.yj777.cn\/swoole-websocket-behind-apache-mod_ssl-proxy\/<\/a><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002<\/p>\n","protected":false},"author":1,"featured_media":4496,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[32],"tags":[370,523,969],"class_list":["post-4495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux","tag-squid","tag-969"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[ Linux ] - Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a - \u6df7\u6c34\u6478\u9b5a<\/title>\n<meta name=\"description\" content=\"\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webteach.tw\/?p=4495\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[ Linux ] - Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a - \u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"og:description\" content=\"\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webteach.tw\/?p=4495\" \/>\n<meta property=\"og:site_name\" content=\"\u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-04T09:32:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webteach.tw\/wp-content\/uploads\/2021\/01\/Selection_045.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1058\" \/>\n\t<meta property=\"og:image:height\" content=\"603\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"jeff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"jeff\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495\"},\"author\":{\"name\":\"jeff\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"headline\":\"[ Linux ] &#8211; Squid Proxy setting \\\/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a\",\"datePublished\":\"2021-01-04T09:32:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495\"},\"wordCount\":83,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Selection_045.png\",\"keywords\":[\"linux\",\"Squid\",\"\u6b63\u5411\u4ee3\u7406\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495\",\"name\":\"[ Linux ] - Squid Proxy setting \\\/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a - \u6df7\u6c34\u6478\u9b5a\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Selection_045.png\",\"datePublished\":\"2021-01-04T09:32:35+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"description\":\"\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=4495\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#primaryimage\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Selection_045.png\",\"contentUrl\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Selection_045.png\",\"width\":1058,\"height\":603},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4495#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\\\/\\\/www.webteach.tw\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[ Linux ] &#8211; Squid Proxy setting \\\/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/\",\"name\":\"\u6df7\u6c34\u6478\u9b5a\",\"description\":\"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webteach.tw\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\",\"name\":\"jeff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"caption\":\"jeff\"},\"sameAs\":[\"http:\\\/\\\/35.72.55.111\"],\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?author=1\"},false]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[ Linux ] - Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a - \u6df7\u6c34\u6478\u9b5a","description":"\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webteach.tw\/?p=4495","og_locale":"zh_TW","og_type":"article","og_title":"[ Linux ] - Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a - \u6df7\u6c34\u6478\u9b5a","og_description":"\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002","og_url":"https:\/\/www.webteach.tw\/?p=4495","og_site_name":"\u6df7\u6c34\u6478\u9b5a","article_published_time":"2021-01-04T09:32:35+00:00","og_image":[{"width":1058,"height":603,"url":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2021\/01\/Selection_045.png","type":"image\/png"}],"author":"jeff","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"jeff","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webteach.tw\/?p=4495#article","isPartOf":{"@id":"https:\/\/www.webteach.tw\/?p=4495"},"author":{"name":"jeff","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"headline":"[ Linux ] &#8211; Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a","datePublished":"2021-01-04T09:32:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webteach.tw\/?p=4495"},"wordCount":83,"commentCount":0,"image":{"@id":"https:\/\/www.webteach.tw\/?p=4495#primaryimage"},"thumbnailUrl":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2021\/01\/Selection_045.png","keywords":["linux","Squid","\u6b63\u5411\u4ee3\u7406"],"articleSection":["Linux"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webteach.tw\/?p=4495#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webteach.tw\/?p=4495","url":"https:\/\/www.webteach.tw\/?p=4495","name":"[ Linux ] - Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a - \u6df7\u6c34\u6478\u9b5a","isPartOf":{"@id":"https:\/\/www.webteach.tw\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webteach.tw\/?p=4495#primaryimage"},"image":{"@id":"https:\/\/www.webteach.tw\/?p=4495#primaryimage"},"thumbnailUrl":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2021\/01\/Selection_045.png","datePublished":"2021-01-04T09:32:35+00:00","author":{"@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"description":"\u9019\u500b\u9700\u6c42\u662f\u59cb\u65bc\u5de5\u4f5c\u4e0a\u7684\u9700\u8981\uff0c\u56e0\u70ba\u6211\u5011\u670d\u52d9\u7684\u5ba2\u6236\u6563\u4f48\u5728\u4e16\u754c\u5404\u5730\uff0c\u7576\u4e3b\u6a5f\u8d85\u904e\u8ca0\u8377\u6642\uff1b\u4e3b\u6a5f\u9700\u8981\u6709\u6a6b\u5411\u64f4\u5c55\u7684\u529f\u80fd\uff0c\u56e0\u70ba\u5b89\u5168\u9700\u8981\u6240\u4ee5\u5ba2\u6236\u7aef\u9700\u8981\u8a2d\u5b9a\u6211\u65b9\u67d0\u53f0API\u4e3b\u6a5f\u7684IP\u70ba\u767d\u540d\u55ae, \u624d\u80fd\u6b63\u5e38\u7684\u56de\u547c\u5ba2\u6236\u7aefAPI\u3002\u7c21\u55ae\u4f86\u8aaa\u5c0d\u5916\u7684\u4e3b\u6a5f\u53ea\u80fd\u7528\u4e00\u53f0\u8a72\u53f0\u4e3b\u6a5f\u5c31\u62ff\u4f86\u5b89\u88dd Squid \u7576 \u6b63\u5411\u4ee3\u7406 \u7684\u529f\u80fd\u6a5f\u3002","breadcrumb":{"@id":"https:\/\/www.webteach.tw\/?p=4495#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webteach.tw\/?p=4495"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.webteach.tw\/?p=4495#primaryimage","url":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2021\/01\/Selection_045.png","contentUrl":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2021\/01\/Selection_045.png","width":1058,"height":603},{"@type":"BreadcrumbList","@id":"https:\/\/www.webteach.tw\/?p=4495#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.webteach.tw\/"},{"@type":"ListItem","position":2,"name":"[ Linux ] &#8211; Squid Proxy setting \/ Squid \u6b63\u5411\u4ee3\u7406\u8a2d\u5b9a"}]},{"@type":"WebSite","@id":"https:\/\/www.webteach.tw\/#website","url":"https:\/\/www.webteach.tw\/","name":"\u6df7\u6c34\u6478\u9b5a","description":"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webteach.tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520","name":"jeff","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","caption":"jeff"},"sameAs":["http:\/\/35.72.55.111"],"url":"https:\/\/www.webteach.tw\/?author=1"},false]}},"views":1831,"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"_links":{"self":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/4495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4495"}],"version-history":[{"count":0,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/4495\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/media\/4496"}],"wp:attachment":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}