Webhosting Blog

How To Use Proxy Server To Access Internet via Shell Prompt ?


If you are accessing the text based internet in linux especially when you are accessing the application or the web configured behind proxy server(squid specifically), you might not be able to get the complete functionality / application working.

For enabling the access you will have to enable the environment variable called http_proxy on your server / machine. This variable enables the access to the application or the text based sessions via the proxy server. You will just need to know the hostname (or IP address) of the proxy server and the proxy port number of the proxy server.

You can enable the variable by using the  following command to set proxy server.

[root@server]# export http_proxy=http://server-ip:port/

If you are using an IP address for enabling the variable you can use the following command:

[root@server]# export http_proxy=http://10.0.0.1:3128/

If you are using hostname for the proxy server you can use the following command:
[root@server]# export http_proxy=http://proxy_server_domainname:3128/

You are now all set to go!

Advertisements

2 responses

  1. Pingback: Configure Yahoo Messenger to Hide IP by Proxy Connectivity Online « Proxy Rental

  2. Great post, it was very easy to found this. Your post has showed in top 10 google page. Thanks!

    August 16, 2013 at 2:01 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s