{"id":6707,"date":"2026-08-25T09:00:00","date_gmt":"2026-08-25T06:00:00","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6707"},"modified":"2026-03-16T11:08:40","modified_gmt":"2026-03-16T09:08:40","slug":"pritunl-%d0%b2%d0%ba%d0%bb%d1%8e%d1%87%d0%b0%d1%94%d0%bc%d0%be-%d0%b4%d0%be%d0%b4%d0%b0%d1%82%d0%ba%d0%be%d0%b2%d0%b8%d0%b9-%d0%b7%d0%b0%d1%85%d0%b8%d1%81%d1%82","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6707","title":{"rendered":"[pritunl] \u0412\u043a\u043b\u044e\u0447\u0430\u0454\u043c\u043e \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0439 \u0437\u0430\u0445\u0438\u0441\u0442"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u042f\u043a\u0449\u043e \u0445\u0442\u043e\u0441\u044c \u043d\u0435 \u0437\u043d\u0430\u0454, \u0449\u043e \u0442\u0430\u043a\u0435 <strong>pritunl<\/strong>, \u0442\u043e \u0446\u0435 openvpn \u043d\u0430 \u0441\u0442\u0435\u0440\u043e\u0457\u0434\u0430\u0445. \u0412\u0456\u043d \u0434\u043e\u0441\u0438\u0442\u044c \u0437\u0440\u0443\u0447\u043d\u0438\u0439 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0445 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432: \u0434\u043e\u0441\u0442\u0430\u0442\u043d\u044c\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043b\u043e\u0433\u0456\u043d\u0438\u0442\u0438\u0441\u044f \u0456 \u043e\u0434\u0440\u0430\u0437\u0443 \u0444\u043e\u0440\u043c\u0443\u0454\u0442\u044c\u0441\u044f \u0442\u043e\u0431\u0456 \u0433\u043e\u0442\u043e\u0432\u0438\u0439 \u043a\u043e\u043d\u0444\u0456\u0433, \u044f\u043a\u0438\u0439 \u043c\u043e\u0436\u043d\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 \u0445\u043e\u0447 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d, \u0445\u043e\u0447 \u043d\u0430 \u043a\u043e\u043c\u043f\u02bc\u044e\u0442\u0435\u0440. \u0410\u043b\u0435 \u043c\u0456\u043d\u0443\u0441\u0438 \u0442\u0435\u0436 \u0434\u043e\u0441\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u043d\u0456: \u043f\u0440\u0430\u0446\u044e\u0454 \u043b\u0438\u0448\u0435 \u043d\u0430 <strong>Linux<\/strong>, \u0431\u043e \u043c\u0430\u0454 \u0436\u043e\u0440\u0441\u0442\u043a\u0456 \u0437\u0430\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0456 \u0432\u0456\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 <strong>ip <\/strong>\u0434\u043b\u044f \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u043c\u0435\u0440\u0435\u0436\u0435\u0432\u0438\u043c \u0441\u0442\u0435\u043a\u043e\u043c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044e, \u0454\u0434\u0438\u043d\u0438\u0439 \u0437\u0430\u0445\u0438\u0441\u0442 &#8211; \u0446\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u043e\u0440\u043c\u0430 <strong>login\/pass<\/strong> \u0431\u0435\u0437 \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u044c \u0432 <strong>RPS <\/strong>\u0447\u0438 \u043a\u0430\u043f\u0447\u0456, \u0447\u0438 \u0447\u043e\u0433\u043e\u0441\u044c \u0456\u043d\u0448\u043e\u0433\u043e. \u042f\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u043f\u0456\u0434\u0431\u043e\u0440\u0443 <strong>login\/pass<\/strong> \u0431\u0435\u0437 \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u044c. \u0412\u0438\u043f\u0440\u0430\u0432\u0438\u043c\u043e \u0446\u0435.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043b\u0430\u0441\u0438\u0447\u043d\u0438\u0439 \u043f\u0456\u0434\u0445\u0456\u0434 \u0442\u0430\u043a\u0438\u0439: \u043c\u0456\u043d\u044f\u0454\u043c\u043e \u043f\u043e\u0440\u0442 \u0456 \u043f\u043e\u0442\u0456\u043c \u043f\u0440\u043e\u043a\u0441\u0443\u0454\u043c\u043e. \u0410\u043b\u0435 \u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443 <strong>pritunl <\/strong>\u0446\u0435 \u043d\u0435 \u0441\u043f\u0440\u0430\u0446\u044e\u0454. \u0427\u043e\u043c\u0443? \u0411\u043e <strong>pritunl <\/strong>\u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 2 \u043f\u043e\u0440\u0442\u0438: \u043e\u0434\u0438\u043d \u0434\u043b\u044f \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0443 (<strong>app.server_port<\/strong>) \u0456  \u043e\u0434\u0438\u043d &#8211; <strong>443 <\/strong>\u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0456\u0457, \u0456 \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439 \u043d\u0456\u044f\u043a \u043d\u0435 <a href=\"https:\/\/forum.pritunl.com\/t\/wireguard-refuses-to-work-with-ports-other-than-443\/1475\">\u043f\u043e\u043c\u0456\u043d\u044f\u0442\u0438<\/a>. \u0429\u043e \u0436,  \u0442\u043e\u0434\u0456 \u0441\u043f\u0440\u043e\u0431\u0443\u0454\u043c\u043e \u0441\u0445\u0438\u0442\u0440\u0443\u0432\u0430\u0442\u0438 \u0456 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u0438 \u0432\u0441\u0456 \u0432\u0445\u0456\u0434\u043d\u0456 \u043d\u0430 <strong>443 <\/strong>\u043f\u043e\u0440\u0442 \u0456\u0437-\u0437\u0437\u043e\u0432\u043d\u0456 \u043d\u0430 \u043f\u043e\u0440\u0442 <strong>haproxy<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u0456\u043d\u044f\u0454\u043c\u043e \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># pritunl set app.web_systemd true\napp.web_systemd = true\nSuccessfully updated configuration. This change is stored in the database and has been applied to all hosts in the cluster.\n# systemctl restart pritunl\n# pritunl get app.web_systemd\napp.web_systemd = true\n# pritunl get app.server_port\napp.server_port = 443\n# pritunl set app.server_port 8443\napp.server_port = 8443\nSuccessfully updated configuration. This change is stored in the database and has been applied to all hosts in the cluster.\n# systemctl restart pritunl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043a\u043b\u044e\u0447\u0430\u0454\u043c\u043e \u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0443 \u0434\u043b\u044f <strong>loopback<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># sysctl net.ipv4.conf.eth0.route_localnet=1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0456 \u0432\u043b\u0430\u0441\u043d\u0435 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 \u0432\u0445\u0456\u0434\u043d\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u0456\u0432 \u0437\u0437\u043e\u0432\u043d\u0456 \u043d\u0430 <strong>haproxy<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># iptables -t nat -I PREROUTING -p tcp -i eth0 --dport 443 -j DNAT --to-destination 127.0.0.1:8443<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043e\u043d\u0444\u0456\u0433 <strong>haproxy <\/strong>\u0434\u043b\u044f \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u044c \u043d\u0430 <strong>URL \/login<\/strong> \u0432 <strong>5 requests<\/strong> \u0437\u0430 <strong>10<\/strong> \u0441\u0435\u043a\u0443\u043d\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>frontend https_in\n    bind 127.0.0.1:8443 ssl crt \/etc\/ssl\/pritunl.pem\n    mode http\n\n    # Track clients by IP\n    stick-table type ip size 100k expire 30s store http_req_rate(10s),gpc0\n    tcp-request connection track-sc0 src\n\n    # ACLs\n    acl login_path path -i \/login       # Only apply to \/login\n    acl abuse sc_http_req_rate(0) gt 5   # More than 5 requests in 10s\n    acl banned sc_get_gpc0(0) gt 0       # Currently banned\n\n    # Increment ban counter only for \/login requests that exceed limit\n    http-request sc-inc-gpc0(0) if login_path abuse\n\n    # Deny requests if banned (403) \u2014 only for \/login\n    http-request deny status 403 if login_path banned\n\n    http-response set-header X-Frame-Options DENY\n    http-response set-header X-Content-Type-Options nosniff\n    http-response set-header Referrer-Policy no-referrer\n    http-response set-header Strict-Transport-Security \"max-age=63072000\"\n\n    default_backend pritunl_web\n\nbackend pritunl_web\n    mode http\n    server pritunl 127.0.0.1:443 ssl verify none<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u042f\u043a\u0449\u043e \u0445\u0442\u043e\u0441\u044c \u043d\u0435 \u0437\u043d\u0430\u0454, \u0449\u043e \u0442\u0430\u043a\u0435 pritunl, \u0442\u043e \u0446\u0435 openvpn \u043d\u0430 \u0441\u0442\u0435\u0440\u043e\u0457\u0434\u0430\u0445. \u0412\u0456\u043d \u0434\u043e\u0441\u0438\u0442\u044c \u0437\u0440\u0443\u0447\u043d\u0438\u0439 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0445 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432: \u0434\u043e\u0441\u0442\u0430\u0442\u043d\u044c\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043b\u043e\u0433\u0456\u043d\u0438\u0442\u0438\u0441\u044f \u0456 \u043e\u0434\u0440\u0430\u0437\u0443 \u0444\u043e\u0440\u043c\u0443\u0454\u0442\u044c\u0441\u044f \u0442\u043e\u0431\u0456 \u0433\u043e\u0442\u043e\u0432\u0438\u0439 \u043a\u043e\u043d\u0444\u0456\u0433, \u044f\u043a\u0438\u0439 \u043c\u043e\u0436\u043d\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 \u0445\u043e\u0447 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d, \u0445\u043e\u0447 \u043d\u0430 \u043a\u043e\u043c\u043f\u02bc\u044e\u0442\u0435\u0440. \u0410\u043b\u0435 \u043c\u0456\u043d\u0443\u0441\u0438 \u0442\u0435\u0436 \u0434\u043e\u0441\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u043d\u0456: \u043f\u0440\u0430\u0446\u044e\u0454 \u043b\u0438\u0448\u0435 \u043d\u0430 Linux, \u0431\u043e \u043c\u0430\u0454 \u0436\u043e\u0440\u0441\u0442\u043a\u0456 \u0437\u0430\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0456 \u0432\u0456\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 ip \u0434\u043b\u044f \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u043c\u0435\u0440\u0435\u0436\u0435\u0432\u0438\u043c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10,12],"tags":[],"class_list":["post-6707","post","type-post","status-publish","format-standard","hentry","category-linux","category-others","category-routers"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6707","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=6707"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6707\/revisions"}],"predecessor-version":[{"id":6708,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6707\/revisions\/6708"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}