1

I have to perform update on hasnoinet server.

I created the ssh tunnel on hasnoinet box and ensured that it works:

ssh -D 1080 hasinternet
curl --socks5-hostname localhost:1080 google.com

I defined http proxy in 2 ways:

export http_proxy=http://localhost:1080/
export HTTP_PROXY=http://localhost:1080/
export FTP_PROXY=http://localhost:1080/

or

export http_proxy=socks5h://localhost:1080
export HTTPS_PROXY=socks5h://localhost:1080
export ALL_PROXY=socks5h://localhost:1080

I unable to use curl google.com and as result yum update fails. I am using EL6 Redhat.

Bart
  • 2,221

0 Answers0