Welcome to TopTechSteps, Let's learn together

Connectivity issues due to proxy in SUSE Linux

Toggle Post Content

server:~ # curl -Sks https://client.com/pub/test.sh | /bin/bash

curl: (56) Received HTTP code 407 from proxy after CONNECT

Below are the proxy details enabled in server

server:~ # env |grep -i prox

https_proxy=http://proxy:8080

http_proxy=http://proxy:8080


Remove/Disable proxy

Temporary change

server:~ # export https_proxy=""

server:~ # export http_proxy=""

Permanent change

update above entries in /etc/sysconfig/proxy file


server:~ # curl -Sks https://client.com/pub/test.sh | /bin/bash

curl: (56) Received HTTP code 407 from proxy after CONNECT

Test failed 😢

server:~ # cat /root/.curlrc

# Changed by YaST2 module proxy 03/09/20

--proxy "http://proxy:8080"

--noproxy "localhost,127.0.0.1,10.0.0.0/8"


commented "--proxy "http://proxy:8080"" in /root/.curlrc

Restart session to reflect the changes

Now try

server:~ # curl -Sks https://client.com/pub/test.sh | /bin/bash

Working 👍


Other way to disable proxy by adding client.com as an exception in the no proxy entry

no_proxy=localhost,127.0.0.1,10.0.0.0/8,client.com


and also update the no proxy entry in /root/.curlrc

--noproxy "localhost,127.0.0.1,10.0.0.0/8,client.com"

No comments:

Post a Comment

Ad space

Responsive Advertisement

I am here to help you...

View count