Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am unfortunately behind a network in which a HTTP proxy is present. This proxy requires an authentication through a Java software. Then all the connections have to pass though this HTTP proxy, without authentication.

On the command line, if I export http_proxy=http://192.1x8.0.1:3128 (added "x" to allow posting) everything works. But if I try something as root (e.g. upgrade my Linux box), all the programs are unable to connect to the proxy. Actually the connection just waits until an answer, with any success.

root@ubuntu:~# export  http_proxy="http://192.1x8.0.1:3128"
root@ubuntu:~# wget -d www.google.com
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
URI encoding = `UTF-8'
--2013-04-23 03:09:30--  http://www.google.com/
Connecting to 192.1x8.0.1:3128... Closed fd 3
failed: Connection timed out.

I really cannot understand why it works perfectly with a regular user and indeed it just always fails with the superuser.

It seems that only the user executing the Java authentication can use the network. How can it be possible?

Do you have any hint of suggestion?

I'm using Ubuntu 12.04 amd64.

share|improve this question
    
how about using firefox web browser with gksudo?? –  shouso_boy Apr 23 '13 at 4:38
    
Unfortunately it doesn't work, because the authentication is made through NuFW, that itself need to authenticate each packet, and it doesn't work if I'm root. –  Alberto May 16 '13 at 7:26
    
may be you must add directly your proxy on wgetrc –  shouso_boy May 23 '13 at 4:46

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.