#13028 closed Bug report (fixed)

Data peer IP error which aborts the data connection - reproducible with AWS EC2

Reported by: Ann-at-HREF Owned by:
Priority: normal Component: FileZilla Server
Keywords: Data peer IP EC2 Cc:
Component version: 1.7.3 Operating system type:
Operating system version: Windows Server 2022

Description

This error message came up for me today after upgrading to the latest FileZilla Server.

<Date/Time> Info [Type] Message
<08-12-2023 07:15:38> FTP Session 3 34.xxx.xxx.12 (snip username) [Error] Data peer IP [172.xx.xx.xx] differs from control peer IP [34.xxx.xxx.12]: this shouldn't happen, aborting the data connection.

How to reproduce this error

You need two AWS EC2 machines which happen to be in the same region. Put FileZilla server on one of them. Put ncFtpPut client on the other one. ( Download the client from https://www.ncftp.com/ncftp/ )

When ncFtpPut tries to connect, probably due to some AWS routing optimizations, it comes through using the private IPv4 of the client machine instead of using the public IPv4. This accounts for the difference.

Hope that helps.

Change History (3)

comment:1 by Tim Kosse, 13 months ago

Status: newmoreinfo

What does https://ftptest.net/ say about your server?

comment:2 by Ann-at-HREF, 13 months ago

Status: moreinfonew

Thank you so much for the https://ftptest.net suggestion. It did not connect initially, and based on its error log, I quickly found the two issues that needed adjustment in my FileZilla server configuration. I had to specify the public ipv4 for passive, and I had to tweak my port range to match what I had open in the Windows firewall.

My issue is fully resolved.

Embarassed but very happy for the quick and extremely useful assistance.

comment:3 by Tim Kosse, 13 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.