{"id":33163,"date":"2020-02-20T10:44:50","date_gmt":"2020-02-20T02:44:50","guid":{"rendered":"http:\/\/4563.org\/?p=33163"},"modified":"2020-02-20T10:44:50","modified_gmt":"2020-02-20T02:44:50","slug":"%e4%b8%80%e4%b8%aanat%e7%ab%af%e5%8f%a3%e5%88%a9%e7%94%a8haproxy%e4%b8%ad%e8%bd%ac%e5%a4%9a%e4%b8%aa%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=33163","title":{"rendered":"\u4e00\u4e2anat\u7aef\u53e3\u5229\u7528haproxy\u4e2d\u8f6c\u591a\u4e2a\u670d\u52a1."},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>wgetrc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u4e00\u4e2anat\u7aef\u53e3\u5229\u7528haproxy\u4e2d\u8f6c\u591a\u4e2a\u670d\u52a1.<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 wgetrc \u4e8e 2020-2-20 10:36 \u7f16\u8f91 <\/p>\n<p> haproxy \u6839\u636e\u57df\u540d\u5206\u6d41 \u914d\u7f6e\u5982\u4e0b:<br \/>  nat\u5c0f\u9e21 -&gt; haproxy Sever &#8211;&gt; 443 {v2*y s* tr*jan ssh}<\/p>\n<p>  global<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;log \/dev\/log local0<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;log \/dev\/log local1 notice<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;chroot \/var\/lib\/haproxy<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;user haproxy<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;group haproxy<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;daemon<\/p>\n<p>  defaults<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;log global<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;mode tcp<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;option tcplog<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;option dontlognull<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#maxconn 2000<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;timeout connect 24h<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;timeout client 24h<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;timeout server 24h<\/p>\n<p>  frontend ssl<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;mode tcp<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;bind *:443<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;tcp-request inspect-delay 5s<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;tcp-request content accept if { req.ssl_hello_type 1 }<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;#acl ssh_payload payload(0,7) -m bin 5353482d322e30<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;acl v2-pr req_ssl_sni -i pr.v2ray.best<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;acl v2-gcpreq_ssl_sni -i pr.v2ray.best<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;acl v2-trreq_ssl_sni -i pr.trojan.best<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;acl ss-gcpreq_ssl_sni -i gcp.ss.best<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;use_backend gcp if v2-gcp<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;use_backend pr if v2-pr<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;use_backend tr if v2-tr<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#use_backend shadowsocks if ss-gcp<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;use_backend defaultserv if { req.ssl_hello_type 1 } !v2-gcp !v2-tr !v2-pr !ss-gcp<\/p>\n<p>  backend gcp<br \/>  &nbsp; &nbsp; mode tcp<br \/>  &nbsp; &nbsp; option ssl-hello-chk<br \/>  &nbsp; &nbsp; server server1 xxx.xxx.xxx.xxx:443<\/p>\n<p>  backend tr<br \/>  &nbsp; &nbsp; mode tcp<br \/>  &nbsp; &nbsp; option ssl-hello-chk<br \/>  &nbsp; &nbsp; http-request set-header Host pr.trojan.best<br \/>  &nbsp; &nbsp; #option httpclose<br \/>  &nbsp; &nbsp; server server1 xxx.xxx.xxx.xxx:4431<\/p>\n<p>  backend pr<br \/>  &nbsp; &nbsp; mode tcp<br \/>  &nbsp; &nbsp; option ssl-hello-chk<br \/>  &nbsp; &nbsp; server server1 xxx.xxx.xxx.xxx:443<br \/>  backend defaultserv<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; mode tcp<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; server server1 www.baidu.com<\/p>\n<p>  \u91cd\u70b9\uff1atrojan \u57df\u540d \u9700\u8981\u624b\u52a8 \u6307hosts\uff0cv2ray\u5219\u76f4\u63a5http\u4f2a\u88c5\u586b\u5199\u57df\u540d.   \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u8bf7\u53eb\u6211\u6bdb\u7ebf<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u697c\u4e3b\u5206\u4eab\uff0c\u5982\u679c\u53ea\u662f\u4e2d\u8f6chttp\u548chttps\u7684\u8bdd\uff0c\u76f4\u63a5\u7528caddy\u6216\u8005nginx\u53cd\u4ee3\u4f1a\u7b80\u5355\u4e00\u70b9\uff0chaproxy\u7684\u8bdd\u529f\u80fd\u5f3a\u5927\u591a\uff0c\u4f46\u662f\u90a3\u914d\u7f6e\u5bf9\u4e8e\u5927\u90e8\u5206\u4eba\u6765\u8bf4\u4e5f\u662f\u771f\u7684\u9ebb\u70e6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Lebron<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e60\u60ef\u7528iptable\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>logo<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u50cf\u8fd9\u79cd\u6559\u7a0b\u8d34 \u90fd\u662f\u8981mark\u4e00\u4e0b\u7684\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>wgetrc \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u4e00\u4e2a&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\/33163"}],"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=33163"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/33163\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33163"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}