Description
-
Fires when user wants to bind specific port on the
server.
Syntax
-
Private Sub
object_PortBindRequest(User,
BindIP, BindPort,
Action)
The PortBindRequest Event syntax has these parts:
| object |
A wodSSHD object. |
| User |
A SSHUser object. Reference
to user who wants to open port forwarding. |
| BindIP |
A String value. Holds
interface address that will be used for listening. |
| BindPort |
A Long value.
Specifies port number that will be used for
listening. |
| Action |
A SSHActions
enumeration, as described in settings. Action to
perform for the user - Allow means that he can
open port forwarding, Deny means he is not
allowed. |
Settings
-
The settings for Action are:
 |
Deny |
0 |
Deny execution of the
action. |
 |
Allow |
1 |
Allow to execute
action. |
Remarks
-
This event is fired when connected user requests service
from wodSSHD to open specified port (BindPort value) for listening. If you set
Action to Allow, wodSSHD
will open this port and listen for incoming connections, if
possible. When connection arrives, event PortForwardConnect
will be fired where you can see Hostname of user who's
trying to use this opened port. If all is Allowed,
remote client will receive message about this connection,
and it will be able to receive forwarded data for this
connection.
Bind requests are typically used to protect plain
communication from 3rd party sniffing (eavesdropping). For
example, instead of opening local port on his computer,
client can request server to open port. Complete traffic
between wodSSHD server and the client will be encrypted
(it's traveling through already established SSH
connection).
If wodSSHD should initiate outgoing connection, event
PortForwardRequest
will be fired.
|