{"id":6649,"date":"2025-11-26T09:05:11","date_gmt":"2025-11-26T07:05:11","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6649"},"modified":"2026-06-21T21:00:19","modified_gmt":"2026-06-21T18:00:19","slug":"ttl-shift-%d0%b4%d0%bb%d1%8f-%d1%84%d0%b0%d0%b9%d0%b5%d1%80%d0%b2%d0%be%d0%bb%d1%96%d0%b2","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6649","title":{"rendered":"TTL shift \u0434\u043b\u044f \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0456\u0432"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0426\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e \u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u043d\u0430\u044f\u0432\u043d\u0456\u0441\u0442\u044c \u0445\u043e\u043f\u0430\/\u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0432\u0456\u0434 \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u044f\u043a <strong>traceroute<\/strong>. \u0410\u043b\u0435, \u0446\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0435 \u0443 \u0432\u0441\u0456\u0445 \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0430\u0445, \u0430 \u0442\u0456\u043b\u044c\u043a\u0438 \u0432 \u0434\u0435\u044f\u043a\u0438\u0445.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e3740f\" class=\"has-inline-color\">iptables<\/mark><\/strong><\/p>\n\n\n<pre>iptables -t mangle -\u0410 PREROUTING -i eth0 -J TTL --ttl-inc 1<\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e3740f\" class=\"has-inline-color\">mikrotik<\/mark><\/strong><\/p>\n\n\n<pre>[admin@MikroTik] \/ip\/firewall\/mangle> add chain=prerouting action=change-ttl new-ttl=incrernent:1 passthrough=yes in-interface=\\<internal_interface_for_ttl_shift\\> log=no log-prefix=\"\"<\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e3740f\" class=\"has-inline-color\">FreeBSD<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0435\u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u044f\u0434\u0440\u043e \u0437 \u043e\u043f\u0446\u0456\u0454\u044e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>options IPSTEALTH<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0456 \u0434\u0430\u043b\u0456 \u043c\u043e\u0436\u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 <strong>sysctl<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># sysctl net.inet.ip.stealth=1\n# sysctl net.inet.ip.stealth=0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454 <strong>TTL <\/strong>\u043f\u0440\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0436\u0435\u043d\u043d\u0456 \u0447\u0435\u0440\u0435\u0437 \u0446\u0435\u0439 \u0445\u043e\u0441\u0442, \u0442\u0438\u043c \u0441\u0430\u043c\u0438 \u043f\u0440\u0438\u0445\u043e\u0432\u0443\u044e\u0447\u0438 \u0441\u0435\u0431\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0426\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e \u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u043d\u0430\u044f\u0432\u043d\u0456\u0441\u0442\u044c \u0445\u043e\u043f\u0430\/\u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0432\u0456\u0434 \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u044f\u043a traceroute. \u0410\u043b\u0435, \u0446\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0435 \u0443 \u0432\u0441\u0456\u0445 \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0430\u0445, \u0430 \u0442\u0456\u043b\u044c\u043a\u0438 \u0432 \u0434\u0435\u044f\u043a\u0438\u0445. iptables iptables -t mangle -\u0410 PREROUTING -i eth0 -J TTL &#8211;ttl-inc 1 mikrotik [admin@MikroTik] \/ip\/firewall\/mangle> add chain=prerouting action=change-ttl new-ttl=incrernent:1 passthrough=yes in-interface=\\ log=no log-prefix=&#8221;&#8221; FreeBSD \u041f\u0435\u0440\u0435\u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u044f\u0434\u0440\u043e \u0437 \u043e\u043f\u0446\u0456\u0454\u044e \u0456 \u0434\u0430\u043b\u0456 \u043c\u043e\u0436\u043d\u0430 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,38,10,12],"tags":[],"class_list":["post-6649","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-linux","category-mikrotik","category-others","category-routers"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6649"}],"version-history":[{"count":3,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6649\/revisions"}],"predecessor-version":[{"id":6768,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6649\/revisions\/6768"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}