<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.rtzra.ru/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>RTzRa&#039;s hive - software:sing-box</title>
        <description>Все работает</description>
        <link>https://wiki.rtzra.ru/</link>
        <lastBuildDate>Mon, 20 Jul 2026 19:56:02 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.rtzra.ru/_media/wiki/logo.png</url>
            <title>RTzRa&#039;s hive</title>
            <link>https://wiki.rtzra.ru/</link>
        </image>
        <item>
            <title>Sing-box: пример конфига</title>
            <link>https://wiki.rtzra.ru/software/sing-box/sing-box-config</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;sing-boxprimer_konfiga&quot;&gt;Sing-box: пример конфига&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Рабочий конфиг для sing-box &lt;a href=&quot;https://sing-box.sagernet.org&quot; class=&quot;urlextern&quot; title=&quot;https://sing-box.sagernet.org&quot; rel=&quot;ugc nofollow&quot;&gt;https://sing-box.sagernet.org&lt;/a&gt; v.1.12.1
&lt;/p&gt;

&lt;p&gt;
Если что-то не работает - авторы очень любят все переделывать, смотрим изменения тут: &lt;a href=&quot;https://sing-box.sagernet.org/migration/&quot; class=&quot;urlextern&quot; title=&quot;https://sing-box.sagernet.org/migration/&quot; rel=&quot;ugc nofollow&quot;&gt;https://sing-box.sagernet.org/migration/&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Обучающие видео по настройке sing-box можно посмотреть здесь: &lt;a href=&quot;https://www.youtube.com/@linux_power_users&quot; class=&quot;urlextern&quot; title=&quot;https://www.youtube.com/@linux_power_users&quot; rel=&quot;ugc nofollow&quot;&gt;https://www.youtube.com/@linux_power_users&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Что есть в этом простом конфиге:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1 node&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;abbr title=&quot;Domain Name System&quot;&gt;DNS&lt;/abbr&gt;:&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; 8.8.8.8 через TLS (примечание: в этом случае адрес YOU.VPN-SERVER.COM должен быть прописан в виде IP-адреса)&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level1 node&quot;&gt;&lt;div class=&quot;li&quot;&gt; Входы:&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; Socks на порту 1080&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; TUN&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level1 node&quot;&gt;&lt;div class=&quot;li&quot;&gt; Выходы:&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; VLESS&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; GeoIP, GeoSite обновляются каждый 4 часа и кэшируются&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
Схема работы: все входящее через Socks и TUN заворачивается в VLESS
&lt;/p&gt;

&lt;p&gt;
Этот кусок нужен чтобы FQDN резолвились в IP, иначе Geo не работает:
&lt;/p&gt;
&lt;pre class=&quot;code langjson&quot;&gt;{
  &amp;quot;action&amp;quot;: &amp;quot;resolve&amp;quot;,
  &amp;quot;strategy&amp;quot;: &amp;quot;prefer_ipv4&amp;quot;
}&lt;/pre&gt;

&lt;p&gt;
Адресация:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; XXX.XXX.XXX.XXX - локальный адрес вашего прокси, через который будет идти трафик&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; 192.168.22.1/30 - локальный адрес TUN-интерфейса, он не должен пересекаться с &lt;abbr title=&quot;Local Area Network&quot;&gt;LAN&lt;/abbr&gt; адресацией в локальной сети&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; YOU.VPN-SERVER.COM - FQDN адрес VPN сервера&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; YYY.YYY.YYY.YYY - IP адрес VPN сервера&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code langjson&quot;&gt;{
    &amp;quot;log&amp;quot;: {
        &amp;quot;level&amp;quot;: &amp;quot;warn&amp;quot;,
        &amp;quot;disabled&amp;quot;: false,
        &amp;quot;output&amp;quot;: &amp;quot;/var/log/sing-box.log&amp;quot;,
        &amp;quot;timestamp&amp;quot;: true
    },
    &amp;quot;dns&amp;quot;: {
        &amp;quot;strategy&amp;quot;: &amp;quot;ipv4_only&amp;quot;,
        &amp;quot;servers&amp;quot;: [
            {
                &amp;quot;type&amp;quot;: &amp;quot;tls&amp;quot;,
                &amp;quot;server&amp;quot;: &amp;quot;8.8.8.8&amp;quot;,
                &amp;quot;detour&amp;quot;: &amp;quot;vless-out&amp;quot;
            }
        ]
    },
    &amp;quot;inbounds&amp;quot;: [
        {
            &amp;quot;type&amp;quot;: &amp;quot;mixed&amp;quot;,
            &amp;quot;tag&amp;quot;: &amp;quot;mixed-in&amp;quot;,
            &amp;quot;listen&amp;quot;: &amp;quot;XXX.XXX.XXX.XXX&amp;quot;,
            &amp;quot;listen_port&amp;quot;: 1080
        },
        {
            &amp;quot;type&amp;quot;: &amp;quot;tun&amp;quot;,
            &amp;quot;tag&amp;quot;: &amp;quot;tun-in&amp;quot;,
            &amp;quot;interface_name&amp;quot;: &amp;quot;tun0&amp;quot;,
            &amp;quot;address&amp;quot;: [
                &amp;quot;192.168.22.1/30&amp;quot;
            ],
            &amp;quot;mtu&amp;quot;: 1400,
            &amp;quot;auto_route&amp;quot;: true,
            &amp;quot;route_exclude_address&amp;quot;: [
                &amp;quot;192.168.0.0/16&amp;quot;,
                &amp;quot;10.0.0.0/8&amp;quot;,
                &amp;quot;YYY.YYY.YYY.YYY/32&amp;quot;
            ]
        }
    ],
    &amp;quot;outbounds&amp;quot;: [
        {
            &amp;quot;type&amp;quot;: &amp;quot;block&amp;quot;,
            &amp;quot;tag&amp;quot;: &amp;quot;block&amp;quot;
        },
        {
            &amp;quot;type&amp;quot;: &amp;quot;vless&amp;quot;,
            &amp;quot;tag&amp;quot;: &amp;quot;vless-out&amp;quot;,
            &amp;quot;server&amp;quot;: &amp;quot;YOU.VPN-SERVER.COM&amp;quot;,
            &amp;quot;server_port&amp;quot;: 443,
            &amp;quot;uuid&amp;quot;: &amp;quot;UUID-YOU-SERVER&amp;quot;,
            &amp;quot;flow&amp;quot;: &amp;quot;xtls-rprx-vision&amp;quot;,
            &amp;quot;packet_encoding&amp;quot;: &amp;quot;xudp&amp;quot;,
            &amp;quot;tls&amp;quot;: {
                &amp;quot;enabled&amp;quot;: true,
                &amp;quot;insecure&amp;quot;: false,
                &amp;quot;server_name&amp;quot;: &amp;quot;YOU.VPN-SERVER.COM&amp;quot;,
                &amp;quot;utls&amp;quot;: {
                    &amp;quot;enabled&amp;quot;: true,
                    &amp;quot;fingerprint&amp;quot;: &amp;quot;chrome&amp;quot;
                }
            }
        },
        {
            &amp;quot;type&amp;quot;: &amp;quot;direct&amp;quot;,
            &amp;quot;tag&amp;quot;: &amp;quot;direct&amp;quot;
        }
    ],
    &amp;quot;route&amp;quot;: {
        &amp;quot;auto_detect_interface&amp;quot;: true,
        &amp;quot;rules&amp;quot;: [
            {
                &amp;quot;ip_is_private&amp;quot;: true,
                &amp;quot;outbound&amp;quot;: &amp;quot;direct&amp;quot;
            },
            {
                &amp;quot;action&amp;quot;: &amp;quot;resolve&amp;quot;,
                &amp;quot;strategy&amp;quot;: &amp;quot;prefer_ipv4&amp;quot;
            },
            {
                &amp;quot;inbound&amp;quot;: &amp;quot;mixed-in&amp;quot;,
                &amp;quot;rule_set&amp;quot;: &amp;quot;geoip-ru-blocked&amp;quot;,
                &amp;quot;outbound&amp;quot;: &amp;quot;vless-out&amp;quot;
            },
            {
                &amp;quot;inbound&amp;quot;: &amp;quot;mixed-in&amp;quot;,
                &amp;quot;rule_set&amp;quot;: &amp;quot;geosite-ru-blocked&amp;quot;,
                &amp;quot;outbound&amp;quot;: &amp;quot;vless-out&amp;quot;
            },
            {
                &amp;quot;inbound&amp;quot;: &amp;quot;mixed-in&amp;quot;,
                &amp;quot;outbound&amp;quot;: &amp;quot;direct&amp;quot;
            },
            {
                &amp;quot;inbound&amp;quot;: &amp;quot;tun-in&amp;quot;,
                &amp;quot;rule_set&amp;quot;: &amp;quot;geoip-ru-blocked&amp;quot;,
                &amp;quot;outbound&amp;quot;: &amp;quot;vless-out&amp;quot;
            },
            {
                &amp;quot;inbound&amp;quot;: &amp;quot;tun-in&amp;quot;,
                &amp;quot;rule_set&amp;quot;: &amp;quot;geosite-ru-blocked&amp;quot;,
                &amp;quot;outbound&amp;quot;: &amp;quot;vless-out&amp;quot;
            },
            {
                &amp;quot;inbound&amp;quot;: &amp;quot;tun-in&amp;quot;,
                &amp;quot;outbound&amp;quot;: &amp;quot;direct&amp;quot;
            }
        ],
        &amp;quot;rule_set&amp;quot;: [
            {
                &amp;quot;type&amp;quot;: &amp;quot;remote&amp;quot;,
                &amp;quot;tag&amp;quot;: &amp;quot;geoip-ru-blocked&amp;quot;,
                &amp;quot;format&amp;quot;: &amp;quot;binary&amp;quot;,
                &amp;quot;url&amp;quot;: &amp;quot;https://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/refs/heads/release/sing-box/rule-set-geoip/geoip-ru-blocked.srs&amp;quot;,
                &amp;quot;download_detour&amp;quot;: &amp;quot;direct&amp;quot;,
                &amp;quot;update_interval&amp;quot;: &amp;quot;4h&amp;quot;
            },
            {
                &amp;quot;type&amp;quot;: &amp;quot;remote&amp;quot;,
                &amp;quot;tag&amp;quot;: &amp;quot;geosite-ru-blocked&amp;quot;,
                &amp;quot;format&amp;quot;: &amp;quot;binary&amp;quot;,
                &amp;quot;url&amp;quot;: &amp;quot;https://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/refs/heads/release/sing-box/rule-set-geosite/geosite-ru-blocked.srs&amp;quot;,
                &amp;quot;download_detour&amp;quot;: &amp;quot;direct&amp;quot;,
                &amp;quot;update_interval&amp;quot;: &amp;quot;4h&amp;quot;
            }
        ]
    },
    &amp;quot;experimental&amp;quot;: {
        &amp;quot;cache_file&amp;quot;: {
        &amp;quot;enabled&amp;quot;: true
    }
    }
}&lt;/pre&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Aug 2025 12:01:20 +0000</pubDate>
        </item>
    </channel>
</rss>
