内容纲要
#!/opt/3proxy/bin/3proxy
daemon

pidfile /opt/3proxy/etc/3proxy/3proxy.pid

nscache 65536

nserver 223.5.5.5
nserver 223.6.6.6

timeouts 1 5 30 60 180 1800 15 60

log /opt/3proxy/log/log D
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"

rotate 60

archiver gz /usr/bin/gzip %F

users xxx:CL:xxx

authcache user 60
auth strong cache

deny * * 127.0.0.1

#SOCKS5
auth strong
flush
#maxconn 20

socks -p808 -a -n -i172.17.0.72 -e172.17.0.72
socks -p808 -a -n -i172.17.0.76 -e172.17.0.76

阿里云是 NAT 映射,绑定到网卡私网地址就行了

https://www.dev798.com/wp-content/uploads/2020/04/3proxy-0.8.13.tar.gz

授权方式

users username:CL:password

# https://www.tobtu.com/lmntlm.php NTLM 哈希生成
users username:NT:BF66EC776AD7125795882C742F011681

启动脚本

#!/bin/sh
#
# chkconfig: 2345 20 80
# description: 3proxy tiny proxy server
#              
#
# 
#

case "$1" in
   start)    
       echo Starting 3Proxy

#       /etc/3proxy/bin/3proxy 
       /etc/3proxy/3proxy.cfg

       RETVAL=$?
       echo
       [ $RETVAL ]    
       ;;

   stop)
       echo Stopping 3Proxy
       if [ /etc/3proxy/3proxy.pid ]; then
           /bin/kill `cat /etc/3proxy/3proxy.pid`
       else
               /usr/bin/killall 3proxy
       fi

       RETVAL=$?
       echo
       [ $RETVAL ]
       ;;

   restart|reload)
       echo Reloading 3Proxy
       if [ /etc/3proxy/3proxy.pid ]; then
           /bin/kill -s USR1 `cat /etc/3proxy/3proxy.pid`
       else
               /usr/bin/killall -s USR1 3proxy
       fi
       ;;

   *)
       echo Usage: $0 "{start|stop|restart}"
       exit 1
esac
exit 0 

参考