Project

General

Profile

Actions

Feature #13382

closed

[PATCH] Options for FTP PORT command

Added by osa (Shunsuke OSA) over 7 years ago. Updated about 7 years ago.

Status:
Rejected
Target version:
-
[ruby-dev:50057]

Description

Abstract

Add options to Net::FTP to set data listening host and port.

Background

Net::FTP sends local address and default port to remote FTP server.
In FTP active mode, remote server will connect to client to establish data connection, but it will fail if there is NAT in network.
(NAT doesn't rewrite address and port in PORT command because they are not in packet header but payload)
So, it's necessary to set host and port for FTP PORT command explicitly.

Real use cases

Active FTP is not working in AWS EC2.

Pull request

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0