EnglishFrenchSpanish

OnWorks favicon

connect-tunnelp - Online in the Cloud

Run connect-tunnelp in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command connect-tunnelp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


connect-tunnel - Create CONNECT tunnels through HTTP proxies

SYNOPSIS


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

DESCRIPTION


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).

OPTIONS


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.

See also "ENVIRONMENT VARIABLES".

-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 can setup tunnels to multiple destinations, by using the --tunnel option
several times.

-U, --user-agent string
Specify User-Agent value to send in HTTP requests. The default is to send
"connect-tunnel/version".

-v, --verbose
Verbose output.

This option can be used several times for more verbose output.

EXAMPLES


To connect to a SSH server running on "ssh.example.com", on port 443, through the proxy
"proxy.company.com", running on port 8080, use the following command:

connect-tunnel -P proxy.company.com:8080 -T 22:ssh.example.com:443

And now point your favorite ssh client to the machine running connect-tunnel.

You can also emulate a "standard" user-agent:

connect-tunnel -U "Mozilla/4.03 [en] (X11; I; Linux 2.1.89 i586)"
-P proxy.company.com:8080 -T 22:ssh.example.com:443

connect-tunnel can easily use your proxy credentials to connect outside:

connect-tunnel -U "Mozilla/4.03 [en] (X11; I; Linux 2.1.89 i586)"
-P proxy.company.com:8080 -T 22:ssh.example.com:443
-A book:s3kr3t

But if you don't want anybody else to connect to your tunnels and through the proxy with
your credentials, use the --local-only option:

connect-tunnel -U "Mozilla/4.03 [en] (X11; I; Linux 2.1.89 i586)"
-P proxy.company.com:8080 -T 22:ssh.example.com:443
-A book:s3kr3t -L

If you have several destinations, there is no need to run several instances of connect-
tunnel:

connect-tunnel -U "Mozilla/4.03 [en] (X11; I; Linux 2.1.89 i586)"
-P proxy.company.com:8080 -A book:s3kr3t -L
-T 22:ssh.example.com:443
-T 222:ssh2.example.com:443

But naturally, you will need to correctly set up the ports in your clients.

Mmm, such a long command line would perfectly fit in an alias or a .BAT file. ";-)"

ENVIRONMENT VARIABLES


The environment variable "HTTP_PROXY" can be used to provide a proxy definition.

The environment variable is overriden by the --proxy option, if passed to connect-tunnel.

Use connect-tunnelp online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad