Could someone tell me how to configure proxy setting in bash. I found some links that mention the http_proxy variable to be set, but over there the proxy is of the format http://proxy.abc.com:80
now the proxy i'm using dosn't have the http:// in the begining :(
Anand
आनंद (Anand M R) wrote:
Could someone tell me how to configure proxy setting in bash. I found some links that mention the http_proxy variable to be set, but over there the proxy is of the format http://proxy.abc.com:80
now the proxy i'm using dosn't have the http:// in the begining :(
just append 'http://' with the proxy IP address and port.
# http_proxy=http://<proxy IP or hostname>:<port> # export http_proxy
Hi!
Vivek J. Patankar said the following, On Thursday 29 March 2007 08:38 AM:
आनंद (Anand M R) wrote:
Could someone tell me how to configure proxy setting in bash. I found some links that mention the http_proxy variable to be set, but over there the proxy is of the format http://proxy.abc.com:80
now the proxy i'm using dosn't have the http:// in the begining :(
just append 'http://' with the proxy IP address and port.
# http_proxy=http://<proxy IP or hostname>:<port> # export http_proxy
Below is the perfect proxy setting in bash...
#export http_proxy=http://username:password@<IP of Proxy Server>:<port>
If proxy authentication is not ther then below would be enough...
#export http_proxy=http://<IP of Proxy Server>:<port>
just append 'http://' with the proxy IP address and port.
# http_proxy=http://<proxy IP or hostname>:<port> # export http_proxy
Below is the perfect proxy setting in bash...
#export http_proxy=http://username:password@<IP of Proxy Server>:<port>
If proxy authentication is not ther then below would be enough...
#export http_proxy=http://<IP of Proxy Server>:<port>
--
I tried the above but now when i try to ping www.google.com ping: unknown host www.google.com is what i get.
आनंद (Anand M R) wrote:
I tried the above but now when i try to ping www.google.com ping: unknown host www.google.com is what i get.
You won't be able to ping. Try downloading a file using wget or browsing using lynx.
On Thu, 29 Mar 2007 21:20:02 +0530, "____________ (Anand M R)" libld.so@gmail.com wrote:
I tried the above but now when i try to ping www.google.com ping: unknown host www.google.com is what i get.
The problem lies in the DNS.
When you set the proxy, http requests go through the proxy.. including the url.. so if the proxy server machine has a DNS resolver IP configured, the proxy will be able to resolve the IP and thus will be able to get the data.
But when you ping from your machine, it does not know how to reach the pinged machine as you niether have it in /etc/hosts nor have you configured a DNS resolver IP on your machine.
So you have to configure a DNS resolver IP on your machine if you want to be able to ping.