{"id":1304,"date":"2026-02-19T16:01:53","date_gmt":"2026-02-19T13:01:53","guid":{"rendered":"https:\/\/ru.tophosts.net\/articles\/?post_type=docs&#038;p=1304"},"modified":"2026-02-26T16:11:16","modified_gmt":"2026-02-26T13:11:16","password":"","slug":"wireguard","status":"publish","type":"docs","link":"https:\/\/ru.tophosts.net\/articles\/glossary\/docs\/wireguard\/","title":{"rendered":"WireGuard"},"content":{"rendered":"\n<p><strong>WireGuard<\/strong>\u00a0\u2014 \u0441\u0432\u0435\u0440\u0445\u0431\u044b\u0441\u0442\u0440\u044b\u0439 <a href=\"https:\/\/ru.tophosts.net\/rating-vps-for-vpn\" target=\"_blank\" rel=\"noreferrer noopener\">VPN<\/a>-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f (2016), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e Curve25519 \u0438 ChaCha20 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0442\u0443\u043d\u043d\u0435\u043b\u0435\u0439. \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u2014 \u0432\u0441\u0435\u0433\u043e 4000 \u0441\u0442\u0440\u043e\u043a (vs 600 000 \u0443 <a href=\"https:\/\/ru.tophosts.net\/articles\/glossary\/docs\/openvpn\/\" target=\"_blank\" rel=\"noreferrer noopener\">OpenVPN<\/a>), \u0447\u0442\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0430\u0443\u0434\u0438\u0442\u0430.<\/p>\n\n\n\n<p><strong>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 WireGuard<\/strong><\/p>\n\n\n\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>\u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435: ChaCha20-Poly1305\n\u041e\u0431\u043c\u0435\u043d \u043a\u043b\u044e\u0447\u0430\u043c\u0438: Curve25519 (X25519)\n\u0425\u044d\u0448: BLAKE2s\n\u041f\u043e\u0434\u043f\u0438\u0441\u044c: Ed25519\n<\/code><\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0442\u043e\u043b\u044c\u043a\u043e UDP&nbsp;\u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c;<\/li>\n\n\n\n<li>\u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438&nbsp;\u2014 5\u201310 \u0441\u0442\u0440\u043e\u043a \u0432\u043c\u0435\u0441\u0442\u043e 100+<\/li>\n\n\n\n<li>\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438&nbsp;\u2014 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 WireGuard \u043d\u0430 VPS (5 \u043c\u0438\u043d\u0443\u0442)<\/strong><\/p>\n\n\n\n<p>1. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>curl -fsSL https:\/\/get.docker.com -o get-docker.sh\nsh get-docker.sh\ndocker run -it --rm --privileged --network host --pid host \\\n  -v \/etc\/wireguard:\/config linuxserver\/wireguard\n<\/code><\/code><\/pre>\n\n\n\n<p>2. \u0420\u0443\u0447\u043d\u0430\u044f (Ubuntu\/Debian):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>apt update &amp;&amp; apt install wireguard -y\nwg genkey | tee private.key | wg pubkey &gt; public.key\n<\/code><\/code><\/pre>\n\n\n\n<p>3. \u041a\u043e\u043d\u0444\u0438\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (<code>\/etc\/wireguard\/wg0.conf<\/code>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>&#91;Interface]\nPrivateKey = &lt;\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447&gt;\nAddress = 10.66.66.1\/24\nListenPort = 51820\nPostUp = iptables -A FORWARD -i %i -j ACCEPT\n<\/code><\/code><\/pre>\n\n\n\n<p>4. \u041a\u043b\u0438\u0435\u043d\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>&#91;Peer]\nPublicKey = &lt;\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447&gt;\nEndpoint = \u0432\u0430\u0448VPS.com:51820\nAllowedIPs = 0.0.0.0\/0\n<\/code><\/code><\/pre>\n\n\n\n<p><strong>\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 WireGuard<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>\u041f\u043b\u044e\u0441\u044b<\/strong><\/th><th><strong>\u041c\u0438\u043d\u0443\u0441\u044b<\/strong><\/th><\/tr><\/thead><tbody><tr><td>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c +50% vs OpenVPN<\/td><td>\u0422\u043e\u043b\u044c\u043a\u043e UDP<\/td><\/tr><tr><td>4000 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430<\/td><td>\u041c\u0435\u043d\u044c\u0448\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438<\/td><\/tr><tr><td>\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442<\/td><td>\u041d\u0435\u0442 TCP<\/td><\/tr><tr><td>\u0410\u0443\u0434\u0438\u0442 \u0433\u043e\u0442\u043e\u0432<\/td><td>\u041c\u0435\u043d\u044c\u0448\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441 OpenVPN<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>WireGuard<\/strong><\/th><th><strong>OpenVPN<\/strong><\/th><\/tr><\/thead><tbody><tr><td>1 \u041c\u0431\u0438\u0442\/\u0441 \u2192 1.5 \u0413\u0431\u0438\u0442\/\u0441<\/td><td>1 \u041c\u0431\u0438\u0442\/\u0441 \u2192 500 \u041c\u0431\u0438\u0442\/\u0441<\/td><\/tr><tr><td>4 \u043a\u043e\u043d\u0444\u0438\u0433\u0430<\/td><td>100+ \u0441\u0442\u0440\u043e\u043a<\/td><\/tr><tr><td>Curve25519<\/td><td>RSA-4096<\/td><\/tr><tr><td>\u0422\u043e\u043b\u044c\u043a\u043e UDP<\/td><td>UDP+TCP<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c WireGuard<\/strong><\/p>\n\n\n\n<p>\u0418\u0434\u0435\u0430\u043b\u0435\u043d \u0434\u043b\u044f:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0433\u0435\u0439\u043c\u0438\u043d\u0433<\/strong>&nbsp;(\u043d\u0438\u0437\u043a\u0438\u0439 \u043f\u0438\u043d\u0433, \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c);<\/li>\n\n\n\n<li><strong>\u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433 4K<\/strong>&nbsp;(\u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0430\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c);<\/li>\n\n\n\n<li><strong>\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/strong>&nbsp;(\u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442);<\/li>\n\n\n\n<li><strong>\u0441\u0435\u0440\u0432\u0435\u0440\u044b<\/strong>&nbsp;(\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 CPU).<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438:<\/strong>&nbsp;<a href=\"https:\/\/ru.tophosts.net\/rating-vps-vds\" target=\"_blank\" rel=\"noreferrer noopener\">VPS \u0441 NVMe SSD<\/a>, 2 \u0413\u0411 RAM, <a href=\"https:\/\/ru.tophosts.net\/rating-vps-ubuntu\" target=\"_blank\" rel=\"noreferrer noopener\">Ubuntu<\/a> 22.04\/24.04. \u041f\u043e\u0440\u0442 51820 UDP. Docker-\u043e\u0431\u0440\u0430\u0437&nbsp;<code>linuxserver\/wireguard<\/code>&nbsp;\u2014 \u0437\u0430\u043f\u0443\u0441\u043a \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443. \u0414\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 DPI \u2014 \u043e\u0431\u0444\u0443\u0441\u043a\u0430\u0446\u0438\u044f (<code>wg-obfuscate<\/code>).<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WireGuard\u00a0\u2014 \u0441\u0432\u0435\u0440\u0445\u0431\u044b\u0441\u0442\u0440\u044b\u0439 VPN-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f (2016), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e Curve25519 \u0438 ChaCha20 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[618],"doc_tag":[],"class_list":["post-1304","docs","type-docs","status-publish","hentry","doc_category-docs"],"year_month":"2026-04","word_count":125,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"TopHosts","author_nicename":"tophosts","author_url":"https:\/\/ru.tophosts.net\/articles\/author\/tophosts\/"},"doc_category_info":[{"term_name":"\u0422\u0435\u0440\u043c\u0438\u043d\u044b","term_url":"https:\/\/ru.tophosts.net\/articles\/glossary\/docs\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/docs\/1304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/comments?post=1304"}],"version-history":[{"count":0,"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/docs\/1304\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/media?parent=1304"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/doc_category?post=1304"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/ru.tophosts.net\/articles\/wp-json\/wp\/v2\/doc_tag?post=1304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}