Hello,
I have some problem, with setting up Pure-ftp…
I have a mashine running opensuse 11.1 and pureftp service. I have
configured everything, and everything works in active mode, but have
problems with passive mode.
I do not realy know is this is really pure-ftpd problem… so decided to post here
So problem is that pure-ftpd wants to open ports, that is not in the range
that is set in pure-ftpd.conf, i have set it to 30000 50000, opened that
range in linux firewall, forwarded these ports in router, but when i
trying to connect from remote computer - pure-ftpd sometimes is trying to
connect in ports that is not in range…
F.e.:
Response: 220-Welcome to Pure-FTPd.
Response: 220-You are user number 2 of 10 allowed.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER aa
Response: 331 User aa OK. Password required
Command: PASS *******
Response: 230-User aa has group access to: 112 33 16
Response: 230 OK. Current directory is /
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (88,222,125,227,206,220)
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing
206*256+220 = 52956 port… thats not in my range… (30000 - 50000)
aftes few retries, i can connect, because pure-ftpd choses port, that is open/forwarded
Response: 220-Welcome to Pure-FTPd.
Response: 220-You are user number 1 of 10 allowed.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER aa
Response: 331 User aa OK. Password required
Command: PASS *******
Response: 230-User aa has group access to: 112 33 16
Response: 230 OK. Current directory is /
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (88,222,125,227,174,49)
Command: MLSD
Response: 150 Accepted data connection
Response: 226-ASCII
Response: 226-Options: -a -l
Response: 226 5 matches total
Status: Directory listing successful
174*256+49 = 37681 ok, thats in range (30000 - 50000)
What is wrong, and what can i do to make it work normally?