Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I believe that I am connected to a proxy over a vpn connection. Where can I find which proxy I am connected to and ports

share|improve this question

You may use curl to investigate it:

 curl -v >/dev/null

In the output you will see:

X-Cache: MISS from
X-Cache-Lookup: MISS from
Via: 1.0 (squid)

Also you may investigate the configuration of your web browser, if the proxy configuration is part wise automated, but the shell environment stuff used by curl is forgotten.

To get an idea how this automatic configuration may be done, have a look here:
Set web proxy using pac-file-url

share|improve this answer
Ok, thanks this is a sub question to another about failed apt-get proxy Auth failures. – Ray Mar 12 '13 at 21:06
It's a clear answer which I will try tonight and if it doesn't work I'll repost. – Ray Mar 12 '13 at 21:49
Thanks again Dirk – Ray Mar 12 '13 at 21:50
@Ray If your problem is resolved, don't forget to close this question. – H.-Dirk Schmitt Mar 13 '13 at 12:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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