1

At my office I was given a pac file in order to connect to our proxy. The pac file is just a bunch of ignore-this-internal-site-and-that-local-site along with a proxy for other connections, let's call it proxyname.office.uni.ac.za:3125 (there is no http:// or something simmilar in the link).

My problem is that the proxy requires a username and password. When set system wide through either the configuration url (using the pac file) or plainly with the raw proxy, Linux Mint proxy settings

some programs play nice (like Chrome and Firefox) and dislays a username/password dialog as soon as they open. Other programs such as apt-get and most basically everything just can't connect. Dropbox at least gives username and password fields in its proxy settings, enter image description here

but still can't function correcly when trying to use the system-wide settings.

I have tried the following without results:

  • setting the system-proxy as username:password@proxyname.office.uni.ac.za:3125
  • setting the system-proxy as
    http://username:password@proxyname.office.uni.ac.za:3125,
    https://username:password@proxyname.office.uni.ac.za:3125,
    ftp://username:password@proxyname.office.uni.ac.za:3125.
  • setting the proxy in the pac file as username:password@proxyname.office.uni.ac.za:3125 wherever proxyname.office.uni.ac.za:3125 is found (and using this pac file system wide).
  • setting the proxyin the pac file as http://username:password@proxyname.office.uni.ac.za:3125 wherever proxyname.office.uni.ac.za:3125 is found (and using this pac file system wide).

Is there any way to set this proxy system wide with a preset username/password? Or is there any program that can maybe setup a new proxy (let's say localhost:1234) proxying the other username/password proxy with it's username/password preset. Or is there something else I can try or have missed?

  • squid (with cache_peers configuration) + iptables (to create transparent proxy) – ssnobody Jan 26 '16 at 23:32
  • Which Linux distro? Can you use this Ubuntu solution, or the proxy-login-automator? – harrymc Jan 27 '16 at 18:13
  • I am using Mint 17.3. I have a bit of a deadline so @ssnobody, I will check squid and iptables probably over the weekend, thanks. – Simon Streicher Jan 28 '16 at 8:50
  • @harrymc, I will try the proxy-login-automation and give feedback. – Simon Streicher Jan 31 '16 at 5:01
  • End up figuring anything out? – ssnobody Mar 26 '16 at 17:53
2

I had same problem, so i created the tool proxy-login-automator

Just following the example, you can create a fake local proxy server which forward requests to the real yet auto inject user/password.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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