CentOS 6.5 proxy bypass/no_proxy not working

Posted by Naruto Uzumaki on Server Fault See other posts from Server Fault or by Naruto Uzumaki
Published on 2014-08-23T13:32:13Z Indexed on 2014/08/23 16:24 UTC
Read the original article Hit count: 430

I am running CentOS 6.5 on my desktop. I've set the Network Proxy using the network proxy application provided under Preferences. I've also set the following exceptions: localhost,127.0.0.0/8,172.16.0.0/12,192.168.0.0./16

But whenever I am using wget (I'm testing the proxy settings using using wget) then wget tries to connect to the proxy for private addresses, but wget localhost works fine and doesn't use the proxy.

I also removed all the proxy settings and set the proxy in the shell:

export http_proxy="<proxy_url>:<port>"
export https_proxy="<proxy_url>:<port>"
export no_proxy="localhost,127.0.0.0/8,172.16.0.0/12,192.168.0.0./16"

It work when I use the command wget <external_url> or wget localhost but fails when I use the command wget <private address from the $no_proxy variable>.

I also tried setting the variables in Ubuntu 14.04 also and facing the same issue.

Regards,

© Server Fault or respective owner

Related posts about linux

Related posts about bash