Just as for the VSM server, there must be a SSH Daemon running on all VSM agent machines. This daemon is normally listening to port 22, although it can listen to other ports as well. See the entry about port 22 on Section A.1, “ On Machine Running VSM Server ”.
By default, ThinLinc's Web Access service tlwebaccess is available on TCP port 300. Traffic to this port is encrypted (TLS).
The port on which tlwebaccess runs is configurable via the parameter /webaccess/listen_port. See Section 18.104.22.168.2, “ Configuration ” for details.
The VSM agent listens on port 904 for incoming requests from the VSM server host. The traffic is not encrypted, but the VSM agent only allows connections originating from a port lower than 1024, from a list of known IP addresses. The protocol in use is XMLRPC through HTTP.
By default, ThinLinc's web-based administration interface is available on TCP port 1010. See the entry about port 1010 at Section A.1, “ On Machine Running VSM Server ”.
Ports 5901-5999 are used by Xvnc processes serving display numbers strictly below 100.
The ports in this interval is used as serverside endpoints for the SSH tunnels used to access local resources of the client, for example local drives, serial ports and sound.
This interval is used for sessions with display number strictly below 100.
The algorithm used for calulating which ports to use for a specific display number in this interval is 4900 + display-id*10 + SERVICE_SLOT where SERVICE_SLOT is a number defined under /vsm/tunnelservices.
If Xvnc is configured to listen for incoming TCP requests from X Window System clients on other hosts, ports 6001-8000 are used by display numbers 1-2000. The default is not to listen for incoming TCP requests, so in the default configuration, the ports in this interval are not open.
The algorithm described below is used to allocate ports for the Xvnc process and for the serverside endpoints for SSH tunnels to access local resources of the client. This algorithm is used for sessions with display numbers strictly higher than 99.
Each session is allocated /vsm/tunnelslots_per_session (default value 10) + 1 ports, leading to an allocation of 11 ports per session with the default configuration. The ports are allocated starting with the port given as /vsmagent/max_session_port (default 32767), and then downwards. This means that the ports are aligned upwards as closely as possible to the upper limit defined. This is a good practice to avoid collisions with other services running on the machine.
Some examples follow
The VNC port will be 5950 which is 5900+display.
The tunnel ports allocated for this display are 5400-5409, which is 4900+(10*display)+SERVICE_SLOT where SERVICE_SLOT is 0-9.
The VNC port will be 32757, which is 32767-((display-100)*(/vsm/tunnelslots_per_session+1)+/vsm/tunnelslots_per_session)).
Ports 32758-32767 (inclusive) will be used for tunnel ports.
The VNC port will be 30557 which is 32767-((display-100)*(/vsm/tunnelslots_per_session+1)+/vsm/tunnelslots_per_session).
Ports 30558-30567 (inclusive) will be used for tunnel ports.
The VNC port will be 29457, which is 32767-((display-300)*(/vsm/tunnelslots_per_session+1)+/vsm/tunnelslots_per_session).
Ports 29458-29467 (inclusive) will be used for tunnel ports.