1

Some programs (like Chromium) does not like username and password in http_proxy environment variable.

For this, it could be useful to use intermediate proxy server, which "converts" authenticated proxy to localhost-only unauthenticated one.

Workaround in form of proxychains 3proxy fails to work.

1 Answer 1

2

I'm using Privoxy for this goal : you can add http auth header on each query, then use https://www.privoxy.org/user-manual/config.html#FORWARD to forward requests to the other proxy.

Then configure Chromium to use local privoxy instance.

For example, I suppose you have the following setup :

http_proxy=http://user:[email protected]:8080

Then, you can setup Privoxy to forward everything to your proxy :

forward / your.proxy.your.domain:8080

And add a custom filter in user.action file, to add http authentication header on each proxied request :

{{alias}}
  proxy-auth = +add-header{Proxy-Authorization: Basic XXXXXXXX}

{ proxy-auth }  
  /

XXXXXX = login:password string base64 encoded

Finally, change http_proxy variable to use privoxy (without login/password, because they're added via filter) :

    http_proxy=http://localhost:8118
1
  • Privoxy itself does not support proxy authentication, but can allow clients to authenticate against Privoxy's parent proxy. -> So how can Privoxy workaround non-support of authentication from http_proxy variable in Chromium?
    – Vi.
    Commented Jun 30, 2016 at 22:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.