Technical article 114603

After installing rs506a, I can no longer do server to server ftp transfers.

OpenServer 5.0.6

Written · Last revised

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 Command

and 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)

From the Xinuos technical article database, record 114603. Reproduced with permission. The original is at www.sco.com/ta/114603, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.