Internet Direct (Indy)
Home
PreviousUpNext
TIdRSHServer.ForcePortsInRange Property

Indicates if clients connections must use a reserved port range.

Pascal
property ForcePortsInRange: Boolean;

ForcePortsInRange is a Boolean property that indicates if the server should disconnect clients that do not connect with ports in the range 512 - 1023. 

The RSH protocol requires clients to connect from ports in the 512-1023 range because, on most multi-user operating systems, this ensures some security as only administrators on those systems could use it. However, "security" is somewhat limited because many single user operating systems will not prevent non-administrator users from using those reserved ports and it is possible for hackers to alter port numbers on packets. 

When ForcePortsInRange contains True, the RSH Server component will automatically disconnect clients that do not do connect to the server from ports in this range. Setting ForcePortsInRange to False will permit the client to use the RSH server even if they do not connect from this port range. 

Normally, ForcePortsInRangeshould be set to true to prevent non-administrative users from using the RSH server. Setting ForcePortsInRange to false should be done with the caution, as it will increase the likelihood for abuse. 

The default value for ForcePortsInRange is RSH_FORCEPORTSINRANGE.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.