connect-tunnel sets up tunneled connections to external hosts by
redirecting connections to local ports towards thoses hosts/ports through a
connect-tunnel makes use of the HTTP "CONNECT" method to ask
the proxy to create a tunnel to an outside server. Be aware that some proxies
are set up to deny outside tunnels (either to ports other than 443 or outside
a specified set of outside hosts).
The program follows the usual GNU command line syntax, with long options
starting with two dashes.
Proxy authentication information.
Please note that all the authentication schemes supported by
"LWP::UserAgent" are supported (we use an
"LWP::UserAgent" internally to contact the proxy).
The port to which one can connect to issue control commands
See "CONTROL CONNECTIONS" for more details about the available
Create the tunnels so that they will only listen on
"localhost". Thus, only connections originating from the machine
that runs connect-tunnel will be accepted.
That was the default behaviour in connect-tunnel version 0.02.
The proxy is required to connect the tunnels. If no port is
given, 8080 is used by default.
See also "ENVIRONMENT VARIABLES".
Specifies that the given port on the local host is
to be forwarded to the given host and hostport on the remote
side. This works by allocating a socket to listen to port on the
local side, and whenever a connection is made to this port,
connect-tunnel forwards it to the proxy (with the credentials, if
required), which in turn forwards it to the final destination.
Note that this does not imply the use of any cryptographic system (SSL or
any other). This is a simple TCP redirection. The security if any, is the
one provided by the protocol used to connect to the destination through
On Unix systems, only root can forward privileged ports.