sk184768 - RSH connections fail when Destination NAT is configured for the RSH server

RSH connections fail when Destination NAT is configured for the RSH server

Product: Security Gateways
Version: R81.20, R82, R82.10
Last Modified: 2026-07-23

Symptoms

Note: The command works correctly when DNAT is removed.

rsh: Didn't receive NULL byte from server: Connection reset by peer

Cause

The RSH protocol uses two TCP connections:

The Security Gateway uses an RSH protocol handler to dynamically create an anticipation entry, allowing the reverse connection as part of Stateful Inspection.

When Destination NAT is configured for the RSH server:

Solution

We're here for you

NOTE

This solution has been verified for the specific scenario, described by the combination of Product, Version and Symptoms. It may not work in other scenarios.