> Source: [sk1000277](https://support.checkpoint.com/results/sk/sk1000277)

# sk1000277 - TCP data dropped with "TCP uni-directional violation (s2c)" due to service protocol handler enforcement

| Property | Value |
|----------|-------|
| Solution ID | sk1000277 |
| Date Created | 2026-10-14 |
| Last Modified | 2026-10-21 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |

## Symptoms

- <br />

An application's TCP handshake completes, but subsequent data is dropped, causing the application to hang or fail.

The issue may affect a secondary connection opened back to the initiating host after a successful control connection.

Debug output shows:

<br />

    TCP uni-directional violation (s2c) -> drop
    S2C Violation (20)

The drop may also appear as:

    conn oneway violated

## Cause

<br />

A service protocol handler may mark a related connection as unidirectional. If the application sends data in the opposite direction, the Security Gateway drops that traffic even after a successful TCP handshake.

The RSHELL protocol handler is a confirmed example of this behavior and can apply this restriction to a secondary connection. An application that uses an RSH-style exchange but requires bidirectional traffic on that secondary connection may encounter these drops.

This is expected directional enforcement for the confirmed RSHELL scenario. Similar behavior may occur with other protocol handlers.

The drop message alone does not identify the responsible protocol handler. Determine which Access Control rule matches the connection and review the configured services and protocol settings before applying the solution.

<br />

## Solution

If the application does not require the matched protocol handler, use dedicated TCP services without a protocol handler and explicitly allow the required secondary connections.

<!-- -->

1. Identify the rule and service matched by the control connection using the traffic logs.
2. Review the matched service's protocol type and advanced settings.
3. Confirm the application's required control and secondary ports using application documentation or packet captures.
4. Create a custom TCP service for the required control port or range without a protocol handler configured. Do not modify the predefined service.
5. Create dedicated rules allowing the control and secondary connections. Limit them to the required hosts or networks, directions, and destination ports.
6. Place these rules above the rule that previously matched the handler-based service, accounting for any inline policy layers.
7. Install policy and establish new application connections.
8. Confirm that:

> <br />
>
> * The intended rules match.
> * The application works correctly.
> * The directional drops stop.
>
> <br />
>
**Example:**

<br />

An application using TCP/514 for control and dynamically selected secondary ports may require a custom TCP/514 service without a protocol handler, plus explicit rules for its secondary port range.

Determine the required range from the application's documented behavior or packet captures.

<br />

**Important:** Removing the protocol handler removes its protocol-specific inspection capabilities. Depending on the protocol handler, additional protocol-specific processing may also no longer occur. Explicit rules must allow the required secondary connections. This is not a recommendation to disable directional enforcement globally.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
