haproxy实现socket5代理
global
maxconn 15000 #默认的最大连接数
nbproc 30 #设置10个并发进程,在做debug时建议设置为1
daemon #后台运行
defaults
mode tcp
retries 3
option abortonclose
maxconn 32000
timeout connect 300000ms
timeout client 300000ms
timeout server 300000ms
log 127.0.0.1 local0 err
listen win_ss
bind 0.0.0.0:7891
mode tcp
balance source
#proxyServerStart
server s1 IP1:端口号 check inter 1500 rise 3 fall 3 weight 1
server s2 IP2:端口号 check inter 1500 rise 3 fall 3 weight 1
server s3 IP3:端口号 check inter 1500 rise 3 fall 3 weight 1
server s4 IP4:端口号 check inter 1500 rise 3 fall 3 weight 1
#proxyServerEnd
#监控后台配置 端口11881,用户名和密码都是admin
listen status
bind 0.0.0.0:11881
mode http
stats refresh 30s
stats uri /
stats auth admin:admin
#stats hide-version
stats admin if TRUE
-----------------------------------------------------------
shotting source code
shotting source code