3

I have an application that is running on a server behind a proxy. The proxy needs authentication, but my application is not able to supply proxy authentication. I'm now looking for a leightweight proxy that I can run on localhost, and forwards all http requests via the http-proxy. My localhost proxy must supply the authentication for the remote proxy.

I tried privoxy but it doesnt support authentication against the parent-proxy. Squid seems to be overkill. Any suggestions?

Thomas M.
  • 1,496
  • 1
  • 10
  • 21
  • nginx can be used as a great lightweight proxy that should be able to handle authentication – Geoff Genz Feb 19 '14 at 16:41
  • what kind of auth the proxy have? – emcas88 Feb 19 '14 at 16:51
  • I'm not entirely sure, what kind of different proxy-authentications there are. I simply pass a user/password combo like this: export http_proxy="http://username:password@proxy:8080" – Thomas M. Feb 19 '14 at 16:59
  • @ThomasM. if the proxy have NTLM auth then you must look for a third partie program to authenticate, like CNTLM. This kind of auth is very problematic. You are using Linux ? – emcas88 Feb 19 '14 at 17:06
  • How can I check which kind of authentication the proxy has? I tried cntlm, but it didn't work - I assumed, because the proxy is not using NTLM. – Thomas M. Feb 20 '14 at 11:07

1 Answers1

0

You can use squid, see https://stackoverflow.com/a/19219509/2015768

http_access allow all http_port 3128 access_log none cache_log none never_direct allow all cache_peer proxy.acme.corp parent 8080 0 no-query default login=username:password

Community
  • 1
  • 1
Frederick Nord
  • 1,246
  • 1
  • 14
  • 31
  • Squid is heavyweight caching proxy, and TS exlpicitly mentioioned it. – SergeAx Dec 04 '18 at 17:56
  • What is "heavy" and what is "light" depends on the eye of the beholder. Given that the OP mentioned privoxy, squid might still be considered as "light". The proposed solution fulfills the "can authenticate against the parent proxy" requirement which seems what OP wanted to achieve. – Frederick Nord Dec 08 '18 at 05:22