{"id":193990,"date":"2020-10-30T13:11:46","date_gmt":"2020-10-30T05:11:46","guid":{"rendered":"http:\/\/4563.org\/?p=193990"},"modified":"2020-10-30T13:11:46","modified_gmt":"2020-10-30T05:11:46","slug":"%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e8%af%86%e5%88%ab-tcp-%e4%b8%ad%e7%9a%84%e5%8c%85%e5%90%ab-http-%e7%9a%84%e5%8c%85-%e6%9c%9f%e6%9c%9b%e4%bd%bf%e7%94%a8-iptables","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=193990","title":{"rendered":"\u5982\u4f55\u5b9e\u73b0\u8bc6\u522b tcp \u4e2d\u7684\u5305\u542b http \u7684\u5305 (\u671f\u671b\u4f7f\u7528 iptables)"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u5b9e\u73b0\u8bc6\u522b tcp \u4e2d\u7684\u5305\u542b http \u7684\u5305 (\u671f\u671b\u4f7f\u7528 iptables)               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u60f3\u8981\u5b9e\u73b0\u4e00\u4e2a tcp \u900f\u660e\u4ee3\u7406\uff0c\u5e76\u5c06\u5176\u4e2d\u6240\u6709\u7684 http \u8bf7\u6c42\u91cd\u5b9a\u5411\u5230\u53e6\u5916\u4e00\u4e2a\u7aef\u53e3<\/p>\n<p>\u4e3a\u4e86\u907f\u514d XYZ \u95ee\u9898\uff0c\u6211\u8bf4\u4e00\u4e0b\u672c\u6765\u7684\u9700\u6c42\uff1a\u4fee\u6539\u6240\u6709\u6d41\u7ecf\u7f51\u5173\u7684 HTTP \u6d41\u91cf\u4e2d\u7684 User-Agent<\/p>\n<p>\u5b8c\u6574\u7684\u8bf4\u660e\u5728: https:\/\/v2ex.com\/t\/724819#reply0      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4196718\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xchaoinfo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bd5\u8bd5 mitmproxy \u80fd\u5426\u89e3\u51b3\u4e3b\u7684\u9700\u6c42                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196719\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ahhui <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u662f\u4ee3\u7406\u7684\u8bdd\uff0c\u6539\u5934\u5c31\u884c\u4e86\uff0c\u4f46\u662f\u90a3\u4f60\u5f97\u7528\u6280\u672f\uff08\u8f6c\u53d1\uff1f dns \uff1f\uff09\uff0c\u8981\u628a\u8bbf\u95ee\u76ee\u7684\u5730\u8bbe\u5b9a\u5728\u4f60\u7684\u4ee3\u7406 ip \u4e0a\u3002\u4f46\u9047\u5230 https\uff0c\u4f60\u5c31\u6ca1\u6cd5\u770b\u5230 http \u5934\u4e86\u3002\u76f4\u63a5\u4fee\u6539 tcp \u5305\uff0c\u4e00\u6837\u6709 https \u7684\u95ee\u9898\uff0c\u800c\u4e14\u5373\u4f7f\u662f http\uff0c\u4f60\u6539\u4e86 header \u8fd8\u5f97\u91cd\u65b0\u8ba1\u7b97 tcp \u7684 checksum\uff1a http:\/\/www.tcpipguide.com\/free\/t_TCPChecksumCalculationandtheTCPPseudoHeader-2.htm                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196720\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ahhui https \u4e0d\u9700\u8981\u6539\uff0c\u8fd9\u91cc\u6307\u7684\u662f\u72ed\u4e49\u7684 http<br \/>\u68c0\u6d4b\u5230\u662f http \u6211\u5c31 redirect \u5230 nginx \u53bb\uff0c\u5e94\u8be5\u5c31\u4e0d\u7528\u624b\u52a8\u5904\u7406\u4e86\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196721\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Nginx \u5c31\u53ef\u4ee5\u5b9e\u73b0\u4e86\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196722\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             mitmproxy \u5df2\u7ecf\u652f\u6301\u900f\u660e\u6a21\u5f0f\uff0c\u76f4\u63a5\u7528\u5c31\u884c\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196723\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DoctorCat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f4d\u4e8e 7 \u5c42\u4ee3\u7406\u670d\u52a1\u7aef\u66f4\u6539 ua \u5c31\u884c\u4e86\u3002\u5370\u8c61\u4e2d iptalbes \u9ed8\u8ba4\u4e0d\u652f\u6301\u5bf9\u5e94\u7528\u5c42\u7684\u5305\u505a\u4efb\u4f55\u66f4\u6539                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196724\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : muzuiget <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u6837\u8fd8\u5f97\u5148\u5224\u65ad\u6bcf\u4e2a TCP \u94fe\u63a5\u662f\u5426 HTTP \u94fe\u63a5\uff0c\u8fd8\u8981\u62c6\u5305\uff0c\u91cd\u65b0\u6253\u5305\uff0c\u517c\u5bb9\u5404\u79cd\u60c5\u51b5\uff0c\u9ebb\u70e6\u5f97\u5f88\u3002<\/p>\n<p>\u65e0\u975e\u5c31\u662f\u60f3\u7ed5\u8fc7\u6821\u56ed\u7f51\u9650\u5236\uff0c\u4f55\u5fc5\u7ea0\u7ed3\u5728 UA \u4e0a\u9762\u5462\uff0c\u4e70\u4e2a\u5e26\u516c\u7f51\u7684 VPS\uff0c\u628a\u6240\u6709\u6d41\u91cf\u5305\u88c5\u6210 HTTP \u534f\u8bae\u5185\u5bb9\u7a7f\u51fa\u53bb\u5c31\u662f\uff0c\u8bf4\u4e0d\u5b9a\u7b80\u5355\u7684 CONNECT \u5f0f\u7684\u4ee3\u7406\u5c31\u80fd\u7ed5\u8fc7\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196725\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhangsanfeng2012 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8def\u7531\u5668\u8d77 http \u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4ee3\u7406\u670d\u52a1\u5668\u6539 ua \u4e0d\u5c31\u884c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196726\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xuanbg <br \/>@zhangsanfeng2012 \u5df2\u7ecf\u7528 nginx \u6539\u4e86\uff0c\u73b0\u5728\u7684\u95ee\u9898\u662f\u6709\u7684 http \u8bf7\u6c42\u4e0d\u4f7f\u7528 80 \u7aef\u53e3\uff0c\u6bd4\u5982\u8bf4 QQ \u5c31\u7528 8080 \u7aef\u53e3\uff0c\u4f46\u662f\u5982\u679c\u7528 iptables \u76f4\u63a5\u8f6c\u53d1 8080 \u7684\u8bdd\uff0c\u4f1a\u6709\u4e00\u4e9b\u975e http \u7684 tcp \u5305\u4e5f\u88ab\u8f6c\u53d1\u5230 nginx\uff0c\u8fd9\u4e2a nginx \u5904\u7406\u4e0d\u4e86<\/p>\n<p>@muzuiget \u56fd\u5185\u7684\u516c\u7f51\u5e26\u5bbd\u4ef7\u683c\u79bb\u8c31\uff0c\u56fd\u5916\u7684\u8fde\u63a5\u901f\u5ea6\u79bb\u8c31<\/p>\n<p>@Jirajine \u5b83\u80fd\u591f\u505a\u5230\u975e http \u7684 tcp \u76f4\u63a5\u653e\u884c\u5417\uff1f\u6211\u770b\u4ed6\u4e5f\u662f\u4e00\u4e2a http \u4ee3\u7406\u670d\u52a1\u5668                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196727\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman \u5b83\u53ea\u80fd\u5904\u7406 http\/https\uff0c\u5176\u4ed6\u7684\u6d41\u91cf\u5f53\u7136\u662f\u539f\u6837\u8f6c\u53d1\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4196728\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LGA1150 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman #9<br \/>nginx \u524d\u9762\u518d\u5957\u4e2a sslh                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5b9e\u73b0\u8bc6\u522b tcp \u4e2d\u7684\u5305\u542b h&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\/193990"}],"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=193990"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/193990\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193990"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}