Hello, so I am running a 3proxy server and want to balance all the incoming traffic through haproxy.
Basically the configuration below does the job perfectly.
Only issue i’v got is that every request every person sends gets balanced by round robin through different outgoing IP.
That what it’s supposed to do you dum dum!
The question is , how to make the user stay on the same outgoing IP for X minuttes, or just forever?
Note - I need to access HTTPS pages
P.s I am referring to squid port 4100/4102 as outgoing IPs.
global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy group haproxy daemon defaults log global mode tcp option tcplog option dontlognull timeout connect 5000 timeout client 50000 timeout server 50000 frontend squid bind *:8000 default_backend squid_pool backend squid_pool balance roundrobin # balance first mode tcp # appsession fblo_ len 100 timeout 1h request-learn prefix server squid1 xxx.xxx.xxx.xxx:4100 check server squid2 xxx.xxx.xxx.xxx:4101 check