Home > FTP related issues > FTP Connection problems ?

FTP Connection problems ?

October 7th, 2009

We are getting complaints on FTP connections.

Problem:
FTP connects to server but it will not show list of files or folders on ftp account.

Errors you will see in logs:

Entering passive mode (345,54,34,85,455) .

Now you won’t see further response.

Solution:

1) Login to shell

2) Edit /etc/proftpd.conf

3) You can see

Quote:
# Port 21 is the standard FTP port.
Port 21

Add following lines after above command

Quote:
# Added to make passive transfer work
# use part of the IANA registered ephemeral port range

PassivePorts 49152 49161

4) restart ftp server from /etc/rc.d/init.d/proftpd restart

5) Now we need to above passive ports range to Firewall

6) Edit /etc/apf/conf.apf

You can see following lines

Quote:
# Common ingress (inbound) TCP ports
IG_TCP_CPORTS=”21,25,53,73,80,143,443,110,995,2080_2099,”

Now add passive ports 49152_49161 range to IG_TCP_CPORTS.
After adding it looks like

Quote:
# Common ingress (inbound) TCP ports
IG_TCP_CPORTS=”21,25,53,73,80,143,443,110,995,2080_2099,49152_49161″

7) Restart apf firewall. service apf restart

9) Now you need to connect FTP using Passive Mode. Clients should also connect FTP using Passive Mode only.

FTP related issues

  1. No comments yet.
  1. No trackbacks yet.