• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

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
0
FaffMan
Asked:
FaffMan
1 Solution
 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now