1<testcase> 2<info> 3<keywords> 4FTP 5PORT 6FAILURE 7EPRT refused 8</keywords> 9</info> 10# Server-side 11<reply> 12<servercmd> 13REPLY EPRT 500 we don't like EPRT now 14REPLY PORT 314 bluah you f00l! 15</servercmd> 16</reply> 17 18# Client-side 19<client> 20<server> 21ftp 22</server> 23# EPRT is only sent when IPv6 is enabled 24<features> 25ipv6 26</features> 27 <name> 28FTP download, failed PORT 29 </name> 30 <command> 31ftp://%HOSTIP:%FTPPORT/116 -P 1.2.3.4 32</command> 33</client> 34 35# Verify data after the test has been "shot" 36<verify> 37<errorcode> 3830 39</errorcode> 40# Strip the port number but leave the rest 41<strippart> 42s/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/ 43s/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/ 44</strippart> 45<protocol> 46USER anonymous 47PASS ftp@example.com 48PWD 49EPRT |1|1.2.3.4| 50PORT 1,2,3,4, 51QUIT 52</protocol> 53</verify> 54</testcase> 55