Proxy server

Hi everyone,

I need to configure Linux to access a proxy server (so I can use things like Telnet and FTP from the command line, like in the good old days). Presumably, this is done in a config file in /etc, but which file, what syntax etc.?

I've managed to get Netscape to connect through a proxy server, but I can't find the right file to edit to get it to work at the command line.

Many thanks

DanF
FaffManAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

budi_aCommented:
using proxy for telnet under command line ? ..
are your proxy is socks based ? ...

i think , for ftp / httpd , it could .
eg : lynx set environment variable :
set http_proxy=http://your_proxy:the_port/
set ftp_proxy=http://your_proxy:the_port/  

or for telnet , smtp , nntp , pop , quake , irc , dll . perhaps you're better using linux builtin
masquaraded capabilities.

regards

Budi Aditya


0
ColinMcKinnonCommented:
Except in very particular circumstances (which I suspect do not apply here) the use of a proxy can not be specified using the operating system; IP was intended for connecting a client to a server. In plain english, you need to setup _each_ client you want to use to use a proxy - assuming that they have the functionality compiled in.

Many clients have the code built in to deal with proxies (usually for SOCKs). The standard version of telnet which ships with most distros does not. Neither does ftp, but you should be able to configure Netscape for anonymous ftp via a proxy. Alternatively try wget (see man wget) or curl for ftp.

I beleive it is possible to compile any network software against a SOCKs library (instead of the standard network sockets library) which would have its config file somewhere. Where that config file is depends on how you installed SOCKs. You'll have to get hold of the source code for each application you want to use in this way first, then, at a bare minimum, edit the Makefile to point to the replacement library.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.