LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to configure proxy client in console? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-configure-proxy-client-in-console-159720/)

simonhuan 03-19-2004 03:38 AM

how to configure proxy client in console?
 
when i use apps such as apt-get,ftp,telnet in console, how can i configure them to access internet through a proxy server?

maxut 03-19-2004 05:15 AM

type:
man wget
or
man ftp

read the manuals

robothead 04-13-2004 10:10 PM

RE: using a proxy server
 
I'm trying to figure this one out myself -- and I don't have the man pages for lots of this stuff!!

Anyway, it seems you need to setup proxying of different protocols in different ways (which makes sense, really).

For HTTP proxying, including apt-get, you need to set an environment variable http_proxy to the server address and port of your proxy.

export http_proxy=192.168.0.1:8080

If you have control of the proxy, on the other hand, it might be better to do "Network Address Translation", or NAT. This is called "Internet Connection Sharing" under Windows ... there are plenty of resources on the web concerning this, so I won't go into any kind of detail, except to say that with NAT, all the Internet protocols are usable -- it's as if you've a direct connection to the Internet.

Anyway, try the http_proxy thing.

Oh, and if it's MS Proxy that you're trying to get through, well, that's something else altogether ... you need a method of authentication. I seem to remember a cool python-based "local" proxy server that would then handball through an MS Proxy.

Google and you shall find.


All times are GMT -5. The time now is 12:27 PM.