Discussion:
ubuntu and a proxy
Robin Paulson
2010-10-27 23:32:19 UTC
Permalink
i have an ubuntu laptop, which i occasionally take to work

i would like to access the internet with this laptop, but am wrestling
with the proxy.

i've created a new zone under 'network proxy' in the system
preferences, with the details of the proxy address and an appropriate
user name and password, but it fails to connect to any external sites

can anyone offer a solution what might be happening, or places i
should look so i can find out myself?

is the proxy likely to conform to some weird proprietary spec, that
means only windows machines can get through?

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
David Roberts
2010-10-28 00:58:39 UTC
Permalink
Doubt that it's windows specific, try testing it out from command line:

export http_proxy='http://192.168.1.254:8080/'

Then doing a wget should work.

If you need to use a password use:

export http_proxy='http://user:***@192.168.1.254:8080/'

To clear it:

export http_proxy=''

That will troubleshoot whether the proxy is reachable/working for you.

-----Original Message-----
From: nzlug-***@linux.net.nz [mailto:nzlug-***@linux.net.nz] On
Behalf Of Robin Paulson
Sent: Thursday, 28 October 2010 12:32 p.m.
To: NZLUG Mailing List
Subject: [nzlug] ubuntu and a proxy

i have an ubuntu laptop, which i occasionally take to work

i would like to access the internet with this laptop, but am wrestling
with the proxy.

i've created a new zone under 'network proxy' in the system
preferences, with the details of the proxy address and an appropriate
user name and password, but it fails to connect to any external sites

can anyone offer a solution what might be happening, or places i
should look so i can find out myself?

is the proxy likely to conform to some weird proprietary spec, that
means only windows machines can get through?

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
#####################################################################################
Important: This electronic message and attachments (if any) are confidential
and may be legally privileged. If you are not the intended recipient do not
copy, disclose or use the contents in any way. Please let us know by return
e-mail immediately and then destroy this message.
#####################################################################################

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Mark Foster
2010-10-28 01:22:03 UTC
Permalink
At the risk of asking the obvious, isn't a web proxy a configuration item in
your web browser... ? What browser are you using, have you set the proxy in
your browser and does it work once set?

Most proxies - even MS ones - will allow basic HTTP through if you provide
session level auth (it should pop up with a dialogue.?)



-----Original Message-----
From: nzlug-***@linux.net.nz [mailto:nzlug-***@linux.net.nz] On
Behalf Of David Roberts
Sent: Thursday, 28 October 2010 1:59 p.m.
To: NZLUG Mailing List
Subject: RE: [nzlug] ubuntu and a proxy

Doubt that it's windows specific, try testing it out from command line:

export http_proxy='http://192.168.1.254:8080/'

Then doing a wget should work.

If you need to use a password use:

export http_proxy='http://user:***@192.168.1.254:8080/'

To clear it:

export http_proxy=''

That will troubleshoot whether the proxy is reachable/working for you.

-----Original Message-----
From: nzlug-***@linux.net.nz [mailto:nzlug-***@linux.net.nz] On
Behalf Of Robin Paulson
Sent: Thursday, 28 October 2010 12:32 p.m.
To: NZLUG Mailing List
Subject: [nzlug] ubuntu and a proxy

i have an ubuntu laptop, which i occasionally take to work

i would like to access the internet with this laptop, but am wrestling with
the proxy.

i've created a new zone under 'network proxy' in the system preferences,
with the details of the proxy address and an appropriate user name and
password, but it fails to connect to any external sites

can anyone offer a solution what might be happening, or places i should look
so i can find out myself?

is the proxy likely to conform to some weird proprietary spec, that means
only windows machines can get through?

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
############################################################################
#########
Important: This electronic message and attachments (if any) are confidential
and may be legally privileged. If you are not the intended recipient do not
copy, disclose or use the contents in any way. Please let us know by return
e-mail immediately and then destroy this message.
############################################################################
#########

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug


_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Robin Paulson
2010-10-28 02:40:15 UTC
Permalink
Post by Mark Foster
At the risk of asking the obvious, isn't a web proxy a configuration item in
your web browser... ? What browser are you using, have you set the proxy in
your browser and does it work once set?
no, ask away.

i wanted to use the 'network proxy' option rather than the firefox
proxy setup, as it gives me system-wide access - so i can run apt-get,
unison, etc.

but i will give that a try, in the interests of troubleshooting.

i'll try the options listed by everyone and get back with the results

cheers

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Peter Lambrechtsen
2010-10-28 02:44:52 UTC
Permalink
I have found the Ubuntu Network Proxy settings only does half of things.

It doesn't set the shell for wget
It doesn't work from the command like apt-get, but synaptic Package manager
has a separate Network Proxy setting in there you need to set within the
app, and doesn't inherit the system wide setting.

Update Manager does work with the network wide proxy settings, but once it's
set it doesn't seem to work un-setting it.
Firefox sets and unsets depending on what you setup, and if you specify in
FF to use system wide setting.

YMMV
Post by Robin Paulson
Post by Mark Foster
At the risk of asking the obvious, isn't a web proxy a configuration item
in
Post by Mark Foster
your web browser... ? What browser are you using, have you set the proxy
in
Post by Mark Foster
your browser and does it work once set?
no, ask away.
i wanted to use the 'network proxy' option rather than the firefox
proxy setup, as it gives me system-wide access - so i can run apt-get,
unison, etc.
but i will give that a try, in the interests of troubleshooting.
i'll try the options listed by everyone and get back with the results
cheers
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

Aidan Gauland
2010-10-28 02:09:44 UTC
Permalink
Post by David Roberts
export http_proxy=''
Actually, you should instead run...

unset http_proxy

...in this case, as you don't want to variable around at all anymore.
If it's set, but set to nothing, this could cause problems for
subprocesses (since it's 'export'-ed). (I swear I'm not just picking
nits here.)

--Aidan
David Roberts
2010-10-28 02:25:25 UTC
Permalink
No, not picking nits at all, you are correct. I was just assuming (first
step in failure) that the session would be logged out at some stage.

-----Original Message-----
From: nzlug-***@linux.net.nz [mailto:nzlug-***@linux.net.nz] On
Behalf Of Aidan Gauland
Sent: Thursday, 28 October 2010 3:10 p.m.
To: NZLUG Mailing List
Subject: Re: [nzlug] ubuntu and a proxy
Post by David Roberts
export http_proxy=''
Actually, you should instead run...

unset http_proxy

...in this case, as you don't want to variable around at all anymore.
If it's set, but set to nothing, this could cause problems for
subprocesses (since it's 'export'-ed). (I swear I'm not just picking
nits here.)

--Aidan
#####################################################################################
Important: This electronic message and attachments (if any) are confidential
and may be legally privileged. If you are not the intended recipient do not
copy, disclose or use the contents in any way. Please let us know by return
e-mail immediately and then destroy this message.
#####################################################################################

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Continue reading on narkive:
Loading...