wodSSHTunnel ActiveX Control - Type Property
      
 

Description

Holds the channel type.


Property type

A ForwardTypesEnum enumeration.  


Syntax

object.Type [= value]



The Type Property syntax has these parts:

Part Description
object An expression evaluating to an object of type Channel.
value A ForwardTypesEnum enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 LocalListen 0 Local forwarding.
 RemoteListen 1 Remote forwarding.
 SocksProxy 2 Dynamic socks proxy forwarding.

Remarks

Channel type is a very important property of the channel as it describes how the channel operates - whether it initiates connections or accepts them.

Basically there are three types of channel - LocalListen, RemoteListen and SocksProxy.

When you define a channel as LocalListen (and start the channel), then wodSSHTunnel will listen locally on the selected LocalPort. When a connection arrives, it will accept it, encrypt it and send it through the secure tunnel to the SSH server. The SSH server will decrypt it and forward it to RemoteAddress/ RemotePort.

If you define a channel as RemoteListen (and start it), then the SSH server will listen on the selected RemotePort. When a new connection arrives on the SSH server on this port, it will encrypt it and forward it to the local computer. wodSSHTunnel will receive it, decrypt it and initiate a new connection to LocalPort, just as if a connection was made directly to this computer.

Defining a new channel as SocksProxy will cause wodSSHTunnel to open a local port (on the LocalAddress interface). When applications connect to this port, it will provide information about the dynamic tunnel to be created - at the Hostname/Port required by the application. The SocksConnect and SocksBind events will fire to notify you about such operations.