{"id":838,"date":"2025-01-01T21:54:58","date_gmt":"2025-01-01T13:54:58","guid":{"rendered":"https:\/\/hali.life\/?p=838"},"modified":"2025-01-01T23:36:04","modified_gmt":"2025-01-01T15:36:04","slug":"%e6%8c%87%e7%ba%b9%e6%b5%8f%e8%a7%88%e5%99%a8%ef%bc%8c%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e6%9c%8d%e5%8a%a1%e5%99%a8ip","status":"publish","type":"post","link":"https:\/\/hali.life\/?p=838","title":{"rendered":"\u6307\u7eb9\u6d4f\u89c8\u5668\uff0c\u5982\u4f55\u4f7f\u7528\u81ea\u5df1\u670d\u52a1\u5668IP"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u7b80\u4ecb<\/h1>\n\n\n\n<p>\u5bf9\u4e8e\u5e01\u5708\u4eba\u6765\u8bf4\uff0c\u4e00\u4e2a\u670d\u52a1\u5668\u6700\u5b9d\u8d35\u7684\u8d44\u6e90\u5176\u5b9e\u662f\u5b83\u7684IP\uff0c\u90a3\u4e48\u6211\u60f3\u628a\u8fd9\u4e2a\u670d\u52a1\u5668\u7684ip\u6302\u5728\u6211\u7684\u6307\u7eb9\u6d4f\u89c8\u5668\u4e0a\u4f7f\u7528\uff0c\u90a3\u8fd9\u6837\u6211\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u65f6\u5019\u5c31\u662f\u4f7f\u7528\u8fd9\u4e2a\u670d\u52a1\u5668\u7684IP\u8bbf\u95ee\u7f51\u7ad9\u4e86\u3002\u5c31\u7701\u4e86\u4e00\u4e2a\u4e70\u72ec\u7acbIP\u7684\u94b1\u4e86\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u6559\u5b66\u89c6\u9891<\/h1>\n\n\n\n<iframe src=\"\/\/player.bilibili.com\/player.html?bvid=BV1Ga6fYtEnU&#038;page=1\" scrolling=\"no\" border=\"0\" frameborder=\"no\" framespacing=\"0\" allowfullscreen=\"true\" style=\"width:100%; height:500px; max-width: 100%\uff1balign:center; margin-left: 60px; \"> <\/iframe>\n\n\n\n<h1 class=\"wp-block-heading\">\u4f4f\u5b85\u670d\u52a1\u5668\u63a8\u8350<\/h1>\n\n\n\n<p>lisa\u4e3d\u8428\u670d\u52a1\u5668\u5b98\u7f51\uff1a<strong><mark><a href=\"https:\/\/lisahost.com\/aff.php?aff=2457\" target=\"_blank\" rel=\"noreferrer noopener\">\u4e3d\u8428\u5b98\u7f51<\/a><\/mark><\/strong><\/p>\n\n\n\n<p>lisa\u4e3d\u8428\u670d\u52a1\u5668\u4f18\u60e0\u7801\uff1aTS-CBP205DQJE<\/p>\n\n\n\n<p>Linux\u670d\u52a1\u5668\u8fde\u63a5\u5de5\u5177\uff1a<a href=\"https:\/\/pan.quark.cn\/s\/872f7266c425\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">FinallShell\u5b89\u88c5\u5305<\/mark><\/strong><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u64cd\u4f5c<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u9996\u5148\u5b89\u88c5Squid\u4ee3\u7406\u670d\u52a1\u5668\nsudo apt update\nsudo apt install squid -y\n\n# 2. \u5907\u4efd\u539f\u59cb\u914d\u7f6e\u6587\u4ef6\nsudo cp \/etc\/squid\/squid.conf \/etc\/squid\/squid.conf.backup\n\n# 3. \u521b\u5efa\u7528\u6237\u8ba4\u8bc1\u6587\u4ef6\nsudo touch \/etc\/squid\/passwd\nsudo htpasswd -c \/etc\/squid\/passwd coder_hali\n# \u5728\u63d0\u793a\u65f6\u8f93\u5165\u5bc6\u7801: Rge4EcfA4uQ\n\n# 4. \u6e05\u7a7a\u539f\u6709\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\uff0c\u7f16\u8f91Squid\u914d\u7f6e\u6587\u4ef6\nsudo truncate -s 0 \/etc\/squid\/squid.conf\nsudo nano \/etc\/squid\/squid.conf\n\n# \u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\uff1a\nauth_param basic program \/usr\/lib\/squid\/basic_ncsa_auth \/etc\/squid\/passwd\nauth_param basic realm proxy\nacl authenticated proxy_auth REQUIRED\n\nhttp_access allow authenticated\nhttp_access deny all\n\nhttp_port 2333\n\n# 5. \u91cd\u542fSquid\u670d\u52a1\nsudo systemctl restart squid\n\n# 6. \u914d\u7f6e\u9632\u706b\u5899\uff08\u5982\u679c\u5f00\u542f\u4e86\u7684\u8bdd\uff09\nsudo ufw allow 2333\/tcp\n\n# 7. \u9a8c\u8bc1Squid\u670d\u52a1\u72b6\u6001\nsudo systemctl status squid<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u6d4b\u8bd5<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4f7f\u7528\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u68c0\u6d4b\u4f60\u662f\u5426\u6210\u529f\n# \u6210\u529f\u7684\u8bdd\u4f1a\u663e\u793a\u4f60\u670d\u52a1\u5668\u7684IP\u4fe1\u606f\ncurl -x \u670d\u52a1\u5668IP:\u7aef\u53e3 -U \"\u8d26\u53f7:\u5bc6\u7801\" ipinfo.io<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb \u5bf9\u4e8e\u5e01\u5708\u4eba\u6765\u8bf4\uff0c\u4e00\u4e2a\u670d\u52a1\u5668\u6700\u5b9d\u8d35\u7684\u8d44\u6e90\u5176\u5b9e\u662f\u5b83\u7684IP\uff0c\u90a3\u4e48\u6211\u60f3\u628a\u8fd9\u4e2a\u670d\u52a1\u5668\u7684ip\u6302\u5728\u6211\u7684\u6307\u7eb9\u6d4f\u89c8\u5668\u4e0a\u4f7f\u7528&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":839,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"views":3741,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=838"}],"version-history":[{"count":5,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/838\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/838\/revisions\/846"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/media\/839"}],"wp:attachment":[{"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}