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

# sk182818 - Downloading a file with FTP results in an empty file

| Property | Value |
|----------|-------|
| Solution ID | sk182818 |
| Date Created | 2024-11-18 |
| Last Modified | 2024-11-26 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82, R81.20 |
| OS | Gaia |

## Symptoms

- * The FTP file download completes successfully, but the file contains no data and has a size of 1KB. This typically indicates that the transfer occurred without any actual content being transmitted, possibly due to a command or configuration issue during the FTP session.

* The kernel debug output from the drop log (fw ctl zdebug + drop) indicates the following:

  > `
  > [cpu_x];[fwx_0];fw_log_drop_ex: Packet proto=6 <source_IP_address:source_port> -> <destination_IP_address:destination_port> dropped by fw_post_vm_chain_handler Reason: Handler 'ftp_code' drop;
  > `

  This log entry shows that a TCP packet (protocol 6) was dropped by the fw_post_vm_chain_handler due to the ftp_code handler. This implies that the packet was identified as part of an FTP session, but was discarded based on the FTP-related inspection or configuration.

## Cause

The FTP port command is missing a "\\r\\n" at the end. As a result, the Security Gateway does not support the command and drops the packet. [RFC 959](https://datatracker.ietf.org/doc/html/rfc959) specifies that the server must not proceed until it receives the line feed code "\\r\\n."

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# 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
