{"id":1601,"date":"2020-01-13T19:31:36","date_gmt":"2020-01-13T16:31:36","guid":{"rendered":"http:\/\/hxml.me\/blog\/?p=1601"},"modified":"2020-01-13T20:04:58","modified_gmt":"2020-01-13T17:04:58","slug":"obxod-ogranichenie-na-razdachu-mobilnogo-interneta","status":"publish","type":"post","link":"https:\/\/hxml.me\/blog\/vsyachina\/obxod-ogranichenie-na-razdachu-mobilnogo-interneta\/","title":{"rendered":"<!--:en-->How to disable a restriction for mobile internet sharing<!--:--><!--:ru-->\u041e\u0431\u0445\u043e\u0434 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u0440\u0430\u0437\u0434\u0430\u0447\u0443 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430<!--:-->"},"content":{"rendered":"<p><!--:en--><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"http:\/\/hxml.me\/img\/post\/nb.png\" alt=\"title='Notabene: disable a restriction for mobile internet sharing\" width=\"114\" height=\"114\">Nowadays some of cell operators have a practice of <strong>restricting internet sharing function for smartphones<\/strong>. Usually it&#8217;s an attribute of family tariffs which also propose home internet and digital TV. This article will describe how to <strong>disable this restriction<\/strong>. The article is only for educational purpose of course, the author takes no responsibility for what you&#8217;re going to do with this information.<!--:--><br \/>\n<!--:ru--><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"http:\/\/hxml.me\/img\/post\/nb.png\" alt=\"\" width=\"114\" height=\"114\">\u0421\u0435\u0439\u0447\u0430\u0441 \u0441\u043b\u043e\u0436\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 <strong>\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b<\/strong> \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 <strong>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0430\u0447\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430<\/strong> \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0435\u043c\u0435\u0439\u043d\u044b\u043c \u0442\u0430\u0440\u0438\u0444\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0432 \u0441\u0435\u0431\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u0442\u0435\u043b\u0435\u0432\u0438\u0434\u0435\u043d\u0438\u0435.\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u044d\u0442\u043e \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c. \u0421\u0442\u0430\u0442\u044c\u044f \u043d\u043e\u0441\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440.<br \/>\n<!--:--><br \/>\n<!--more--><br \/>\n<!--:en--><br \/>\nSo, what will we need? First of all is smartphone with internet sharing function and second is macOS based laptop. We will not need to get root access to our smartphone. It&#8217;s all can be done with single terminal command.<br \/>\nA little bit of theory for the beginning. How do cell providers detect we&#8217;re sharing the internet? The packet structure of IP (Internet Protocol) contains a TTL attribute (Time To Live) which is integer. When the packet leaves its device, TTL value is set to some particular value, e.g. 128. When the packet goes through another router TTL value decreases by 1. This is how cell operator detects we&#8217;re using internet sharing. So all we need to do is to make initial TTL value bigger for 1 from its normal value.<br \/>\nFortunately we can make it with single command in macOS.<br \/>\nBut first we need to determine initial TTL value.<\/p>\n<p><strong>The recipe<\/strong><br \/>\n1. Connect your laptop to smartphone hotspot.<br \/>\n2. Go to System preferences -&gt; Network<br \/>\n<img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/hxml.me\/img\/post\/cell\/system_preferences.png\" alt=\"\" width=\"540\"><\/p>\n<p>Find your current IP address. Let it be 172.20.10.7.<br \/>\nThen the gate IP address in most cases will be 172.20.10.1 (change last number to 1).<br \/>\n3. Next we do ping of this gate<\/p>\n<pre lang=\"bash\">$ ping 172.20.10.1\nPING 172.20.10.1 (172.20.10.1): 56 data bytes\n64 bytes from 172.20.10.1: icmp_seq=0 ttl=64 time=2.165 ms\n64 bytes from 172.20.10.1: icmp_seq=1 ttl=64 time=10.146 ms\n64 bytes from 172.20.10.1: icmp_seq=2 ttl=64 time=3.050 ms\n64 bytes from 172.20.10.1: icmp_seq=3 ttl=64 time=1.994 ms\n<\/pre>\n<p>and get TTL value.<\/p>\n<p>4. Increase it by 1 and run the following command:<\/p>\n<pre lang=\"bash\">sudo sysctl net.inet.ip.ttl=65 net.inet.ip.ttl: 65 -&gt; 65\n<\/pre>\n<p>The command requires admin password.<br \/>\n<!--:--><!--:ru--><\/p>\n<p>\u0418 \u0442\u0430\u043a, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f. \u0421\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0440\u0430\u0437\u0434\u0430\u0447\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 (internet sharing), \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0441 macOS, \u0438 \u0432\u0441\u0435. \u041f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0440\u0443\u0442-\u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0443 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f. \u0412\u0441\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435.<br \/>\n\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438. \u041a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442, \u0447\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0448\u043b\u044e\u0437 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430? \u0412 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 IP (Internet Protocol) \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u0435 TTL (Time To Live) \u0441 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c. \u041a\u043e\u0433\u0434\u0430 \u043f\u0430\u043a\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043a\u0438\u0434\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u043f\u043e\u043b\u0435 TTL \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 128. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 (\u043a\u043e\u0438\u043c \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043d\u0430\u0448 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430), \u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043d\u0430 1. \u0422\u043e \u0435\u0441\u0442\u044c, \u043d\u0430\u0448 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u043f\u0430\u043a\u0435\u0442, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441 \u043c\u0430\u043a\u0431\u0443\u043a\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0441\u0442 \u044d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0441 TTL=127. \u0418 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0430\u043a\u0435\u0442 \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0436\u0435 \u043e\u0434\u0438\u043d \u0440\u043e\u0443\u0442\u0435\u0440, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u0444\u0430\u043a\u0442 \u0440\u0430\u0437\u0434\u0430\u0447\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430.<br \/>\n<strong>\u041a\u0430\u043a \u0441 \u044d\u0442\u0438\u043c \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f?<\/strong><br \/>\n\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0432 macOS \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430.<br \/>\n\u041d\u043e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 TTL \u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430.<\/p>\n<p>1. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u043a \u0445\u043e\u0442\u0441\u043f\u043e\u0442\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430, \u0438 \u0438\u0434\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0442\u0438, \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u0448\u043b\u044e\u0437\u0430 (\u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430).<br \/>\n2. \u0418\u0449\u0435\u043c \u043d\u0430\u0448 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 IP \u0430\u0434\u0440\u0435c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u043d\u0430\u0448\u0435\u043c\u0443 \u043c\u0430\u043a\u0431\u0443\u043a\u0443.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/hxml.me\/img\/post\/cell\/system_preferences.png\" alt=\"\" width=\"540\"><\/p>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u044d\u0442\u043e 172.20.10.7<br \/>\n\u0422\u043e\u0433\u0434\u0430 \u0430\u0434\u0440\u0435\u0441 \u0448\u043b\u044e\u0437\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0431\u0443\u0434\u0435\u0442 172.20.10.1 (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 1)<br \/>\n3. \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0438\u043d\u0433 \u0448\u043b\u044e\u0437\u0430.<\/p>\n<pre lang=\"bash\">$ ping 172.20.10.1\nPING 172.20.10.1 (172.20.10.1): 56 data bytes\n64 bytes from 172.20.10.1: icmp_seq=0 ttl=64 time=2.165 ms\n64 bytes from 172.20.10.1: icmp_seq=1 ttl=64 time=10.146 ms\n64 bytes from 172.20.10.1: icmp_seq=2 ttl=64 time=3.050 ms\n64 bytes from 172.20.10.1: icmp_seq=3 ttl=64 time=1.994 ms\n<\/pre>\n<p>\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 TTL=64.<\/p>\n<p>4. \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u043a \u044d\u0442\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre lang=\"bash\">sudo sysctl net.inet.ip.ttl=65 net.inet.ip.ttl: 65 -&gt; 65\n<\/pre>\n<p>\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0432\u043e\u0434\u0430 \u0430\u0434\u043c\u0438\u043d \u043f\u0430\u0440\u043e\u043b\u044f.<br \/>\n\u0418 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430 \u043c\u0430\u043a\u0431\u0443\u043a\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f.<br \/>\n<!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nowadays some of cell operators have a practice of restricting internet sharing function for smartphones. Usually it&#8217;s an attribute of family tariffs which also propose home internet and digital TV. This article will describe how to disable this restriction. The article is only for educational purpose of course, the author takes no responsibility for what [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,20],"tags":[83],"class_list":["post-1601","post","type-post","status-publish","format-standard","hentry","category-apple","category-vsyachina","tag-mac-os-x"],"_links":{"self":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/1601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/comments?post=1601"}],"version-history":[{"count":15,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/1601\/revisions"}],"predecessor-version":[{"id":1618,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/1601\/revisions\/1618"}],"wp:attachment":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/media?parent=1601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/categories?post=1601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/tags?post=1601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}