Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4715

Bind user to one outgoing IP for X minuttes

$
0
0

@mindeswx wrote:

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.

Thank you!!! :sweat_smile:

  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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>