{"id":331732,"date":"2022-04-09T15:00:21","date_gmt":"2022-04-09T15:00:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=331732"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=331732","title":{"rendered":"<span>\u041f\u0440\u043e VPN \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u00ab\u0441\u0435\u0440\u0432\u0435\u0440\u0435\u00bb<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c36\/074\/324\/c36074324af39e882127500fbf9e0234.png\" width=\"288\" height=\"150\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c36\/074\/324\/c36074324af39e882127500fbf9e0234.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0440\u043e\u0434\u0435 \u0434\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043c\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0435\u0437\u0436\u0435\u043d\u0430, \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 1001 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430 5$, \u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0434\u0440\u0443\u0433\u043e\u043c. \u0410 \u0438\u043c\u0435\u043d\u043d\u043e \u2013 \u043e\u0431 \u0430\u0440\u0435\u043d\u0434\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u00ab\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u00bb \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.<\/p>\n<h2>\u0412\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b<\/h2>\n<p>q: \u0417\u0430\u0447\u0435\u043c?<\/p>\n<p>a: \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0432\u0437\u043b\u0430\u043c\u044b\u0432\u0430\u0442\u044c <s>\u043a\u0440\u0435\u043c\u043b\u044c<\/s> \u043f\u0435\u043d\u0442\u0430\u0433\u043e\u043d, \u043d\u0443\u0436\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 ping, \u0442\u043e \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0438\u0434\u0435\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438.<\/p>\n<p>q: \u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u043b\u043e\u0432\u043e \u00ab\u0441\u0435\u0440\u0432\u0435\u0440\u00bb \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439?<\/p>\n<p>a: \u042d\u0442\u043e \u0448\u0438\u0440\u0438\u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430, \u043e\u043d \u0432\u0430\u0448 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0448, \u043a\u0430\u043a \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>\u0421\u043c\u044b\u0441\u043b \u0430\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435\u0442, \u043d\u043e \u0435\u0441\u0442\u044c \u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0432 \u0430\u0440\u0435\u043d\u0434\u0443 \u00ab\u043c\u0430\u043b\u0438\u043d\u043a\u0443\u00bb, \u043e\u043d\u0430 \u043d\u0430\u043c \u0438 \u043d\u0443\u0436\u043d\u0430. \u041a\u0430\u043a \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043d\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0431\u0435\u043a\u0430\u043f\u0430\u043c\u0438.<\/p>\n<p>q: \u0427\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c?<\/p>\n<p>a: Ping 4\u20138, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c: \u043f\u0440\u0438 \u0431\u0435\u0437\u043b\u0438\u043c\u0438\u0442\u043d\u043e\u043c \u0442\u0430\u0440\u0438\u0444\u0435 ~100\u041c\u0431\u0438\u0442 (\u043f\u0440\u0438 \u0433\u0438\u0433\u0430\u0431\u0438\u0442\u043d\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435 \u043c\u0430\u043b\u0438\u043d\u043a\u0430 \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u043a\u043e\u043b\u043e 600\u2013700\u041c\u0431\u0438\u0442, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u0438\u043f\u0430 VPN \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440). <\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u041a\u041d<\/summary>\n<div class=\"spoiler__content\">\n<ol>\n<li>\n<p><em>\u0425\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u044b \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e\u0434 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0420\u041a\u041d, \u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u2013 \u043d\u0435\u0442, \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443, \u0438\u0431\u043e \u044d\u0442\u043e \u0440\u0435\u043a\u043b\u0430\u043c\u0430.<\/em><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.kommersant.ru\/doc\/5292872\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0441\u043a\u043e\u0432 \u043f\u0440\u0438\u0437\u043d\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f VPN<\/a><\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/details>\n<p>q: \u0426\u0435\u043d\u0430???<\/p>\n<p>a: \u0412\u0441\u0435 \u044d\u0442\u043e \u0432\u044b\u0439\u0434\u0435\u0442 800\u0440 \u0432 \u043c\u0435\u0441\u044f\u0446, \u0434\u043e\u0440\u043e\u0433\u043e? \u041d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0430.<\/p>\n<p>q: \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c?<\/p>\n<p>a: \u0412\u0441\u0435, \u043a\u0440\u043e\u043c\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0439 IP \u00ab\u043d\u0435\u0443\u0433\u043e\u0434\u043d\u044b\u043c\u00bb, \u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c Tor (\u0431\u0435\u0437 \u043c\u043e\u0441\u0442\u043e\u0432).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b9a\/14e\/e56\/b9a14ee562357c26a35786357b30299c.jpg\" width=\"1280\" height=\"548\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b9a\/14e\/e56\/b9a14ee562357c26a35786357b30299c.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u0412\u044b\u0431\u043e\u0440 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430<\/h2>\n<p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b VPN: \u0434\u043b\u044f \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u2014 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e WireGuard \u0438\u0431\u043e \u043e\u043d &#171;\u0442\u0438\u0445\u0438\u0439&#187;. \u041d\u0435 \u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0443\u043d\u043d\u0435\u043b\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043d\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u0435\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u044e\/\u0442\u0440\u0430\u0444\u0444\u0438\u043a, \u043d\u0435 \u0440\u0430\u0441\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0441\u043c\u0435\u043d\u044b ip\/\u0442\u0438\u043f\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u041f\u041a (\u0440\u043e\u0443\u0442\u0435\u0440\u0430): SSTP, IPsec, OpenVPN, \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c ZeroTier.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f SSH \u043a\u043b\u0438\u0435\u043d\u0442, \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f Windows \u2013 \u00abPuTTY\u00bb, \u043a\u0430\u0447\u0430\u0435\u043c \u0432\u0435\u0441\u044c \u0430\u0440\u0445\u0438\u0432 \u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043a\u043b\u044e\u0447\u0435\u0439.<\/p>\n<p>0. <em>(\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0433)<\/em> \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u0440\u0443 \u043a\u043b\u044e\u0447\u0435\u0439 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (puttygen.ene), \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u0431\u0435 \u0432 PuTTY.<\/p>\n<p>1. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u041e\u0421 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Pi OS buster aarch64 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 (\u0448\u0430\u0433 0).<\/p>\n<p>2. \u0416\u0434\u0435\u043c 10 \u043c\u0438\u043d\u0443\u0442, \u043a\u043e\u0433\u0434\u0430 \u041e\u0421 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e SSH (putty.exe) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c (\u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447, \u0435\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u0448\u0430\u0433 0). \u041b\u043e\u0433\u0438\u043d \u00abpi\u00bb<\/p>\n<p>3. (\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u044f\u0442 \u043c\u0435\u043d\u044f \u0438\u0441\u0442\u0438\u043d\u043d\u044b\u0435 \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0438\u0434\u044b) \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c: <code>$sudo su<\/code><\/p>\n<p><code>#timedatectl set\u2013ntp 1<\/code><\/p>\n<p><code>#apt \u2013y update<\/code><\/p>\n<p><code>#apt \u2013y upgrade<\/code><\/p>\n<p><code>#git clone https:\/\/github.com\/pivpn\/pivpn<\/code><\/p>\n<p><code>#bash pivpn\/auto_install\/install.sh<\/code><\/p>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c WireGuard, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u00ab\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00bb, \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f.<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c SoftEther VPN, \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437 Windows \u0438\u043b\u0438 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 (\u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438)<\/p>\n<p><code>#apt install \u2013y cmake gcc g++ libncurses5\u2013dev libreadline\u2013dev libssl\u2013dev make zlib1g\u2013dev git<\/code><\/p>\n<p><code>#git clone https:\/\/github.com\/SoftEtherVPN\/SoftEtherVPN_Stable\/<\/code><\/p>\n<p><code>#cd SoftEtherVPN_Stable<\/code><\/p>\n<p><code>#.\/configure<\/code><\/p>\n<p><code>#make \u2013j4<\/code><\/p>\n<p><code>#make \u2013j4 install<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b (\u0432\u044b\u0439\u0442\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c ctrl+x)<\/p>\n<p><code>#nano \/etc\/init.d\/softether<\/code><\/p>\n<pre><code>#!\/bin\/bash  #SoftEther  sleep 10  # REMOVE # before sudo to turn ON  # description: SoftEther VPN Server  sudo \/usr\/bin\/vpnserver start  # description: SoftEther VPN Bridge  # sudo \/usr\/bin\/vpnbridge start  # description: SoftEther VPN Client  # sudo \/usr\/bin\/vpnclient start  exit 0<\/code><\/pre>\n<p><code>#chmod +x \/etc\/init.d\/softether<\/code><\/p>\n<p><code>#nano \/etc\/rc.local<\/code><\/p>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u044b\u0448\u0435 \u043b\u0438\u043d\u0438\u0438 \u00abexit\u00bb<\/p>\n<pre><code>\/etc\/init.d\/softether<\/code><\/pre>\n<p><code>#\/usr\/bin\/vpnserver start<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 SoftEther \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 (\u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u041f\u041a \u2014 SoftEther VPN server manager for Windows). <a href=\"https:\/\/www.google.com\/search?q=softether+%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0&amp;oq=softether+%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0\" rel=\"noopener noreferrer nofollow\">\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SoftEther<\/a><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 <u>\u0422\u041e\u041b\u042c\u041a\u041e \u0415\u0421\u041b\u0418 \u041d\u0415 \u041f\u0420\u041e\u041f\u0423\u0421\u0422\u0418\u041b\u0418 \u0428\u0410\u0413 0<\/u><\/p>\n<p><code>#nano \/etc\/ssh\/sshd_config<\/code><\/p>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<pre><code>PasswordAuthentication no<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<p><code>#reboot<\/code><\/p>\n<h2>ZeroTier<\/h2>\n<p>*\u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430 \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c, \u0440\u0430\u0441\u0445\u043e\u0434 \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c WireGuard, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b &#8212; \u043d\u0438\u0436\u0435.<\/p>\n<p><code>#curl -s https:\/\/install.zerotier.com | sudo bash<\/code><\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c &#171;\u043c\u0430\u043b\u0438\u043d\u043a\u0443&#187; \u043a\u0430\u043a \u0448\u043b\u044e\u0437 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables. \u0413\u0434\u0435 eth0 &#8212; \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. <\/p>\n<pre><code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i ztrtaqxslf -o eth0 -j ACCEPT<\/code><\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"http:\/\/my.zerotier.com\" rel=\"noopener noreferrer nofollow\">my.zerotier.com<\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d7d\/cdd\/e4a\/d7dcdde4ae81a7fb8dea0c1810383e69.png\" width=\"762\" height=\"328\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d7d\/cdd\/e4a\/d7dcdde4ae81a7fb8dea0c1810383e69.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 WireGuard<\/h2>\n<p><code>$sudo pivpn add<\/code><\/p>\n<p>\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c qr \u043a\u043e\u0434<\/p>\n<p><code>$sudo pivpn \u2013qr<\/code><\/p>\n<p>\u0414\u043b\u044f WireGuard \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c DNS \u00ab\u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u0430\u00bb, 8.8.8.8 \u2014 \u0442\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c &#171;\u0441\u0443\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439&#187; \u0438 &#171;\u043d\u0435 \u043e\u0447\u0435\u043d\u044c&#187; \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/659989\/\"> https:\/\/habr.com\/ru\/post\/659989\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0440\u043e\u0434\u0435 \u0434\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043c\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0435\u0437\u0436\u0435\u043d\u0430, \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 1001 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430 5$, \u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0434\u0440\u0443\u0433\u043e\u043c. \u0410 \u0438\u043c\u0435\u043d\u043d\u043e \u2013 \u043e\u0431 \u0430\u0440\u0435\u043d\u0434\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u00ab\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u00bb \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.<\/p>\n<h2>\u0412\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b<\/h2>\n<p>q: \u0417\u0430\u0447\u0435\u043c?<\/p>\n<p>a: \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0432\u0437\u043b\u0430\u043c\u044b\u0432\u0430\u0442\u044c <s>\u043a\u0440\u0435\u043c\u043b\u044c<\/s> \u043f\u0435\u043d\u0442\u0430\u0433\u043e\u043d, \u043d\u0443\u0436\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 ping, \u0442\u043e \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0438\u0434\u0435\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438.<\/p>\n<p>q: \u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u043b\u043e\u0432\u043e \u00ab\u0441\u0435\u0440\u0432\u0435\u0440\u00bb \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439?<\/p>\n<p>a: \u042d\u0442\u043e \u0448\u0438\u0440\u0438\u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430, \u043e\u043d \u0432\u0430\u0448 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0448, \u043a\u0430\u043a \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>\u0421\u043c\u044b\u0441\u043b \u0430\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435\u0442, \u043d\u043e \u0435\u0441\u0442\u044c \u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0432 \u0430\u0440\u0435\u043d\u0434\u0443 \u00ab\u043c\u0430\u043b\u0438\u043d\u043a\u0443\u00bb, \u043e\u043d\u0430 \u043d\u0430\u043c \u0438 \u043d\u0443\u0436\u043d\u0430. \u041a\u0430\u043a \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043d\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0431\u0435\u043a\u0430\u043f\u0430\u043c\u0438.<\/p>\n<p>q: \u0427\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c?<\/p>\n<p>a: Ping 4\u20138, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c: \u043f\u0440\u0438 \u0431\u0435\u0437\u043b\u0438\u043c\u0438\u0442\u043d\u043e\u043c \u0442\u0430\u0440\u0438\u0444\u0435 ~100\u041c\u0431\u0438\u0442 (\u043f\u0440\u0438 \u0433\u0438\u0433\u0430\u0431\u0438\u0442\u043d\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435 \u043c\u0430\u043b\u0438\u043d\u043a\u0430 \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u043a\u043e\u043b\u043e 600\u2013700\u041c\u0431\u0438\u0442, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u0438\u043f\u0430 VPN \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440). <\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u041a\u041d<\/summary>\n<div class=\"spoiler__content\">\n<ol>\n<li>\n<p><em>\u0425\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u044b \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e\u0434 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0420\u041a\u041d, \u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u2013 \u043d\u0435\u0442, \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443, \u0438\u0431\u043e \u044d\u0442\u043e \u0440\u0435\u043a\u043b\u0430\u043c\u0430.<\/em><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.kommersant.ru\/doc\/5292872\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0441\u043a\u043e\u0432 \u043f\u0440\u0438\u0437\u043d\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f VPN<\/a><\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/details>\n<p>q: \u0426\u0435\u043d\u0430???<\/p>\n<p>a: \u0412\u0441\u0435 \u044d\u0442\u043e \u0432\u044b\u0439\u0434\u0435\u0442 800\u0440 \u0432 \u043c\u0435\u0441\u044f\u0446, \u0434\u043e\u0440\u043e\u0433\u043e? \u041d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0430.<\/p>\n<p>q: \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c?<\/p>\n<p>a: \u0412\u0441\u0435, \u043a\u0440\u043e\u043c\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0439 IP \u00ab\u043d\u0435\u0443\u0433\u043e\u0434\u043d\u044b\u043c\u00bb, \u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c Tor (\u0431\u0435\u0437 \u043c\u043e\u0441\u0442\u043e\u0432).<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0412\u044b\u0431\u043e\u0440 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430<\/h2>\n<p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b VPN: \u0434\u043b\u044f \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u2014 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e WireGuard \u0438\u0431\u043e \u043e\u043d &#171;\u0442\u0438\u0445\u0438\u0439&#187;. \u041d\u0435 \u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0443\u043d\u043d\u0435\u043b\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043d\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u0435\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u044e\/\u0442\u0440\u0430\u0444\u0444\u0438\u043a, \u043d\u0435 \u0440\u0430\u0441\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0441\u043c\u0435\u043d\u044b ip\/\u0442\u0438\u043f\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u041f\u041a (\u0440\u043e\u0443\u0442\u0435\u0440\u0430): SSTP, IPsec, OpenVPN, \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c ZeroTier.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f SSH \u043a\u043b\u0438\u0435\u043d\u0442, \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f Windows \u2013 \u00abPuTTY\u00bb, \u043a\u0430\u0447\u0430\u0435\u043c \u0432\u0435\u0441\u044c \u0430\u0440\u0445\u0438\u0432 \u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043a\u043b\u044e\u0447\u0435\u0439.<\/p>\n<p>0. <em>(\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0433)<\/em> \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u0440\u0443 \u043a\u043b\u044e\u0447\u0435\u0439 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (puttygen.ene), \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u0431\u0435 \u0432 PuTTY.<\/p>\n<p>1. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u041e\u0421 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Pi OS buster aarch64 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 (\u0448\u0430\u0433 0).<\/p>\n<p>2. \u0416\u0434\u0435\u043c 10 \u043c\u0438\u043d\u0443\u0442, \u043a\u043e\u0433\u0434\u0430 \u041e\u0421 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e SSH (putty.exe) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c (\u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447, \u0435\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u0448\u0430\u0433 0). \u041b\u043e\u0433\u0438\u043d \u00abpi\u00bb<\/p>\n<p>3. (\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u044f\u0442 \u043c\u0435\u043d\u044f \u0438\u0441\u0442\u0438\u043d\u043d\u044b\u0435 \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0438\u0434\u044b) \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c: <code>$sudo su<\/code><\/p>\n<p><code>#timedatectl set\u2013ntp 1<\/code><\/p>\n<p><code>#apt \u2013y update<\/code><\/p>\n<p><code>#apt \u2013y upgrade<\/code><\/p>\n<p><code>#git clone https:\/\/github.com\/pivpn\/pivpn<\/code><\/p>\n<p><code>#bash pivpn\/auto_install\/install.sh<\/code><\/p>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c WireGuard, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u00ab\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00bb, \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f.<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c SoftEther VPN, \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437 Windows \u0438\u043b\u0438 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 (\u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438)<\/p>\n<p><code>#apt install \u2013y cmake gcc g++ libncurses5\u2013dev libreadline\u2013dev libssl\u2013dev make zlib1g\u2013dev git<\/code><\/p>\n<p><code>#git clone https:\/\/github.com\/SoftEtherVPN\/SoftEtherVPN_Stable\/<\/code><\/p>\n<p><code>#cd SoftEtherVPN_Stable<\/code><\/p>\n<p><code>#.\/configure<\/code><\/p>\n<p><code>#make \u2013j4<\/code><\/p>\n<p><code>#make \u2013j4 install<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b (\u0432\u044b\u0439\u0442\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c ctrl+x)<\/p>\n<p><code>#nano \/etc\/init.d\/softether<\/code><\/p>\n<pre><code>#!\/bin\/bash  #SoftEther  sleep 10  # REMOVE # before sudo to turn ON  # description: SoftEther VPN Server  sudo \/usr\/bin\/vpnserver start  # description: SoftEther VPN Bridge  # sudo \/usr\/bin\/vpnbridge start  # description: SoftEther VPN Client  # sudo \/usr\/bin\/vpnclient start  exit 0<\/code><\/pre>\n<p><code>#chmod +x \/etc\/init.d\/softether<\/code><\/p>\n<p><code>#nano \/etc\/rc.local<\/code><\/p>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u044b\u0448\u0435 \u043b\u0438\u043d\u0438\u0438 \u00abexit\u00bb<\/p>\n<pre><code>\/etc\/init.d\/softether<\/code><\/pre>\n<p><code>#\/usr\/bin\/vpnserver start<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 SoftEther \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 (\u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u041f\u041a \u2014 SoftEther VPN server manager for Windows). <a href=\"https:\/\/www.google.com\/search?q=softether+%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0&amp;oq=softether+%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0\" rel=\"noopener noreferrer nofollow\">\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SoftEther<\/a><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 <u>\u0422\u041e\u041b\u042c\u041a\u041e \u0415\u0421\u041b\u0418 \u041d\u0415 \u041f\u0420\u041e\u041f\u0423\u0421\u0422\u0418\u041b\u0418 \u0428\u0410\u0413 0<\/u><\/p>\n<p><code>#nano \/etc\/ssh\/sshd_config<\/code><\/p>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<pre><code>PasswordAuthentication no<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<p><code>#reboot<\/code><\/p>\n<h2>ZeroTier<\/h2>\n<p>*\u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430 \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c, \u0440\u0430\u0441\u0445\u043e\u0434 \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c WireGuard, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b &#8212; \u043d\u0438\u0436\u0435.<\/p>\n<p><code>#curl -s https:\/\/install.zerotier.com | sudo bash<\/code><\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c &#171;\u043c\u0430\u043b\u0438\u043d\u043a\u0443&#187; \u043a\u0430\u043a \u0448\u043b\u044e\u0437 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables. \u0413\u0434\u0435 eth0 &#8212; \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. <\/p>\n<pre><code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i ztrtaqxslf -o eth0 -j ACCEPT<\/code><\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"http:\/\/my.zerotier.com\" rel=\"noopener noreferrer nofollow\">my.zerotier.com<\/a><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 WireGuard<\/h2>\n<p><code>$sudo pivpn add<\/code><\/p>\n<p>\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c qr \u043a\u043e\u0434<\/p>\n<p><code>$sudo pivpn \u2013qr<\/code><\/p>\n<p>\u0414\u043b\u044f WireGuard \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c DNS \u00ab\u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u0430\u00bb, 8.8.8.8 \u2014 \u0442\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c &#171;\u0441\u0443\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439&#187; \u0438 &#171;\u043d\u0435 \u043e\u0447\u0435\u043d\u044c&#187; \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/659989\/\"> https:\/\/habr.com\/ru\/post\/659989\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-331732","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/331732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=331732"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/331732\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=331732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=331732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=331732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}