{"id":6441,"date":"2023-02-13T21:12:32","date_gmt":"2023-02-13T13:12:32","guid":{"rendered":"https:\/\/i007.vip:15443\/wordpress\/?p=6441"},"modified":"2023-02-13T21:12:32","modified_gmt":"2023-02-13T13:12:32","slug":"%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%b9%b6%e9%85%8d%e7%bd%ae-mtproto-proxy-%e4%bb%a3%e7%90%86-telegram","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/6441","title":{"rendered":"\u4e00\u952e\u5b89\u88c5\u5e76\u914d\u7f6e MTProto Proxy \u4ee3\u7406 Telegram"},"content":{"rendered":"<div class=\"site-intro\">\n<div class=\"site-intro-meta\">\n<div class=\"post-intros post-fade-in\">\n<div class=\"post-intro-meta\">\n<p><a href=\"https:\/\/lolipopj.github.io\/2021\/02\/20\/tg-mtproto-one-click\/#\/%E4%B8%80%E5%88%87%E6%90%9E%E5%AE%9A\">\u539f\u6587\u5730\u5740<\/a><\/p>\n<p>\u00a0<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"container\"><main class=\"main post-page\"><\/p>\n<article class=\"article-entry\">\n<div class=\"note note-warning\">\n<div class=\"title\">\u6587\u7ae0\u65f6\u6548\u6027\u63d0\u793a<\/div>\n<p>\u8fd9\u662f\u4e00\u7bc7\u53d1\u5e03\u4e8e 722 \u5929\u524d\u7684\u6587\u7ae0\uff0c\u90e8\u5206\u4fe1\u606f\u53ef\u80fd\u5df2\u53d1\u751f\u6539\u53d8\uff0c\u8bf7\u6ce8\u610f\u7504\u522b\u3002<\/p>\n<\/div>\n<h2 id=\"Telegram-\u548c-MTProto-\u662f\u4ec0\u4e48\">Telegram \u548c MTProto \u662f\u4ec0\u4e48<\/h2>\n<p>Telegram\uff0c\u4e2d\u6587\u540d\u79f0\u4e3a\u201c\u7535\u62a5\u201d\uff0c\u6216\u7b80\u79f0\u201ctg\u201d\uff0c\u662f\u4e00\u6b3e\u8de8\u5e73\u53f0\u5373\u65f6\u901a\u8baf\u8f6f\u4ef6\uff0c\u5ba2\u6237\u7aef\u5b8c\u5168\u5f00\u6e90\u3002\u6211\u89c9\u5f97\u91cd\u8981\u7684\u6709\u5982\u4e0b Features\uff1a<\/p>\n<ul>\n<li>\u79c1\u5bc6\u6027\u9ad8\u3002\u4e0d\u518d\u4f7f\u7528\u7684\u8d26\u53f7\u6700\u957f\u4fdd\u7559\u5e74\u9650\u4e3a 1 \u5e74\uff0c\u968f\u65f6\u9500\u6bc1\u804a\u5929\u8bb0\u5f55\u548c\u4e00\u5207\u8d26\u53f7\u8d44\u6599\u3002<\/li>\n<li>\u5b89\u5168\u6027\u3002\u7aef\u5bf9\u7aef\u52a0\u5bc6\uff0c\u4e0d\u53d7\u5ba1\u67e5\u3002<\/li>\n<li>\u5b8c\u5168\u514d\u8d39\u3002\u4e0d\u9650\u5236\u4e0a\u4f20\u6587\u4ef6\uff08\u89c6\u9891\u4f1a\u6709\u538b\u7f29\uff09\uff0c\u751a\u81f3\u53ef\u4ee5\u62ff\u6765\u5f53\u5907\u7528\u7f51\u76d8\u4f7f\u7528\u3002\u4e0d\u8fc7\u5df2\u7ecf\u786e\u8ba4\u4f1a\u5728\u5c06\u6765\u5e03\u5c40\u7fa4\u7ec4\u5e7f\u544a\uff0c\u201c\u949e\u80fd\u529b\u201d\u8fd8\u662f\u62b5\u4e0d\u8fc7\u8d8a\u6765\u8d8a\u591a\u6d8c\u5165\u7684\u5404\u56fd\u7528\u6237\u3002<\/li>\n<\/ul>\n<p>\u5f53\u7136\uff0c\u5728\u88ab\u5c4f\u853d\u7684\u5730\u57df\u9700\u8981\u7ffb\u5899\u4f7f\u7528\u3002<\/p>\n<p>MTProto \u662f\u4e00\u79cd\u534f\u8bae\uff0c\u65e8\u5728\u5e2e\u52a9\u79fb\u52a8\u8bbe\u5907\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u8bbf\u95ee\u670d\u52a1\u5668\u7684 Api \u63a5\u53e3\u3002<\/p>\n<h2 id=\"\u6211\u4eec\u8981\u505a\u4ec0\u4e48\">\u6211\u4eec\u8981\u505a\u4ec0\u4e48<\/h2>\n<p>\u6211\u4eec\u60f3\u8981\u642d\u5efa\u4e00\u4e2a Proxy\uff0c\u63d0\u4f9b\u7ed9\u79fb\u52a8\u7aef\u4f7f\u7528\uff0c\u53ef\u4ee5\u5feb\u6377\u5730\u8bbf\u95ee\u5230 tg \u670d\u52a1\u5668\u3002<\/p>\n<p>\u79fb\u52a8\u7aef\u4e0e\u7535\u8111\u7aef\u4e0d\u540c\u7684\u662f\uff0c\u7535\u8111\u7aef\u901a\u5e38\u4ee3\u7406\u8f6f\u4ef6\u5e38\u5f00\uff0c\u968f\u65f6\u53ef\u4ee5\u901a\u8fc7 web \u8bbf\u95ee\u5230 tg \u670d\u52a1\u5668\uff0c\u800c\u79fb\u52a8\u7aef\u5219\u4e3a\u4e86\u7701\u7535\u9700\u8981\uff0c\u4ec5\u5728\u4f7f\u7528\u65f6\u624d\u624b\u52a8\u542f\u7528\u4ee3\u7406\uff0c\u7a0d\u663e\u9ebb\u70e6\u3002<\/p>\n<p>\u5b9e\u9645\u4e0a\u7535\u8111\u7aef\u7684 tg \u5ba2\u6237\u7aef\u4e5f\u9700\u8981\u624b\u52a8\u8bbe\u7f6e\u4ee3\u7406\u5168\u5c40\u624d\u80fd\u8bbf\u95ee\uff0c\u90a3\u4e48\u6709\u4e00\u4e2a Proxy \u53ef\u4ee5\u7701\u5f88\u591a\u4e8b\u513f\u3002<\/p>\n<h2 id=\"\u55e8\uff0c\u8fd9\u91cc\u662f\u4e00\u952e\u811a\u672c\">\u55e8\uff0c\u8fd9\u91cc\u662f\u4e00\u952e\u811a\u672c<\/h2>\n<p>\u5728 Github \u4e0a\u6709\u4e3a\u5b9e\u73b0\u4ee5\u4e0a\u529f\u80fd\u7f16\u5199\u7684\u57fa\u4e8e Python \u7684 Proxy:\u00a0<a href=\"https:\/\/github.com\/alexbers\/mtprotoproxy\" target=\"_blank\" rel=\"noopener\">mtprotoproxy<\/a>\u3002\u53f7\u79f0\uff1a<\/p>\n<blockquote><p>The proxy performance should be enough to comfortably serve about 4000 simultaneous users on the VDS instance with 1 CPU core and 1024MB RAM.<br \/>\n\u4ee3\u7406\u670d\u52a1\u5668\u7684\u6027\u80fd\u5e94\u8be5\u8db3\u4ee5\u5728\u4f7f\u7528 1 \u4e2a CPU \u6838\u5fc3\u548c 1024 MB \u5185\u5b58\u7684 VDS \u5b9e\u4f8b\u4e0a\u540c\u65f6\u4e3a\u5927\u7ea6 4000 \u4e2a\u7528\u6237\u63d0\u4f9b\u8212\u9002\u7684\u670d\u52a1\u3002<\/p><\/blockquote>\n<p>\u5f53\u7136\u4e5f\u6709\u7528\u5176\u5b83\u8bed\u8a00\u5199\u7684 Proxy\uff0c\u4e0d\u8fc7\u6700\u5999\u7684\u8fd8\u5c5e\u4e00\u952e\u5b89\u88c5\u914d\u7f6e\u811a\u672c\uff1a<a href=\"https:\/\/github.com\/HirbodBehnam\/MTProtoProxyInstaller\" target=\"_blank\" rel=\"noopener\">MTProtoProxyInstaller<\/a>\u3002\u4e0d\u7528\u8111\u5b50\uff01<\/p>\n<p>\u90a3\u4e48\uff0c\u6309\u7167\u4f5c\u8005\u7ed9\u51fa\u7684\u6307\u5f15\u8d70\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h3 id=\"\u8d2d\u4e70\u4e00\u53f0\u81ea\u7531\u8bbf\u95ee-tg-\u7684\u670d\u52a1\u5668\">\u8d2d\u4e70\u4e00\u53f0\u81ea\u7531\u8bbf\u95ee tg \u7684\u670d\u52a1\u5668<\/h3>\n<p>\u963f\u91cc\u4e91\u548c\u817e\u8baf\u4e91\u63d0\u4f9b\u7684\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\u5c31\u5f88\u4e0d\u9519\uff01\u9009\u62e9\u9999\u6e2f\u5730\u533a\u5373\u53ef\uff0c\u6bcf\u6708\u6709 1 TB \u7684\u6d41\u91cf\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6b64\u4e00\u952e\u811a\u672c\u4ec5\u652f\u6301\u5982\u4e0b Linux \u7cfb\u7edf\uff1a<\/p>\n<ul>\n<li>Centos 7\/8<\/li>\n<li>Ubuntu 16 \u6216\u66f4\u65b0\u7248\u672c<\/li>\n<li>Debian 8\/9<\/li>\n<\/ul>\n<h3 id=\"\u9009\u62e9\u4ee3\u7406\u7248\u672c\">\u9009\u62e9\u4ee3\u7406\u7248\u672c<\/h3>\n<p>\u9996\u5148\u660e\u786e\u81ea\u5df1\u8981\u4f7f\u7528\u54ea\u4e2a\u7248\u672c\u7684\u4ee3\u7406\uff0c\u5b98\u65b9\u7684\uff0c\u57fa\u4e8e Python \u8bed\u8a00\u7684\uff0c\u4ea6\u6216\u662f\u57fa\u4e8e Go \u8bed\u8a00\u7684\u3002<\/p>\n<p>\u4f5c\u8005\u5efa\u8bae\u5728\u5982\u4e0b\u60c5\u51b5\u4f7f\u7528\u57fa\u4e8e Python \u8bed\u8a00\u7684\u4ee3\u7406\uff1a<\/p>\n<ul>\n<li>\u670d\u52a1\u5668 CPU \u53ea\u6709\u4e00\u4e2a\u5185\u6838\uff0c\u6216\u8005\u53ea\u60f3\u5728\u4e00\u4e2a\u5185\u6838\u4e0a\u8fd0\u884c\u4ee3\u7406\u3002<\/li>\n<li>\u670d\u52a1\u5668\u6bd4\u8f83\u4f4e\u7aef\u3002<\/li>\n<li>\u4e3a\u4e00\u5c0f\u7fa4\u4eba\u63d0\u4f9b\u670d\u52a1\uff0c\u6bd4\u5982\u5bb6\u5ead\u6216\u5c0f\u516c\u53f8\u3002<\/li>\n<li>\u60f3\u8981\u9650\u5236\u7528\u6237\u7684\u8fde\u63a5\u3002<\/li>\n<li>\u8fd8\u5c06\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5176\u5b83\u5e94\u7528\u7a0b\u5e8f\u6216\u670d\u52a1\uff0c\u4f8b\u5982 OpenVPN\uff0cShadowsocks\uff0cNginx \u7b49\u3002<\/li>\n<\/ul>\n<p>\u5426\u5219\u4f7f\u7528\u5b98\u65b9\u4ee3\u7406\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u9009\u62e9\u4f7f\u7528<strong>\u57fa\u4e8e Python \u8bed\u8a00<\/strong>\u7684\u4ee3\u7406\uff0c\u6545\u4e0b\u6587\u5c06\u57fa\u4e8e\u6b64\u7248\u672c\u9610\u8ff0\uff0c\u82e5\u60f3\u4f7f\u7528\u5176\u5b83\u7248\u672c\u53ef\u4ee5\u81ea\u884c\u67e5\u9605\u4f5c\u8005\u7684<a href=\"https:\/\/github.com\/HirbodBehnam\/MTProtoProxyInstaller#official-script\" target=\"_blank\" rel=\"noopener\">\u6559\u7a0b\u6587\u6863<\/a>\u3002<\/p>\n<h3 id=\"\u90e8\u7f72\u4e00\u952e\u811a\u672c\">\u90e8\u7f72\u4e00\u952e\u811a\u672c<\/h3>\n<p>\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<figure class=\"highlight bash\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">curl -o MTProtoProxyInstall.sh -L https:\/\/git.io\/fjo34 && bash MTProtoProxyInstall.sh<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u6839\u636e\u63d0\u793a\u8fdb\u884c\u914d\u7f6e\uff0c\u89c9\u5f97\u4e0d\u59a5\u8fd8\u53ef\u4ee5\u91cd\u65b0\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4\u91cd\u88c5\u4ee3\u7406\u670d\u52a1\u3002<\/p>\n<p>\u5047\u5982\u53ea\u6dfb\u52a0\u4e86\u4e00\u4e2a\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u5728\u5b89\u88c5\u5b8c\u6210\u540e\u4f1a\u51fa\u73b0\u5982\u4e0b\u6587\u672c\uff1a<\/p>\n<figure class=\"highlight text\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span>\r\n<span class=\"line\">2<\/span>\r\n<span class=\"line\">3<\/span>\r\n<span class=\"line\">4<\/span>\r\n<span class=\"line\">5<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">Ok it must be done. I created a service to run or stop the proxy.<\/span>\r\n<span class=\"line\">Use \"systemctl start mtprotoproxy\" or \"systemctl stop mtprotoproxy\" to start or stop it<\/span>\r\n\r\n<span class=\"line\">Use these links to connect to your proxy:<\/span>\r\n<span class=\"line\">${username}: tg:\/\/proxy?server=${ip}&port=${port}&secret=${secret}<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u5176\u4e2d ${username} \u4e3a\u4e4b\u524d\u8f93\u5165\u7684\u7528\u6237\u540d\uff08\u5e76\u4e0d\u91cd\u8981\uff0c\u53ea\u662f\u6807\u8bc6\uff09\uff0c${ip} \u662f\u670d\u52a1\u5668\u7684\u516c\u7f51 IP \u6216\u57df\u540d\uff0c${port} \u662f\u8bbe\u7f6e\u7684\u8bbf\u95ee\u4ee3\u7406\u7684\u7aef\u53e3\uff0c${secret} \u662f\u8bbe\u7f6e\u6216\u81ea\u52a8\u751f\u6210\u7684\u5bc6\u94a5\u3002<\/p>\n<p>\u8fd9\u91cc\u4f5c\u8005\u63d0\u793a\u53ef\u4ee5\u7528\u00a0<code>systemctl start mtprotoproxy<\/code>\u00a0\u6765\u542f\u52a8\u4ee3\u7406\u670d\u52a1\u4e86\uff0c\u4f5c\u4e3a\u8865\u5145\uff0c<code>systemctl<\/code>\u00a0\u662f\u00a0<code>Systemd<\/code>\u00a0\u8fdb\u7a0b\u7ba1\u7406\u547d\u4ee4\uff0c\u800c\u00a0<code>Systemd<\/code>\u00a0\u662f\u4e00\u79cd Linux \u7684\u7cfb\u7edf\u5de5\u5177\uff0c\u7528\u6765\u542f\u52a8\u5b88\u62a4\u8fdb\u7a0b\uff08\u5373\u4e00\u76f4\u5728\u540e\u53f0\u8fd0\u884c\u7684\u8fdb\u7a0b\uff0cdaemon\uff09\u3002\u8fd9\u8bf4\u660e\u5f53\u524d\u00a0<code>mtprotoproxy<\/code>\u00a0\u5df2\u7ecf\u662f\u53ef\u4ee5\u542f\u52a8\u7684\u670d\u52a1\u4e86\uff0c\u5728\u540e\u7eed\u7684\u8fc7\u7a0b\u4e2d\u53ea\u9700\u8981\u5bf9\u6b64\u670d\u52a1\u8fdb\u884c\u7ba1\u7406\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u90a3\u4e48\u63a5\u4e0b\u6765\u5c31\u6267\u884c\u8be5\u547d\u4ee4\u6765\u542f\u52a8\u670d\u52a1\uff1a<\/p>\n<figure class=\"highlight bash\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">systemctl start mtprotoproxy <span class=\"comment\"># \u542f\u52a8\u4ee3\u7406\u670d\u52a1<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u590d\u5236\u4e4b\u524d\u7684\u94fe\u63a5\u00a0<code>tg:\/\/proxy?server=${ip}&port=${port}&secret=${secret}<\/code>\u00a0\u5230\u526a\u5207\u677f\uff0c\u5728\u624b\u673a\u7aef\u7684 Telegram \u4e0a\u901a\u8fc7\u00a0<code>\u8bbe\u7f6e - \u6570\u636e\u548c\u5b58\u50a8 - \u4ee3\u7406\u8bbe\u7f6e - \u6dfb\u52a0\u4ee3\u7406 - \u4ece\u526a\u8d34\u677f\u5bfc\u5165<\/code>\u00a0\u5373\u53ef\u5b8c\u6210\u8bbe\u7f6e\u3002\u5efa\u8bae\u628a\u8fd9\u4e2a\u94fe\u63a5\u8bb0\u4e0b\u6765\u5e76\u4fdd\u5b58\u3002<\/p>\n<h3 id=\"Ops\uff0c\u4e00\u70b9\u5c0f\u9ebb\u70e6\">Ops\uff0c\u4e00\u70b9\u5c0f\u9ebb\u70e6<\/h3>\n<p>\u5443\uff0c\u4f3c\u4e4e\u8fde\u63a5\u4e86\u534a\u5929\u4e5f ping \u4e0d\u901a\uff0c\u8fd9\u53ef\u5982\u4f55\u662f\u597d\uff0c\u54ea\u4e00\u6b65\u505a\u9519\u4e86\u5417\uff1f<\/p>\n<p>\u53ef\u4ee5\u5148\u67e5\u9605\u4e00\u4e0b\u65e5\u5fd7\u4fe1\u606f\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<figure class=\"highlight bash\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">systemctl status mtprotoproxy -l <span class=\"comment\"># \u67e5\u770b\u4ee3\u7406\u670d\u52a1\u65e5\u5fd7\u4fe1\u606f<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u67e5\u8be2\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<\/p>\n<figure class=\"highlight text\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span>\r\n<span class=\"line\">2<\/span>\r\n<span class=\"line\">3<\/span>\r\n<span class=\"line\">4<\/span>\r\n<span class=\"line\">5<\/span>\r\n<span class=\"line\">6<\/span>\r\n<span class=\"line\">7<\/span>\r\n<span class=\"line\">8<\/span>\r\n<span class=\"line\">9<\/span>\r\n<span class=\"line\">10<\/span>\r\n<span class=\"line\">11<\/span>\r\n<span class=\"line\">12<\/span>\r\n<span class=\"line\">13<\/span>\r\n<span class=\"line\">14<\/span>\r\n<span class=\"line\">15<\/span>\r\n<span class=\"line\">16<\/span>\r\n<span class=\"line\">17<\/span>\r\n<span class=\"line\">18<\/span>\r\n<span class=\"line\">19<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">\u25cf mtprotoproxy.service - MTProto Proxy Service<\/span>\r\n<span class=\"line\">     Loaded: loaded (\/etc\/systemd\/system\/mtprotoproxy.service; enabled; vendor preset: enabled)<\/span>\r\n<span class=\"line\">     Active: active (running) since Sun 2021-02-21 15:12:39 CST; 43s ago<\/span>\r\n<span class=\"line\">   Main PID: 39895 (python3.8)<\/span>\r\n<span class=\"line\">      Tasks: 5 (limit: 1111)<\/span>\r\n<span class=\"line\">     Memory: 23.7M<\/span>\r\n<span class=\"line\">     CGroup: \/system.slice\/mtprotoproxy.service<\/span>\r\n<span class=\"line\">             \u2514\u250039895 \/usr\/bin\/python3.8 \/opt\/mtprotoproxy\/mtprotoproxy.py<\/span>\r\n\r\n<span class=\"line\">Feb 21 15:13:18 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:18 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:19 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:19 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:19 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:19 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:20 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:20 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:23 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span>\r\n<span class=\"line\">Feb 21 15:13:23 ******** python3.8[39895]: Unable to connect to ****:***:****:****::a *<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u5e78\u8fd0\u7684\u662f\uff0c\u5728\u8be5\u4ed3\u5e93\u4e0b\u7684 Issues \u91cc\u6211\u627e\u5230\u4e86\u9047\u89c1\u76f8\u540c\u95ee\u9898\u7684\u4eba\uff08<a href=\"https:\/\/github.com\/HirbodBehnam\/MTProtoProxyInstaller\/issues\/34\" target=\"_blank\" rel=\"noopener\">#34<\/a>\uff09\u3002<\/p>\n<p>\u539f\u6765\u5728\u6700\u65b0\u7248\u672c\u7684 Python \u4ee3\u7406\u8f6f\u4ef6\u4e2d\uff0c\u9ed8\u8ba4\u4f7f\u7528 IPv6\uff0c\u8fdb\u800c\u5bfc\u81f4 MTProto \u65e0\u6cd5\u6b63\u5e38\u8fde\u63a5\u3002\u4f5c\u8005\u63d0\u51fa\u53ef\u4ee5\u5728\u8bbe\u7f6e\u6587\u4ef6\u4e2d\u624b\u52a8\u8bbe\u7f6e\u7981\u7528\u4f18\u5148 IPv6 \u8fde\u63a5\u3002\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n<figure class=\"highlight bash\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span>\r\n<span class=\"line\">2<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\"><span class=\"built_in\">cd<\/span> \/opt\/mtprotoproxy <span class=\"comment\"># \u9ed8\u8ba4\u5b89\u88c5\u76ee\u5f55<\/span><\/span>\r\n<span class=\"line\">vi config.py <span class=\"comment\"># \u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e00\u884c\u914d\u7f6e\u4fe1\u606f\u00a0<code>PREFER_IPV6 = False<\/code>\u00a0\u5373\u53ef\u3002<\/p>\n<p>\u7531\u4e8e\u670d\u52a1\u6ca1\u6709\u70ed\u91cd\u8f7d\u673a\u5236\uff0c\u56e0\u6b64\u5728\u6700\u540e\u9700\u8981\u91cd\u542f\u670d\u52a1\uff1a<\/p>\n<figure class=\"highlight bash\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">systemctl restart mtprotoproxy <span class=\"comment\"># \u91cd\u542f\u4ee3\u7406\u670d\u52a1<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3 id=\"\u4e00\u5207\u641e\u5b9a\">\u4e00\u5207\u641e\u5b9a<\/h3>\n<p>\u73b0\u5728\u5df2\u7ecf\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee tg \u5ba2\u6237\u7aef\u5566\uff01\u5047\u5982\u613f\u610f\uff0c\u53ef\u4ee5\u5c06\u521a\u521a\u5f97\u5230\u7684\u94fe\u63a5\u5206\u4eab\u7ed9\u597d\u53cb\uff0cenjoy tg world!<\/p>\n<p>\u6216\u8bb8\u4f60\u4f1a\u613f\u610f\u518d\u6b21\u6253\u5370\u4e00\u4e0b\u65e5\u5fd7\u4fe1\u606f\uff0c\u7ed3\u679c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<figure class=\"highlight text\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span>\r\n<span class=\"line\">2<\/span>\r\n<span class=\"line\">3<\/span>\r\n<span class=\"line\">4<\/span>\r\n<span class=\"line\">5<\/span>\r\n<span class=\"line\">6<\/span>\r\n<span class=\"line\">7<\/span>\r\n<span class=\"line\">8<\/span>\r\n<span class=\"line\">9<\/span>\r\n<span class=\"line\">10<\/span>\r\n<span class=\"line\">11<\/span>\r\n<span class=\"line\">12<\/span>\r\n<span class=\"line\">13<\/span>\r\n<span class=\"line\">14<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">\u25cf mtprotoproxy.service - MTProto Proxy Service<\/span>\r\n<span class=\"line\">     Loaded: loaded (\/etc\/systemd\/system\/mtprotoproxy.service; enabled; vendor preset: enabled)<\/span>\r\n<span class=\"line\">     Active: active (running) since Sun 2021-02-21 15:17:25 CST; 4s ago<\/span>\r\n<span class=\"line\">   Main PID: 39940 (python3.8)<\/span>\r\n<span class=\"line\">      Tasks: 5 (limit: 1111)<\/span>\r\n<span class=\"line\">     Memory: 17.8M<\/span>\r\n<span class=\"line\">     CGroup: \/system.slice\/mtprotoproxy.service<\/span>\r\n<span class=\"line\">             \u2514\u250039940 \/usr\/bin\/python3.8 \/opt\/mtprotoproxy\/mtprotoproxy.py<\/span>\r\n\r\n<span class=\"line\">Feb 21 15:17:25 ******** systemd[1]: Started MTProto Proxy Service.<\/span>\r\n<span class=\"line\">Feb 21 15:17:25 ******** python3.8[39940]: *: tg:\/\/proxy?server=*&port=*&secret=*><\/span>\r\n<span class=\"line\">Feb 21 15:17:25 ******** python3.8[39940]: *: tg:\/\/proxy?server=*&port=*&secret=*><\/span>\r\n<span class=\"line\">Feb 21 15:17:25 ******** python3.8[39940]: Found uvloop, using it for optimal performance<\/span>\r\n<span class=\"line\">Feb 21 15:17:25 ******** python3.8[39940]: Got cert from the MASK_HOST www.cloudflare.com, its length is 1828<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u9664\u4e86\u524d\u6587\u5df2\u51fa\u73b0\u8fc7\u7684\u547d\u4ee4\uff0c\u522b\u5fd8\u4e86\u6b64\u4ee3\u7406\u670d\u52a1\u8fd8\u53ef\u4ee5\u6682\u505c\uff0c\u4f9d\u65e7\u662f\u4f5c\u4e3a\u670d\u52a1\u8fdb\u884c\u7ba1\u7406\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n<figure class=\"highlight bash\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">systemctl stop mtprotoproxy <span class=\"comment\"># \u6682\u505c\u4ee3\u7406\u670d\u52a1<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<\/article>\n<div class=\"license-wrapper\">\n<p>\u539f\u6587\u4f5c\u8005\uff1a<a href=\"https:\/\/lolipopj.github.io\/\">Lolipop<\/a><\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/lolipopj.github.io\/2021\/02\/20\/tg-mtproto-one-click\/\">https:\/\/lolipopj.github.io\/2021\/02\/20\/tg-mtproto-one-click\/<\/a><\/p>\n<p>\u53d1\u8868\u65e5\u671f\uff1a<a href=\"https:\/\/lolipopj.github.io\/2021\/02\/20\/tg-mtproto-one-click\/\">February 20th 2021, 4:00:00 pm<\/a><\/p>\n<p>\u66f4\u65b0\u65e5\u671f\uff1a<a href=\"https:\/\/lolipopj.github.io\/2021\/02\/20\/tg-mtproto-one-click\/\">February 22nd 2021, 4:00:00 pm<\/a><\/p>\n<p>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u91c7\u7528<a href=\"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/\" target=\"_blank\" rel=\"license noopener\">\u77e5\u8bc6\u5171\u4eab\u7f72\u540d-\u975e\u5546\u4e1a\u6027\u4f7f\u7528 4.0 \u56fd\u9645\u8bb8\u53ef\u534f\u8bae<\/a>\u8fdb\u884c\u8bb8\u53ef<\/p>\n<\/div>\n<p><\/main><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740 \u00a0 \u6587\u7ae0\u65f6\u6548\u6027\u63d0\u793a \u8fd9\u662f\u4e00\u7bc7\u53d1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[24],"tags":[121],"class_list":["post-6441","post","type-post","status-publish","format-standard","hentry","category-value_docs","tag-05-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/6441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=6441"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/6441\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=6441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=6441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=6441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}