[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I am new to proxy



I am responding to myself...
I managed to fix the problem with cntlm. It turns out that localhost is resolved first into ::1 and then in 127.0.01. Apt will not cope with the first error. Wget, on the other hand will just continue.
I replaced localhost with 127.0.0.1 in /etc/cntlm.conf and now it seems to work also for apt.
Next step try to ssh out via proxy...

Kind regards,
 Ionel

În mie., 12 sept. 2018 la 13:22, Ionel Mugurel Ciobîcă <i.m.ciobica@gmail.com> a scris:
Hi,

I change my work place and I can have a Linux computer at work. The network at work is with proxy, so after reading about it I was able to make apt from the netinstall disk to talk with proxy. I have now a working Debian stable running. The proxy settings were in fact a *.pac file, which I downloaded as text and read the content. The proxy:8080 did not work so I use now username:password@proxy:8080. I have my username and password in clear in the following files: /etc/profile, /etc/apt/apt.conf and /etc/wgetrc.
Is this the proper way? Those files have 644 permissions. Is there a way to put the username/password combo in a file, say /etc/credentials (permissions 400 or 600) and somehow export those for the proxy?
I start to read about cntlm that uses hash password, but somehow this do not work for me. I get "Credentials rejected" and "Wrong credentials, invalid URL or proxy doesn't support NTLM nor BASIC."
What solutions are there to avoid to store the username/password so many times in unsafe config files?

Thank you for any hint.

 Ionel

P.S. I use Debian since 1997.

Reply to: