{"id":47601,"date":"2020-03-07T03:12:12","date_gmt":"2020-03-06T19:12:12","guid":{"rendered":"http:\/\/4563.org\/?p=47601"},"modified":"2020-03-07T03:12:12","modified_gmt":"2020-03-06T19:12:12","slug":"%e9%9d%9enetflix-proxy%ef%bc%8c%e6%90%ad%e5%bb%ba%e5%a5%88%e9%a3%9e%e4%b8%ad%e8%bd%ac%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=47601","title":{"rendered":"\u975eNetflix-proxy\uff0c\u642d\u5efa\u5948\u98de\u4e2d\u8f6c\u4ee3\u7406"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Josk<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u975eNetflix-proxy\uff0c\u642d\u5efa\u5948\u98de\u4e2d\u8f6c\u4ee3\u7406<\/h3>\n<p>  \t\t\u6765\u6e90\uff1ahttps:\/\/github.com\/myxuchangbin\/dnsmasq_sniproxy_install<\/p>\n<p>  \u811a\u672c\u8bf4\u660e\uff1a<br \/>  \u539f\u7406\u7b80\u8ff0\uff1a\u4f7f\u7528Dnsmasq\u7684DNS\u5c06\u7f51\u7ad9\u89e3\u6790\u52ab\u6301\u5230SNI proxy\u53cd\u5411\u4ee3\u7406\u7684\u9875\u9762\u4e0a\u3002<\/p>\n<p>  \u7528\u9014\uff1a\u8ba9\u4e0d\u80fd\u770b\u6d41\u5a92\u4f53\u7684VPS\u770b\u4e0a\u6d41\u5a92\u4f53\uff08\u524d\u63d0\uff1aVPS\u4e2d\u8981\u6709\u4e00\u4e2a\u662f\u80fd\u770b\u6d41\u5a92\u4f53\u7684\uff09\u3002<\/p>\n<p>  \u7279\u6027\uff1a\u811a\u672c\u9ed8\u8ba4\u89e3\u9501Netflix Hulu HBO\u7b49\uff0c\u5982\u9700\u589e\u5220\u6d41\u5a92\u4f53\u57df\u540d\u8bf7\u7f16\u8f91\u6587\u4ef6\/etc\/dnsmasq.d\/custom_netflix.conf\u548c\/etc\/sniproxy.conf<\/p>\n<p>  \u811a\u672c\u652f\u6301\u7cfb\u7edf\uff1aCentOS6+, Debian8+, Ubuntu16+<\/p>\n<p>  CentOS6\/7\/8\uff0c Debian8\/9\/10, Ubuntu16\/18 \u5df2\u6d4b\u8bd5\u6210\u529f<br \/>  \u7406\u8bba\u4e0a\u4e0d\u9650\u865a\u62df\u5316\u7c7b\u578b\uff0c\u5982\u6709\u95ee\u9898\u8bf7\u53cd\u9988<br \/>  \u5982\u679c\u811a\u672c\u6700\u540e\u663e\u793a\u7684IP\u548c\u5b9e\u9645\u516c\u7f51IP\u4e0d\u76f8\u7b26\uff0c\u8bf7\u4fee\u6539\u4e00\u4e0b\u6587\u4ef6\/etc\/sniproxy.conf\u4e2d\u7684IP\u5730\u5740<br \/>  \u5b89\u88c5\u65b9\u6cd5\uff1a<br \/>  wget &#8211;no-check-certificate -O dnsmasq_sniproxy.sh https:\/\/raw.githubusercontent.com\/myxuchangbin\/dnsmasq_sniproxy_install\/master\/dnsmasq_sniproxy.sh &amp;&amp; bash dnsmasq_sniproxy.sh -i<br \/>  \u5378\u8f7d\u65b9\u6cd5\uff1a<br \/>  wget &#8211;no-check-certificate -O dnsmasq_sniproxy.sh https:\/\/raw.githubusercontent.com\/myxuchangbin\/dnsmasq_sniproxy_install\/master\/dnsmasq_sniproxy.sh &amp;&amp; bash dnsmasq_sniproxy.sh -u<br \/>  \u4f7f\u7528\u65b9\u6cd5\uff1a<br \/>  \u5c06\u4ee3\u7406VPS\u7684DNS\u5730\u5740\u4fee\u6539\u4e3a\u8fd9\u4e2a\u4e3b\u673a\u7684IP\u5c31\u53ef\u4ee5\u4e86\uff0c\u5982\u679c\u4e0d\u80fd\u7528\uff0c\u8bb0\u5f97\u53ea\u4fdd\u7559\u4e00\u4e2aDNS\u5730\u5740\u8bd5\u4e00\u4e0b\u3002<\/p>\n<p>  \u9632\u6b62\u6ee5\u7528\uff0c\u5efa\u8bae\u4e0d\u8981\u968f\u610f\u516c\u5e03IP\u5730\u5740\uff0c\u6216\u4f7f\u7528\u9632\u706b\u5899\u505a\u597d\u9650\u5236\u5de5\u4f5c\u3002<\/p>\n<p>  \u8c03\u8bd5\u6392\u9519\uff1a<br \/>  \u786e\u8ba4sniproxy\u6709\u6548\u8fd0\u884c<\/p>\n<p>  \u91cd\u542fsni\u547d\u4ee4\uff1asystemctl restart sniproxy<\/p>\n<p>  \u5982\u679csni\u4e0d\u5728\u8fd0\u884c\uff0c\u53ef\u68c0\u67e5\u914d\u7f6e\/etc\/sniproxy.conf\uff0c\u907f\u514dss\u3001nginx\u6216\u8005\u5176\u4ed6\u7a0b\u5e8f\u76d1\u542c80,443\uff0c\u53ef\u5c06\u5176\u914d\u7f6e\u6587\u4ef6\u768480\u66f4\u6539\u4e3a801\u7b49\u3002 443\u7aef\u53e3\u5fc5\u987b\u7ed9sniproxy\u76d1\u542c\u653e\u884c\uff0c\u67e5\u770b\uff1anetstat -tlunp|grep 443<\/p>\n<p>  \u786e\u8ba4\u9632\u706b\u5899\u653e\u884c443,53<\/p>\n<p>  \u8c03\u8bd5\u53ef\u76f4\u63a5\u5173\u95ed\u9632\u706b\u5899 systemctl stop firewalld.service<\/p>\n<p>  \u963f\u91cc\u4e91\/\u8c37\u6b4c\u4e91\/AWS\u7b49\u5916\u90e8\u9632\u706b\u5899\u653e\u884c \u53ef\u901a\u8fc7\u5176\u4ed6\u670d\u52a1\u5668 telnet vpsip 53 \u4ee5\u53ca telnet vpsip 443 \u8fdb\u884c\u6d4b\u8bd5<\/p>\n<p>  \u89e3\u6790\u57df\u540d<\/p>\n<p>  \u5c1d\u8bd5\u7528\u5176\u4ed6\u670d\u52a1\u5668\u914d\u7f6e\u5b8c\u6bd5dns\u540e\uff0c\u89e3\u6790\u57df\u540d\uff1anslookup netflix.com \u5224\u65adIP\u662f\u5426\u662fNETFLIX\u4ee3\u7406\u673a\u5668IP \u5982\u679c\u4e0d\u5b58\u5728nslookup\u547d\u4ee4\uff0cCENTOS\u5b89\u88c5\uff1ayum install -y bind-utils DEBIAN\u5b89\u88c5\uff1aapt-get -y install dnsutils\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Josk \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u975eNet&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\/47601"}],"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=47601"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/47601\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47601"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}