Problem
Using 3rd party ftp clients, I was able to do server to server transfers until I installed rs506a. Now, any attempts to do this return the error:
500 Illegal PORT Commandand an error will show up in /var/adm/syslog that looks something like:
ftpd[817]: refused PORT 10.10.10.25,46904 from foo.bar.COM [10.10.68.30] Cause
For security reasons, the ability to send PORT commands from any other host than the source host was disabled by default.
Solution
The tunables port-allow and pasv-allow were added to let you control this behavior. From ftpaccess(SFF):
pasv-allow <class> [<addrglob> ...]
port-allow <class> [<addrglob> ...]Normally, the daemon does not allow a PORT command to specify an
address different than that of the control connection. Additionally,
it does not allow a PASV connection from another address.The port-allow clause provides a list of addresses, which the
specified class of user may give on a PORT command. These addresses
will be allowed even if they do not match the IP address of the
client-side of the control connection.The pasv-allow clause provides a list of addresses from which the
specified class of user may make data connections. These addresses
will be allowed even if they do not match the IP address of the
client-side of the control connection.For example, the following lines in /etc/ftpacess will allow server to server transfers for all classes and all addresses:
port-allow all *
pasv-allow all *Note: Please see the Technical Article mentioned below to ensure that these changes are incorporated.
See also
ta114602, "After installing rs506a, changes made to /etc/ftpaccess are not being recognized."
Manual Page: ftpaccess(SFF)