1830178 Members
2294 Online
109999 Solutions
New Discussion

setup proxy client

 
SOLVED
Go to solution
peterchu
Super Advisor

setup proxy client

I want to connect the internet through our proxy server , I usually config it on the xwindows , how can I config on the shell ? I use RH 8 linux . thx
9 REPLIES 9
Marco_113
Frequent Advisor

Re: setup proxy client

you have to edit /etc/squid/squid.conf if your proxy server is squid
peterchu
Super Advisor

Re: setup proxy client

thx reply , we use windows proxy server not linux proxy server , I can config it on x windows previously but I didn't install it on my linux , could suggest what can I do ? thx
Marco_113
Frequent Advisor

Re: setup proxy client

can't you set your browser linux?
peterchu
Super Advisor

Re: setup proxy client

thx reply , i didn't have browser in my RH , how to set it on the shell ? thx
xyko_1
Esteemed Contributor
Solution

Re: setup proxy client

Hi peterchu,

what do you want to do from your linux machine via your proxy server ? ftp ? http ?

using what kind of utility ? wget ?

regards,
xyko
peterchu
Super Advisor

Re: setup proxy client

thx reply , I want to use the text-internet on my RH machine . thx
xyko_1
Esteemed Contributor

Re: setup proxy client

Hi peterchu,

try to put on the bashrc of the user that will access internet via proxy the following commands :
export http_proxy=http://proxy.domain.com:xxxx
export https_proxy=http://proxy.domain.com:xxxx

where proxy.domain.com is your proxy server and xxxx is the port that the proxy server is listen to.

this procedure is ok if you are using lynx as your text navigator.

regards,
xyko
peterchu
Super Advisor

Re: setup proxy client

thx reply , I also want to use the apt-get to connect internet , I think I need my server to connect to internet so I ask how to setup the proxy on my RH machine , could suggest what can I do ? thx.
xyko_1
Esteemed Contributor

Re: setup proxy client

Hi peterchu,

from a google search :

* Q3. How do you use apt-get behind a proxy?

export http_proxy=http://YOUR_PROXY:8080/

for ftp use ftp_proxy instead, for the rest the syntax is the same.

or:

export http_proxy=http://user:password@YOUR_PROXY:8080/

or (to get through a Microsoft ISA proxy server):

export http_proxy=http://domainname\\user:password@YOUR_PROXY:8080/

or alternatively, to use it each time you run apt-get, add the following to your /etc/apt/apt.conf file:

Acquire::http::Proxy "http://YOUR_PROXY:8080/";

I suggest to use the last one, i.e., customizing apt.conf file.

From http://www.die.net/doc/linux/man/man5/apt.conf.5.html
http

HTTP
URIs; http::Proxy is the default http proxy to use. It is in the standard form of http://[[user][:pass]@]host[:port]/. Per host proxies can also be specified by using the form http::Proxy:: with the special keyword DIRECT meaning to use no proxies. The http_proxy environment variable will override all settings.

regards,
xyko