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

HAProxy with backend requiring Proxy-Authorization suddenly not working anymore

$
0
0

Hello there,
I use HAProxy to load-balance (and to use active and backup servers) between multiple HTTP proxies (all of which require Proxy-Authorization).
Until yesterday, the following config worked flawlessly:

frontend local
        bind 127.0.0.1:8118
        mode http

        default_backend main

backend main
        balance leastconn
        http-reuse always
        http-request set-header Proxy-Authorization Basic\ <base64 user:pass>
        http-request set-header Proxy-Connection Keep-Alive
        server 1 <ip:port> check fall 3 rise 3 inter 15s   observe layer7 error-limit 10 on-error mark-down

The rest of the config is default from Debian 12 package.

This worked until yesterday but has broken all of a sudden:

HTTP/1.0 407 Proxy Authentication Required
proxy-authenticate: Basic realm="proxy"
< content-type: text/html; charset=utf-8
< 
* CONNECT tunnel failed, response 407

I made sure via curl that all proxy servers are still working, i.e.:

curl -I -v -x <ip:port> --proxy-user <user:pass> http://www.google.com

which returns HTTP/1.1 200 OK.

But HAProxy is just not working. Not anymore. Nothing changed. I am at a loss…
Any advice?

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



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