[issue32572] Add the ftplib option, overrides the IP address.

2018-01-16 Thread Hideyuki

New submission from Hideyuki :

Add the ftplib's option, overrides the IP address to be used with the PORT 
command.
Currently, the PORT command is sending its self IP address.
If the host is connected with NAT, it will not work.
If that command has a NAT external IP address, it is working.
So add an option to overrides the IP address sending with the PORT command.
This is useful when active FTP transfer needed on a 1:1 NAT connected host so 
like AWS VPC.

--
components: Library (Lib)
messages: 310102
nosy: hideyuki
priority: normal
severity: normal
status: open
title: Add the ftplib option, overrides the IP address.
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue32572>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32572] Add the ftplib option, overrides the IP address.

2018-01-16 Thread Hideyuki

Change by Hideyuki :


--
keywords: +patch
pull_requests: +5061
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue32572>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32572] Add the ftplib option, overrides the IP address.

2018-02-01 Thread Hideyuki

Hideyuki  added the comment:

I understand that it is best to use PASV.
But this FTP server is managed by another person, and that server required 
active mode. 
Also, my host is in a VPC environment, it is connected by 1:1 NAT. This NAT BOX 
does not support FTP transparent.

In this case, we recognize that IP packet received by the FTP server is from 
the external IP address of the NAT BOX, but ftplib will send the IP address on 
host NIC.
So dose not match IP packet source address and PORT address, it will be closed 
with the indicated code.

The purpose of this feature is to communicate by overriding the IP address 
sending by PORT command with the NAT external IP address(so the client IP 
address seen by server).

--

___
Python tracker 
<https://bugs.python.org/issue32572>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com