Man pages sections > man1 > connect-tunnel

connect-tunnel - Create CONNECT tunnels through HTTP proxies

CONNECT-TUNNEL(1p) User Contributed Perl Documentation CONNECT-TUNNEL(1p)


connect-tunnel - Create CONNECT tunnels through HTTP proxies


connect-tunnel-Lv ] [ -A user:pass ] [  -P  proxy:port ]
-C controlport ] [ -T  port:host:hostport ]


connect-tunnel sets up tunneled connections to external hosts by redirecting connections to local ports towards thoses hosts/ports through a HTTP proxy.
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.
-A, --proxy-authentication user:password
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).
-C, --control-port controlport
The port to which one can connect to issue control commands to connect-tunnel.
See "CONTROL CONNECTIONS" for more details about the available commands.
-L, --local-only
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.
-P, --proxy proxy[:port]
The proxy is required to connect the tunnels. If no port is given, 8080 is used by default.
-T, --tunnel port:host:hostport
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 connect-tunnel.
On Unix systems, only root can forward privileged ports.
Note that you