3proxy是俄罗斯大佬开源的一个代理服务器项目。性能优越,支持linux和windows等。我们经常用它来搭建socks5或http代理服务器。github托管页面:https://github.com/3proxy/3proxy
https://github.com/3proxy/3proxy/releases
windows 版本为预编译的可执行文件,将其解压后修改3proxy.cfg即可运行。需要注册成系统服务可以使用AlwaysUp点击下载将其注册成系统服务
cfgtimeouts 30 30 60 60 180 1800 60 120 log D:\soft\3proxy\%y%m%d.log D logformat "L%d %H:%M %N-%p %C:%c %R:%r %O %I %h %T err:%E" rotate 3 service users socks5admin:CL:bsys1203 auth strong socks -a -p10808
linux中的安装推荐使用rpm和deb等预编译包二进制文件进行安装。
centos
bashyum install https://github.com/3proxy/3proxy/releases/download/0.9.4/3proxy-0.9.4.x86_64.rpm
debian/Ubuntu
bashwget https://github.com/z3APA3A/3proxy/releases/download/0.9.3/3proxy-0.9.3.x86_64.deb; dpkg -i 3proxy-0.9.3.x86_64.deb
linux默认安装3proxy配置文件的路径为/etc/3proxy/3proxy.cfg
nscache 65536 nserver 127.0.0.1 config /etc/3proxy/conf/3proxy.cfg monitor /etc/3proxy/conf/3proxy.cfg log /var/log/3proxy-%y%m%d.log D rotate 60 #counter /count/3proxy.3cf users $/etc/3proxy/conf/passwd include /etc/3proxy/conf/counters include /etc/3proxy/conf/bandlimiters auth strong socks -n -p10808 -a flush allow
systemctl status 3proxy
systemctl restart 3proxy