{"id":95831,"date":"2020-04-03T17:07:58","date_gmt":"2020-04-03T09:07:58","guid":{"rendered":"http:\/\/4563.org\/?p=95831"},"modified":"2020-04-03T17:07:58","modified_gmt":"2020-04-03T09:07:58","slug":"%e4%bc%b8%e6%89%8b%e5%85%9a%e6%9d%a5%e4%ba%86%ef%bc%9a%e6%b1%82-squid-%e9%85%8d%e7%bd%ae%e5%8f%8c%e7%bd%91%e5%8d%a1-http-%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=95831","title":{"rendered":"\u4f38\u624b\u515a\u6765\u4e86\uff1a\u6c42 Squid \u914d\u7f6e\u53cc\u7f51\u5361 http \u4ee3\u7406"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4f38\u624b\u515a\u6765\u4e86\uff1a\u6c42 Squid \u914d\u7f6e\u53cc\u7f51\u5361 http \u4ee3\u7406               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : phpfpm <\/span>  <span><i><\/i> 98<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u524d\u60c5\u63d0\u8981\uff1a<\/p>\n<p>\u5e1d\u90fd\u7684\u4e00\u4e07\u53f7\u5bbd\u5e26\u6700\u8fd1\u7279\u522b\u5948\u65af\uff0c\u7ed9\u516c\u7f51 ip+\u53ef\u4ee5\u591a\u62e8\uff0c\u6240\u4ee5\u60f3\u505a\u4e00\u70b9\u5947\u602a\u7684\u7528\u9014\u3002<\/p>\n<p>\u7f51\u7edc\u62d3\u6251\uff1a<\/p>\n<p>\u5149\u7ea4-\u5149\u732b Lan1-\u8def\u7531\u5668 Wan<\/p>\n<p>\u8def\u7531\u5668 Lan1-ServerLan \uff08 enp2s0)<\/p>\n<p>\u5149\u732b Lan4-ServerUsbLan(enx0000)<\/p>\n<p>\u89e3\u51b3\u7684\u7b2c\u4e00\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>linux \u7684 pppoe \u62e8\u53f7<\/p>\n<p>\u4e4b\u524d\u8fd9\u53f0\u670d\u52a1\u5668\u5c1d\u8bd5\u7528\u4e00\u4e2a nanopi \uff08 friendly arm \uff09\u66ff\u4ee3\uff0c \u540e\u6765\u53d1\u73b0\u90a3\u4e2a\u5185\u6838\u6ca1\u6709\u7f16\u8bd1 pppoe \u7528\u8d77\u6765\u5f88\u8d39\u52b2\uff0c\u4e8e\u662f\u6362\u4e86 ubuntu19.04 \u7684\u670d\u52a1\u5668\u3002<\/p>\n<p>\u65b9\u6848\uff1apppoeconf\/pon xxx\/poff<\/p>\n<p>\u89e3\u51b3\u7684\u7b2c\u4e8c\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>\u5904\u7406\u7f51\u5361\u4f18\u5148\u7ea7\uff1a\u7531\u4e8e\u670d\u52a1\u5668\u4e0a\u8dd1\u4e86\u4e00\u4e9b\u8f6f\u4ef6\u9700\u8981\u7ecf\u8fc7\u7f51\u7edc\u4f18\u5316\u7684\u51fa\u53e3\u8def\u7531\uff08\u8dd1\u5728\u8def\u7531\u5668\u4e0a\uff09\uff0c<\/p>\n<p>\u6240\u4ee5\u8def\u7531\u5668\u7684\u51fa\u53e3\u5fc5\u987b\u9ad8\u4e8e\u5149\u732b\u51fa\u53e3\u7684\u4f18\u5148\u7ea7\u3002<\/p>\n<p>\u67e5\u4e86\u4e00\u4e0b\u66f4\u6539\u8def\u7531\u8868\u7684\u65b9\u6cd5\uff08 route delete default gw xxxx&#8230;)\u672a\u679c\uff1b<\/p>\n<p>\u53e6\u8f9f\u8e4a\u5f84\uff0c\u770b\u4e86\u4e00\u4e0b ppp \u7684 log\uff0c\u53d1\u73b0\u914d\u7f6e\u91cc\u9762\u6709 replacedefaultgateway \u7684\u6307\u4ee4\uff0c \u6ce8\u91ca\u4e4b\uff0c\u518d\u62e8\u53f7\u5c31\u4e0d\u4f1a\u66ff\u4ee3\u8def\u7531\u8868\u4e86\u3002<\/p>\n<p>curl foo.bar\/ip [&#8211;interface enp2s0] \u663e\u793a\u7684\u662f\u8def\u7531\u5668\u7684 ip<\/p>\n<p>curl foo.bar\/ip &#8211;interface enx0000 \u663e\u793a\u7684\u662f ppp0 \u7684 ip\uff0c\u5b8c\u7f8e\u3002<\/p>\n<p>\u80cc\u666f\u9648\u8ff0\u5b8c\u6bd5\uff0c\u63cf\u8ff0\u6211\u8981\u89e3\u51b3\u7684\u7b2c\u4e09\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>\u9700\u8981\u4e00\u4e2a\u4ee3\u7406\u670d\u52a1\u5668\uff08 http \u4ee3\u7406\uff09\u53bb\u8f6c\u53d1\u8bf7\u6c42<\/p>\n<p>\u9700\u6c42\uff1a<\/p>\n<p>listen enp2s0 \u7684 192.168.0.111:3128 only( \u4e0d\u8981 listen 0.0.0.0\uff0c\u62c5\u5fc3\u4f1a\u6269\u6563\u5230\u516c\u7f51\uff09<\/p>\n<p>http \u4ee3\u7406\u5373\u53ef\uff08\u4e0d\u9700\u8981 ssl\uff0c\u4e0d\u9700\u8981 socks\uff0c\u4e0d\u9700\u8981 auth \uff09<\/p>\n<p>\u7f51\u7edc\u7684\u51fa\u53e3\u8d70 ppp0<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u89e3\u51b3\u5b8c\u4e4b\u540e\uff0c\u6211\u5c31\u6709_______\u4e86\u3002<\/p>\n<p>\u611f\u8c22\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>1<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"833627\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : flynaj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u88c5\u4e2a openwrt,\u7b80\u7b80\u5355\u5355\uff0c\u53e0\u52a0\uff0c\u5206\u6d41\uff0c\u8fd8\u6709\u4ee3\u7406\u81ea\u5df1\u7528\u7684\u8bdd\u8bd5\u8bd5 gost,\u6027\u80fd\u66f4\u5feb\uff0c\u8fd8\u652f\u6301 HTTP2 \u4ee3\u7406\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4f38\u624b\u515a\u6765\u4e86\uff1a\u6c42 Squid \u914d\u7f6e\u53cc&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/95831"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95831"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/95831\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95831"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}