user2298995
user2298995

Reputation: 2163

Configure proxy for certain port on Linux

The question might not what you thought it was by the title. I have Linux machine running a Centos distribution. I have a certain script which sends HTTP requests but can not be configured to use proxies due to certain reasons. What I'm looking for, is to configure a proxy connection only for the HTTP requests (port 80) while other connections such as SSH will work with the Server IP.

Can this be done?

Thanks.

Upvotes: 0

Views: 1328

Answers (1)

Bertrand Cebador
Bertrand Cebador

Reputation: 86

You can set the variable :

http_proxy="http://PROXY:proxyport"   yourcommand

or export this and do what you need :

export http_proxy="http://PROXY_IP:proxyport"
yum update

Upvotes: 1

Related Questions