PTC MKS Toolkit Knowledge Base

Product:MKS Toolkit (All)
Keywords:rshd, firewall, disable service
Category:Connectivity/Knowledge Base

I have disabled the MKS RSHD and REXECD ports through the Firewall Config section of the MKS Toolkit Control Panel applet. However, these services are still accepting connections.

There is delay from when these services close their last connection to when the firewall disables the port. By default, this delay is 4 minutes, but it can be minimized by modifying the following registry key.

System Key:
Value Name: TcpTimedWaitDelay
Data Type: REG_DWORD (DWORD Value)
Value Data: 30-300 seconds (decimal)
Default: 0xF0 (240 decimal)

On some systems you will need to create this key, as it does not exist by default on all operating systems. Also, you will need to reboot before changes made to this key take effect.

Note: this registry key is not specific to the MKS rshd and rexecd services. Changes to this key will also effect other TCP connections.