{"id":1988,"date":"2025-12-20T09:58:33","date_gmt":"2025-12-20T06:58:33","guid":{"rendered":"https:\/\/elvinto.ru\/?p=1988"},"modified":"2025-12-20T09:58:33","modified_gmt":"2025-12-20T06:58:33","slug":"%d0%ba%d0%b0%d0%ba-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%b8%d1%82%d1%8c-3proxy-%d0%bd%d0%b0-ubuntu","status":"publish","type":"post","link":"https:\/\/elvinto.ru\/?p=1988","title":{"rendered":"\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c 3Proxy \u043d\u0430 Ubuntu"},"content":{"rendered":"\n<p>\u0421\u043a\u0430\u0447\u0430\u0442\u044c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/z3APA3A\/3proxy\/archive\/0.9.3.tar.gz<\/code><\/pre>\n\n\n\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar xzf 0.9.3.tar.gz<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install make\n\nsudo apt-get install gcc<\/code><\/pre>\n\n\n\n<p>\u041e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/3proxy-0.9.3\n\nsudo make -f Makefile.Linux<\/code><\/pre>\n\n\n\n<p>\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mkdir \/etc\/3proxy\n\ncd ~\/3proxy-0.9.3\/bin\n\nsudo cp 3proxy \/usr\/bin\/<\/code><\/pre>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo adduser --system --no-create-home --disabled-login --group proxy3\n\nid proxy3<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uid=109(proxy3) gid=115(proxy3) groups=115(proxy3)<\/code><\/pre>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/3proxy\/3proxy.cfg<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043a\u043e\u0434\u043e\u043c (\u0432 setgid \u0438 setuid \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f proxy3\n# (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u0432\u0430\u0448\u0435\u0439 \u041e\u0421 uid \u0438 gid \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f proxy3\n# \u0431\u0443\u0434\u0443\u0442 \u0434\u0440\u0443\u0433\u0438\u043c\u0438. \u0414\u043b\u044f \u0438\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 id proxy3)\nsetgid 115\nsetuid 109\n#\n# \u041f\u0440\u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u0438\u043c\u0435\u043d \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0438\u0445\n# \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432 \/etc\/resolv.conf\nnserver 188.93.16.19\nnserver 188.93.17.19\n#\n# \u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 DNS \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\nnscache 65536\n#\n# \u0420\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u044b\ntimeouts 1 5 30 60 180 1800 15 60\n#\n# \u0415\u0441\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e IP \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u043e\u0442,\n# \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u0445\u043e\u0434\u0438\u0442\u044c \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043c\u0438\u0440.\n# \u0418\u043d\u0430\u0447\u0435 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u043c\n#external \n# \u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c IP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0434\u043e \u0441\u043b\u0443\u0448\u0430\u0442\u044c\n# \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0442\u043e \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u0432\u0441\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435\n#internal \n#\n# \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\u0438\nusers $\/etc\/3proxy\/.proxyauth\n#\n# \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u0430\u043a deamon\ndaemon\n#\n# \u043f\u0443\u0442\u044c \u043a \u043b\u043e\u0433\u0430\u043c \u0438 \u0444\u043e\u0440\u043c\u0430\u0442 \u043b\u043e\u0433\u0430, \u043a \u0438\u043c\u0435\u043d\u0438 \u043b\u043e\u0433\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u0430\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f\nlog \/var\/log\/3proxy\/3proxy.log D\nlogformat \"- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T\"\n#\n# \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0430\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\nauth cache strong\n#\n# \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f http(s) proxy\n# \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 (-a) HTTP-proxy \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 (-p) 3128 \u0438\n# c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 NTLM-\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 (-n)\nproxy -n -p3128 -a<\/code><\/pre>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 3Proxy<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/3proxy\/.proxyauth<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>## addusers in this format:\n#user:CL:password\n##see for documentation: http:\/\/www.3proxy.ru\/howtoe.asp#USERS\nusername:CL:strongpassword\nabc:CL:mysecretpassword<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0440\u043e\u043b\u0435\u0439:<\/p>\n\n\n\n<p>CL &#8211; \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0432\u0438\u0434\u0435<\/p>\n\n\n\n<p>CR &#8211; \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 MD5<\/p>\n\n\n\n<p>NT &#8211; \u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 NT \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435<\/p>\n\n\n\n<p>\u0414\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043f\u0430\u043f\u043a\u0438<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown proxy3:proxy3 -R \/etc\/3proxy\n\nsudo chown proxy3:proxy3 \/usr\/bin\/3proxy\n\nsudo chmod 444 \/etc\/3proxy\/3proxy.cfg\n\nsudo chmod 400 \/etc\/3proxy\/.proxyauth<\/code><\/pre>\n\n\n\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mkdir \/var\/log\/3proxy\n\nsudo chown proxy3:proxy3 \/var\/log\/3proxy<\/code><\/pre>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano\/etc\/systemd\/system\/3proxy.service<\/code><\/pre>\n\n\n\n<p>\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=3proxy Proxy Server\nAfter=network.target\n\n\n&#91;Service]\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&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl daemon-reload<\/code><\/pre>\n\n\n\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable 3proxy<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start 3proxy<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status 3proxy.service<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps -ela | grep \"3proxy\"<\/code><\/pre>\n\n\n\n<p>\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0440\u0442<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo iptables -I INPUT -p tcp -m tcp --dport 3128 -j ACCEPT<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u041e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043a\u043e\u0434\u043e\u043c (\u0432 setgid \u0438 setuid \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f) \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 3Proxy \u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0440\u043e\u043b\u0435\u0439: CL &#8211; \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0432\u0438\u0434\u0435 CR &#8211; \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 MD5 &hellip; <a href=\"https:\/\/elvinto.ru\/?p=1988\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<span class=\"screen-reader-text\"> \u00ab\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c 3Proxy \u043d\u0430 Ubuntu\u00bb<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1988","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/elvinto.ru\/index.php?rest_route=\/wp\/v2\/posts\/1988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elvinto.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elvinto.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elvinto.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elvinto.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1988"}],"version-history":[{"count":1,"href":"https:\/\/elvinto.ru\/index.php?rest_route=\/wp\/v2\/posts\/1988\/revisions"}],"predecessor-version":[{"id":1989,"href":"https:\/\/elvinto.ru\/index.php?rest_route=\/wp\/v2\/posts\/1988\/revisions\/1989"}],"wp:attachment":[{"href":"https:\/\/elvinto.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elvinto.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elvinto.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}