FTP EPRT PORT FAILURE EPRT refused # Server-side REPLY EPRT 500 we don't like EPRT now REPLY PORT 314 bluah you f00l! # Client-side ftp # EPRT is only sent when IPv6 is enabled ipv6 FTP download, failed PORT ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P 1.2.3.4 # Verify data after the test has been "shot" 30 # Strip the port number but leave the rest s/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/ s/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/ USER anonymous PASS ftp@example.com PWD EPRT |1|1.2.3.4| PORT 1,2,3,4, QUIT