Re: [twsocket] Active, Passive and Data Port Range

2018-01-29 Thread Nicolas MARCHAND

Graham,

In Active mode, the Data Port Range is set by the FTP client (if 
required) 


Yes and corresponding port must be opened on the router of the client 
side (see *).


In Passive Mode, the Data Port Range is set by the FTP server (if 
required) 


Yes.
As an example our FTP server send the command "227 entering passive mode 
(111,222,333,444,152,128)" to the client.
"111,222,333,444" is the IP adress of the server and "152,128" is the 
port ie : 152*256+128=39040

The ports of passive range must be opened on the router of the server side.

Passive mode is generally used in order to avoid problem of configuring 
router on the client side.


(*) When you use FTP some router analyse the FTP protocol and open port 
automatically on the router.


When you use FTP/SSL you must manually open these port on the router.

Sorry for my blabla english ;)

Nicolas
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Active, Passive and Data Port Range

2018-01-29 Thread Angus Robertson - Magenta Systems Ltd
> Am I correct in assuming the following:
> 
> In Active mode, the Data Port Range is set by the FTP client (if 
> required)
> 
> In Passive Mode, the Data Port Range is set by the FTP server (if 
> required)

The ICS FTP server has no concept of restricting Data Port Range, no
idea if other products do.  

The ICS FTP client does allow a port restriction, but I don't believe
Passive mode makes any difference, since the client either opens the
data channel or tells the server to open it on a specific port.  

But it's 10 years since I really played with FTP, and I'm hazy on this
stuff. 

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be