With my FTP, the initial connection worked on port 21, then it switched to use a different port for the file transfer. These were not set up on my system.
On my FTP client, I received
229 Entering Extended Passive Mode (|||1028|)
which means it was trying to use port 1028. This was not configured, and so the transfer failed.
You have to configure FTP to use a range of ports, and then configure the Policy Agent with these ports.
In the FTPD JCL I have
//FTPD PROC MODULE='FTPD',PARMS=''
//FTPD EXEC PGM=&MODULE,REGION=4096K,TIME=NOLIMIT,
// PARM='POSIX(ON) ALL31(ON)/&PARMS'
//CEEDUMP DD SYSOUT=*
//SYSFTPD DD DISP=SHR,DSN=TCPIP.FTP.DATA
//* SYSTCPD explicitly identifieS which file iS to be
//* uSed to obtain the parameterS defined by TCPIP.DATA.
//* The SYSTCPD DD Statement Should be placed in the JCL of
//* the Server. The file can be any Sequential data Set,
//*SYSTCPD DD DISP=SHR,DSN=TCPIP.SEZAINST(TCPDATA)
//SYSTCPD DD DISP=SHR,DSN=ADCD.&SYSVER..TCPPARMS(TCPDATA)
Within the SYSFTPD dataset you need to configure the PASSIVEDATAPORTS statement.
2 thoughts on “CS IP Filtering: Trying to use FTP”