Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSSHD
- Methods
- Properties
- Events
- Connecting
- CryptoInformation
- Disconnected
- LoginGSSAPI
- LoginPassword
- LoginPubkey
- PortBindRequest
- PortForwardConnect
- PortForwardDisconnect
- PortForwardRequest
- Received
- ServiceRequest
- ServiceStart
- SftpDeleteFile
- SftpDownloadFile
- SftpFileTransferData
- SftpListDir
- SftpListDirData
- SftpMakeDir
- SftpProgress
- SftpRemoveDir
- SftpRename
- SftpTransferComplete
- SftpUploadFile
- StateChanged
- IwodSSHDNotify
- Methods
- Connecting
- CryptoInformation
- Disconnected
- LoginGSSAPI
- LoginPassword
- LoginPubkey
- PortBindRequest
- PortForwardConnect
- PortForwardDisconnect
- PortForwardRequest
- Received
- ServiceRequest
- ServiceStart
- SftpDeleteFile
- SftpDownloadFile
- SftpFileTransferData
- SftpListDir
- SftpListDirData
- SftpMakeDir
- SftpProgress
- SftpRemoveDir
- SftpRename
- SftpTransferComplete
- SftpUploadFile
- StateChanged
- Methods
- SSHKeyPair
- SSHUser
- SSHUsers
- How to get support
- Technical information
- Fast notifications
- Error list
PortForwardConnect event
Fires when user port forwarding is to be established.
Syntax
- Basic
Private Sub object_PortForwardConnect(User, RemoteHost, RemotePort, Action)
The PortForwardConnect(object,User,RemoteHost,RemotePort,Action) syntax has these parts:
The PortForwardConnect(object,User,RemoteHost,RemotePort,Action) syntax has these parts:
object | A wodSSHD object. |
User | A SSHUser object. Reference to user who is responsible for this port forwarding. |
RemoteHost | A String value. Hostname or IP address of remote peer. |
RemotePort | A Long value. Port number used on the remote peer's computer. |
Action | A SSHActions enumeration, as described in settings. Action to perform - Allow allows connection, Deny refuses it. |
Remarks
The settings for Action are:
Constant | Value | Description |
---|---|---|
Deny | 0 | Deny execution of the action. |
Allow | 1 | Allow to execute action. |
This event is fired after request for port forward or port binding (appropriate event was already fired when such request was made by the client) is successfully established. At this point either wodSSHD did successfully connect to the server, or someone successfully connected to wodSSHD. In either way, wodSSHD is ready to forward traffic between end-peer and the connected client.
You can check RemoteHost and RemotePort arguments to decide whether remote peer is allowed to be connected to the server. If you wish to cancel this action, you can set Action = Deny and the connection with end-peer will be dropped immediately. Connected client will not be notified about this connection in such case.