{"id":789,"date":"2026-09-17T22:30:37","date_gmt":"2026-09-17T19:30:37","guid":{"rendered":"https:\/\/imaxis.ru\/?p=789"},"modified":"2026-09-18T00:06:04","modified_gmt":"2026-09-17T21:06:04","slug":"ustanovka-i-nastroyka-3proxy-na-ubuntu-proksi-socks5-i-anonimnost","status":"publish","type":"post","link":"https:\/\/imaxis.ru\/?p=789","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 3proxy \u043d\u0430 Ubuntu: \u043f\u0440\u043e\u043a\u0441\u0438, SOCKS5 \u0438 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u044c"},"content":{"rendered":"<h1>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 3proxy \u043d\u0430 Ubuntu: \u043f\u0440\u043e\u043a\u0441\u0438, SOCKS5 \u0438 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u044c<\/h1>\n<p>3proxy \u2014 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f Linux. \u041e\u043d \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a HTTP\/HTTPS-\u043f\u0440\u043e\u043a\u0441\u0438, SOCKS5, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0443 \u0438 \u043f\u0430\u0440\u043e\u043b\u044e, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438, \u0433\u0438\u0431\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0441\u0431\u043e\u0440\u043a\u0443 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443, \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e, SOCKS \u0438 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<p>\u0410\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0430 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2026 \u2014 <strong>3proxy 1.0.0<\/strong> (\u0430\u0432\u0433\u0443\u0441\u0442 2026). \u0412 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445 Ubuntu \u043f\u0430\u043a\u0435\u0442\u0430 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0430\u0432\u0438\u043c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<hr \/>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440\u0430<\/h2>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e Ubuntu \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u0444\u0430\u0435\u0440\u0432\u043e\u043b, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u043a\u0441\u0438.<\/p>\n<p><strong>\u0430) iptables:<\/strong><\/p>\n<pre><code class=\"language-bash\">iptables -I INPUT 1 -p tcp --dport 3128 -j ACCEPT\nnetfilter-persistent save\n<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430:<\/p>\n<pre><code class=\"language-bash\">apt-get install iptables-persistent\n<\/code><\/pre>\n<p><strong>\u0431) firewalld:<\/strong><\/p>\n<pre><code class=\"language-bash\">firewall-cmd --permanent --add-port=3128\/tcp\nfirewall-cmd --reload\n<\/code><\/pre>\n<p>\u0433\u0434\u0435 <code>3128<\/code> \u2014 \u043f\u043e\u0440\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0441\u0438-\u0440\u0435\u0436\u0438\u043c\u0430.<\/p>\n<hr \/>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0441\u0431\u043e\u0440\u043a\u0438:<\/p>\n<pre><code class=\"language-bash\">apt-get install build-essential\n<\/code><\/pre>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0441 <a href=\"https:\/\/github.com\/z3APA3A\/3proxy\/releases\">GitHub-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b 3proxy<\/a>:<\/p>\n<pre><code class=\"language-bash\">wget https:\/\/github.com\/z3APA3A\/3proxy\/archive\/refs\/tags\/1.0.0.tar.gz\n<\/code><\/pre>\n<p><strong>\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u2014 \u0432\u0435\u0440\u0441\u0438\u044f 1.0.0.<\/strong><\/p>\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433:<\/p>\n<pre><code class=\"language-bash\">tar xzf 1.0.0.tar.gz\ncd 3proxy-*\n<\/code><\/pre>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\">make -f Makefile.Linux\n<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0435\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0445\u043e\u0434\u0430:<\/p>\n<pre><code class=\"language-bash\">adduser --system --disabled-login --no-create-home --group proxy3\n<\/code><\/pre>\n<p>\u0413\u043e\u0442\u043e\u0432\u0438\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a:<\/p>\n<pre><code class=\"language-bash\">mkdir -p \/var\/log\/3proxy \/etc\/3proxy\ncp bin\/3proxy \/usr\/bin\/\n<\/code><\/pre>\n<p>\u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0430:<\/p>\n<pre><code class=\"language-bash\">chown proxy3:proxy3 -R \/etc\/3proxy \/usr\/bin\/3proxy \/var\/log\/3proxy\n<\/code><\/pre>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c uid \u0438 gid \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0443\u0447\u0451\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438:<\/p>\n<pre><code class=\"language-bash\">id proxy3\n<\/code><\/pre>\n<pre><code>uid=109(proxy3) gid=113(proxy3) groups=113(proxy3)\n<\/code><\/pre>\n<p><strong>\u0433\u0434\u0435 <code>109<\/code> \u2014 uid, <code>113<\/code> \u2014 gid.<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/3proxy\/3proxy.cfg\n<\/code><\/pre>\n<pre><code>setgid 113\nsetuid 109\n\nnserver 77.88.8.8\nnserver 8.8.8.8\nnscache 65536\ntimeouts 1 5 30 60 180 1800 15 60\n\nexternal 111.111.111.111\ninternal 111.111.111.111\n\ndaemon\nlog \/var\/log\/3proxy\/3proxy.log D\nlogformat &quot;- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T&quot;\nrotate 30\n\nauth none\nallow * * * 80-88,8080-8088 HTTP\nallow * * * 443,8443 HTTPS\nproxy -n\n<\/code><\/pre>\n<p><strong>\u0412\u0430\u0436\u043d\u043e:<\/strong> <code>setgid<\/code> \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u0434\u0442\u0438 <strong>\u0434\u043e<\/strong> <code>setuid<\/code>, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430 <code>id proxy3<\/code>. \u041e\u043f\u0446\u0438\u0438 <code>external<\/code> \u0438 <code>internal<\/code> \u2014 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0430\u0434\u0440\u0435\u0441\u0430; \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0435, \u043e\u043d\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\">\/usr\/bin\/3proxy \/etc\/3proxy\/3proxy.cfg\n<\/code><\/pre>\n<hr \/>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430<\/h2>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443: \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Firefox) \u0437\u0430\u0434\u0430\u0451\u043c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u0438 \u043f\u043e\u0440\u0442\u043e\u043c <code>3128<\/code> \u0438 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0430\u0439\u0442\u044b.<\/p>\n<hr \/>\n<h2>\u0410\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0447\u0435\u0440\u0435\u0437 systemd<\/h2>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u044e\u043d\u0438\u0442:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/systemd\/system\/3proxy.service\n<\/code><\/pre>\n<pre><code>[Unit]\nDescription=3proxy Proxy Server\n\n[Service]\nUser=proxy3\nGroup=proxy3\nType=simple\nExecStart=\/usr\/bin\/3proxy \/etc\/3proxy\/3proxy.cfg\nExecStop=\/bin\/kill `\/usr\/bin\/pgrep -u proxy3`\nRemainAfterExit=yes\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\n<\/code><\/pre>\n<pre><code class=\"language-bash\">systemctl daemon-reload\nsystemctl enable 3proxy\nsystemctl start 3proxy\n<\/code><\/pre>\n<hr \/>\n<h2>\u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/h2>\n<pre><code class=\"language-bash\">vi \/etc\/3proxy\/3proxy.cfg\n<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439:<\/p>\n<pre><code>users 3APA3A:CL:3apa3a\nusers imaxis1:CL:password\nusers &quot;imaxis2:CR:$1$UsbY5l$ufEATFfFVL3xZieuMtmqC0&quot;\n<\/code><\/pre>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u0440\u0451\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439:<\/strong> <code>3APA3A<\/code> \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c <code>3apa3a<\/code>, <code>imaxis1<\/code> \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c <code>password<\/code> \u0438 <code>imaxis2<\/code> \u0441 md5-\u0445\u044d\u0448\u0435\u043c \u0438 \u0441\u043e\u043b\u044c\u044e <code>UsbY5l<\/code>. \u0425\u044d\u0448 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>openssl passwd -1 -salt UsbY5l<\/code>. \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <code>$<\/code> \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0438\u0448\u0435\u043c \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445.<\/p>\n<p>\u0422\u0438\u043f\u044b \u043f\u0430\u0440\u043e\u043b\u0435\u0439:<\/p>\n<ul>\n<li><code>CL<\/code> \u2014 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439;<\/li>\n<li><code>CR<\/code> \u2014 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 (md5);<\/li>\n<li><code>NT<\/code> \u2014 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 NT.<\/li>\n<\/ul>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043b\u043e\u0433\u0438\u043d\u0430, \u043c\u0435\u043d\u044f\u044f <code>auth<\/code> \u043d\u0430 <code>strong<\/code>:<\/p>\n<pre><code>auth strong\n<\/code><\/pre>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b <code>auth<\/code>:<\/p>\n<ul>\n<li><code>none<\/code> \u2014 \u0431\u0435\u0437 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438;<\/li>\n<li><code>iponly<\/code> \u2014 \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430;<\/li>\n<li><code>nbname<\/code> \u2014 \u043f\u043e NetBIOS-\u0438\u043c\u0435\u043d\u0438;<\/li>\n<li><code>strong<\/code> \u2014 \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0443 \u0438 \u043f\u0430\u0440\u043e\u043b\u044e.<\/li>\n<\/ul>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0434\u0432\u043e\u0439\u043d\u0430\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>auth nbname strong<\/code>.<\/p>\n<pre><code class=\"language-bash\">systemctl restart 3proxy\n<\/code><\/pre>\n<hr \/>\n<h2>SOCKS5<\/h2>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/3proxy\/3proxy.cfg\n<\/code><\/pre>\n<pre><code>socks\n<\/code><\/pre>\n<p><strong>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 SOCKS \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 <code>1080<\/code>.<\/strong> \u041b\u0438\u0431\u043e \u0441 \u044f\u0432\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<pre><code>socks -p8083 -i192.168.1.23 -e111.111.111.111\n<\/code><\/pre>\n<p><strong>\u041f\u043e\u0440\u0442 <code>8083<\/code>, \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <code>192.168.1.23<\/code>, \u0432\u043d\u0435\u0448\u043d\u0438\u0439 <code>111.111.111.111<\/code>.<\/strong><\/p>\n<pre><code class=\"language-bash\">systemctl restart 3proxy\n<\/code><\/pre>\n<hr \/>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0438<\/h2>\n<ol>\n<li><strong>\u041c\u0435\u043d\u044f\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u044b<\/strong> (3128 \u0438 1080 \u0445\u043e\u0440\u043e\u0448\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b):<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">vi \/etc\/3proxy\/3proxy.cfg\n<\/code><\/pre>\n<pre><code>socks -p1088\nproxy -n -p3111\n<\/code><\/pre>\n<pre><code class=\"language-bash\">systemctl restart 3proxy\n<\/code><\/pre>\n<ol>\n<li><strong>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432\u0440\u0435\u043c\u044f<\/strong> \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0437\u0430\u0434\u0430\u0451\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441:<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">timedatectl set-timezone Europe\/Berlin\n<\/code><\/pre>\n<p>\u041d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043b\u0438\u0431\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043b\u0438\u0431\u043e \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/change-timezone-time-shift\/\">Change Timezone \u0434\u043b\u044f Firefox<\/a>).<\/p>\n<ol>\n<li><strong>\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c ICMP<\/strong> \u2014 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 ping \u043c\u043e\u0436\u043d\u043e \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0441\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430:<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">iptables -I INPUT -p icmp --icmp-type 8 -j REJECT\nnetfilter-persistent save\n<\/code><\/pre>\n<ol>\n<li><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c<\/strong> \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/2ip.io\/ru\/privacy\/\">2ip.io\/ru\/privacy<\/a> \u2014 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u00ab\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u00bb.<\/li>\n<\/ol>\n<hr \/>\n<h2>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/h2>\n<h3>\u041f\u043e\u0440\u0442\u044b \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b<\/h3>\n<p>\u0420\u0430\u0437\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0440\u0442\u0430\u0445:<\/p>\n<pre><code>proxy -n -a -p3128 -i192.168.0.23 -e222.222.222.222\nproxy -n -a -p8080 -i192.168.1.23 -e111.111.111.111\n<\/code><\/pre>\n<p><strong>3proxy \u0441\u043b\u0443\u0448\u0430\u0435\u0442 <code>3128<\/code> \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u043c <code>192.168.0.23<\/code> \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 <code>222.222.222.222<\/code>, \u0430 \u0442\u0430\u043a\u0436\u0435 <code>8080<\/code> \u043d\u0430 <code>192.168.1.23<\/code> \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c \u0447\u0435\u0440\u0435\u0437 <code>111.111.111.111<\/code>.<\/strong> \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u0440\u0442\u044b \u0432 \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440\u0435.<\/p>\n<pre><code class=\"language-bash\">systemctl restart 3proxy\n<\/code><\/pre>\n<h3>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438<\/h3>\n<pre><code>bandlimin 1000000 user1,user3\nbandlimin 5000000 user2,user4\n<\/code><\/pre>\n<p><strong><code>user1<\/code> \u0438 <code>user3<\/code> \u2014 1 \u041c\u0431\u0438\u0442\/\u0441; <code>user2<\/code> \u0438 <code>user4<\/code> \u2014 5 \u041c\u0431\u0438\u0442\/\u0441.<\/strong><\/p>\n<pre><code class=\"language-bash\">systemctl restart 3proxy\n<\/code><\/pre>\n<h3>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/h3>\n<p>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043f\u0440\u0430\u0432\u0438\u043b:<\/p>\n<pre><code>allow &lt;userlist&gt; &lt;sourcelist&gt; &lt;targetlist&gt; &lt;targetportlist&gt; &lt;commandlist&gt; [weekdays] [timeperiodslist]\ndeny  ...\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>userlist<\/code> \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e;<\/li>\n<li><code>sourcelist<\/code> \u2014 \u0441\u0435\u0442\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432;<\/li>\n<li><code>targetlist<\/code> \u2014 \u0441\u0435\u0442\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/li>\n<li><code>targetportlist<\/code> \u2014 \u043f\u043e\u0440\u0442\u044b \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/li>\n<li><code>commandlist<\/code> \u2014 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u043e;<\/li>\n<li><code>weekdays<\/code> \u2014 \u0434\u043d\u0438 \u043d\u0435\u0434\u0435\u043b\u0438 (0\u20136 = \u041f\u043d\u2013\u0412\u0441, 7 = \u0412\u0441);<\/li>\n<li><code>timeperiodslist<\/code> \u2014 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b.<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<pre><code>allow * * * 80 HTTP\nallow * * * 443,8443 HTTPS\nallow * * * 21 FTP\n<\/code><\/pre>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439:<\/p>\n<pre><code>maxconn 700\nproxy -n -a -p3128 -i192.168.0.23 -e222.222.222.222\nproxy -n -a -p8080 -i192.168.1.23 -e111.111.111.111\n<\/code><\/pre>\n<p><strong>700 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0430 <code>3128<\/code> \u0438 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u0434\u043b\u044f <code>8080<\/code>.<\/strong><\/p>\n<pre><code class=\"language-bash\">systemctl restart 3proxy\n<\/code><\/pre>\n<hr \/>\n<h2>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438<\/h2>\n<h3>Unable to set gid. Command: &#8216;setgid&#8217; failed with code 1<\/h3>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong> \u043d\u0430\u0440\u0443\u0448\u0435\u043d \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432 \u2014 <code>setuid<\/code> \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u043d\u044c\u0448\u0435 <code>setgid<\/code>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong> \u0432 <code>\/etc\/3proxy\/3proxy.cfg<\/code> \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0451\u0442 <code>setgid<\/code>, \u0437\u0430\u0442\u0435\u043c <code>setuid<\/code>:<\/p>\n<pre><code>setgid ...\nsetuid ...\n<\/code><\/pre>\n<hr \/>\n<h2>\u0422\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h2>\n<ul>\n<li><strong>\u041f\u043e\u0440\u044f\u0434\u043e\u043a setgid\/setuid<\/strong> \u2014 \u0447\u0430\u0441\u0442\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430; <code>setgid<\/code> \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0435\u0440\u0432\u044b\u043c.<\/li>\n<li><strong>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c proxy3<\/strong> \u2014 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u043e\u0442 root: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u0443\u0447\u0451\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c.<\/li>\n<li><strong>\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u0440\u043e\u043a\u0441\u0438<\/strong> \u2014 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f <code>auth none<\/code> \u0431\u0435\u0437 \u043f\u0440\u0430\u0432\u0438\u043b <code>allow<\/code> \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0442\u0438 \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 <code>strong<\/code>.<\/li>\n<li><strong>\u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u044b<\/strong> \u2014 \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c\u0438 3128\/1080 \u043f\u0440\u0438 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438.<\/li>\n<li><strong>\u0416\u0443\u0440\u043d\u0430\u043b<\/strong> \u2014 \u0441 <code>log<\/code> \u0438 <code>rotate 30<\/code> \u043b\u043e\u0433\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f 30 \u0434\u043d\u0435\u0439; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 <code>\/var\/log\/3proxy\/<\/code>.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u0428\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/h2>\n<pre><code class=\"language-bash\">apt-get install build-essential\nwget https:\/\/github.com\/z3APA3A\/3proxy\/archive\/refs\/tags\/1.0.0.tar.gz\ntar xzf 1.0.0.tar.gz &amp;&amp; cd 3proxy-*\nmake -f Makefile.Linux\nadduser --system --disabled-login --no-create-home --group proxy3\nmkdir -p \/var\/log\/3proxy \/etc\/3proxy &amp;&amp; cp bin\/3proxy \/usr\/bin\/\nchown proxy3:proxy3 -R \/etc\/3proxy \/usr\/bin\/3proxy \/var\/log\/3proxy\nid proxy3   # uid\/gid -&gt; \u0432 3proxy.cfg (setgid, \u0437\u0430\u0442\u0435\u043c setuid)\nsystemctl enable 3proxy --now\n<\/code><\/pre>\n<p><em>\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430: Ubuntu 22.04\/24.04\/26.04 + 3proxy 1.0.0.<\/em><br \/>\n<em>\u0414\u0430\u0442\u0430: \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2026.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 3proxy \u043d\u0430 Ubuntu: \u043f\u0440\u043e\u043a\u0441\u0438, SOCKS5 \u0438 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u044c<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-789","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":10,"_links":{"self":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=789"}],"version-history":[{"count":3,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/789\/revisions"}],"predecessor-version":[{"id":849,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/789\/revisions\/849"}],"wp:attachment":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}