K
K
ksim_miloff2017-02-28 07:46:00
linux
ksim_miloff, 2017-02-28 07:46:00

How to set up auto proxy in ubuntu?

Hello everyone,
I got a job in a company where Windows is around, I need ubuntu to work on a project, after receiving which I ran into a problem with setting a proxy. Unable to use local .pac file. Of course, I registered the address of our .pac file here:

settings/network/network proxy/Automatic

The Internet does not work, it just asks for my corporate login / password, after which nothing happens. The browser has a white screen.
$ ping ya.ru
PING ya.ru (93.158.134.3) 56(84) bytes of data.

And no information about the delivery / loss of packages.
Understanding, I came to the conclusion that the problem is in /etc/resolv.conf:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.63.0.1
nameserver 127.0.1.1

10.63.0.1 - completely left ip, our admins say so.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
ksim_miloff, 2017-03-01
@ksim_miloff

I figured out the problem is in openvpn, which adds a proxy that interferes with work. The strangest thing is that openvpn is installed on both machines, but on one everything is fine, but on mine there is a problem, incl. the file is not cleared even after "service openvpn stop". Now I deal with VPNom, I sit the problem described in the topic closed.
Thanks to all.

C
CityCat4, 2017-02-28
@CityCat4

Ping, that is, the ICMP packet has nothing to do with the proxy. Look at your leisure - at what level ICMP works and at what proxy level. You are being banned by a corporate firewall, which is most likely also on Windows. And it bans because it does not receive authentication according to the Windows principle. How to give it away to understand - Google is our everything. If there is a linux firewall or a hardware piece of hardware - well, maybe the routing was not registered or something else.

I
ipc_ngs, 2017-03-01
@ipc_ngs

1. Disable all proxies, leave a direct connection, and try downloading the pac file with your browser (or wget or curl is better). If it doesn’t download, look at what the error is (the name is not resolved, the URL is wrong, there is no access, or something else).
2. If the pac-file is downloaded normally, but its registration neither in the system nor in the browser does not help, you can look inside, find the proxy server address, and register it in the settings to check access.
3. The content of resolv.conf is determined by Network Manager (via resolvconf ), look in the settings for network connection settings, apparently someone else's dns server is registered there somewhere. In principle, it can affect the incorrect processing of the url for the pac file and access to the proxy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question