Server using wrong passive port
Moderator: Project members
Server using wrong passive port
Some how the server wants to use port 80 for passive connections although it is configured to use 800-805:
15:31:54 Befehl: PASV
15:31:55 Antwort: 227 Entering Passive Mode (*,*,*,*,0,80)
15:31:55 Befehl: MLSD
15:31:55 Fehler: GnuTLS error -53: Fehler in der Push-Funktion.
In the next Try it uses the right port again:
15:32:06 Befehl: PASV
15:32:06 Antwort: 227 Entering Passive Mode (*,*,*,*,3,34)
Any hints to solve this?
This configuration worked for long time without Problems.
15:31:54 Befehl: PASV
15:31:55 Antwort: 227 Entering Passive Mode (*,*,*,*,0,80)
15:31:55 Befehl: MLSD
15:31:55 Fehler: GnuTLS error -53: Fehler in der Push-Funktion.
In the next Try it uses the right port again:
15:32:06 Befehl: PASV
15:32:06 Antwort: 227 Entering Passive Mode (*,*,*,*,3,34)
Any hints to solve this?
This configuration worked for long time without Problems.
Re: Server using wrong passive port
1. Do you use the FileZilla Server?
2. When that happens, compare the corresponding client and server logs: Do they match 100%?
2. When that happens, compare the corresponding client and server logs: Do they match 100%?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: Server using wrong passive port
You shouldn't use ports <= 1024 for the data connection, those ports are reserved for other programs.
Re: Server using wrong passive port
Yes I am using Filezilla Server. The logs match, in the Server log it is also Port 80.boco wrote:1. Do you use the FileZilla Server?
2. When that happens, compare the corresponding client and server logs: Do they match 100%?
Yeah I have read that and changed FTP port to 1337 and passive port range to 51111-51161. No changes.botg wrote:You shouldn't use ports <= 1024 for the data connection, those ports are reserved for other programs.
Additionally I deleted the whole configuration and made a new one but the Problem persists.
Re: Server using wrong passive port
Can you please post an unabridged log? Snippets are a bit hard to interpret.
Re: Server using wrong passive port
Code: Select all
(000013)21.10.2011 19:23:37 - user (*.*.192.18)> 226 Transfer OK
(000014)21.10.2011 19:23:37 - user (*.*.192.18)> SSL connection for data connection established
(000014)21.10.2011 19:23:37 - user (*.*.192.18)> 226 Transfer OK
(000013)21.10.2011 19:23:37 - user (*.*.192.18)> PASV
(000013)21.10.2011 19:23:37 - user (*.*.192.18)> 227 Entering Passive Mode (*,*,51,109,199,193)
(000013)21.10.2011 19:23:37 - user (*.*.192.18)> REST 100000000
(000013)21.10.2011 19:23:37 - user (*.*.192.18)> 350 Rest supported. Restarting at 100000000
(000014)21.10.2011 19:23:37 - user (*.*.192.18)> PASV
(000014)21.10.2011 19:23:37 - user (*.*.192.18)> 227 Entering Passive Mode (*,*,51,109,0,80)
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> STOR sicherung.r08
(000014)21.10.2011 19:23:38 - user (*.*.192.18)> REST 100000000
(000014)21.10.2011 19:23:38 - user (*.*.192.18)> 350 Rest supported. Restarting at 100000000
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> 150 Connection accepted, restarting at offset 100000000
(000014)21.10.2011 19:23:38 - user (*.*.192.18)> STOR sicherung.r31
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> SSL connection for data connection established
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> 226 Transfer OK
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> PASV
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> 227 Entering Passive Mode (*,*,51,109,199,195)
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> REST 100000000
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> 350 Rest supported. Restarting at 100000000
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> STOR sicherung.r16
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> 150 Connection accepted, restarting at offset 100000000
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> SSL connection for data connection established
(000013)21.10.2011 19:23:38 - user (*.*.192.18)> 226 Transfer OK
Only 000013 active
...
Code: Select all
(000014)21.10.2011 19:23:48 - user (*.*.192.18)> 425 Can't open data connection.
(000013)21.10.2011 19:23:48 - user (*.*.192.18)> PASV
(000013)21.10.2011 19:23:48 - user (*.*.192.18)> 227 Entering Passive Mode (*,*,51,109,199,209)
(000014)21.10.2011 19:23:48 - user (*.*.192.18)> PASV
(000014)21.10.2011 19:23:48 - user (*.*.192.18)> 227 Entering Passive Mode (*,*,51,109,199,210)
(000013)21.10.2011 19:23:48 - user (*.*.192.18)> REST 100000000
(000013)21.10.2011 19:23:48 - user (*.*.192.18)> 350 Rest supported. Restarting at 100000000
(000014)21.10.2011 19:23:48 - user (*.*.192.18)> REST 0
(000014)21.10.2011 19:23:48 - user (*.*.192.18)> 350 Rest supported. Restarting at 0
(000013)21.10.2011 19:23:48 - user (*.*.192.18)> STOR sicherung.r42
(000013)21.10.2011 19:23:48 - user (*.*.192.18)> 150 Connection accepted, restarting at offset 100000000
(000014)21.10.2011 19:23:49 - user (*.*.192.18)> MLSD
(000013)21.10.2011 19:23:49 - user (*.*.192.18)> SSL connection for data connection established
(000014)21.10.2011 19:23:49 - user (*.*.192.18)> 150 Connection accepted
(000013)21.10.2011 19:23:49 - user (*.*.192.18)> 226 Transfer OK
(000013)21.10.2011 19:23:49 - user (*.*.192.18)> PASV
(000013)21.10.2011 19:23:49 - user (*.*.192.18)> 227 Entering Passive Mode (*,*,51,109,0,80)
(000013)21.10.2011 19:23:49 - user (*.*.192.18)> REST 100000000
(000013)21.10.2011 19:23:49 - user (*.*.192.18)> 350 Rest supported. Restarting at 100000000
(000014)21.10.2011 19:23:49 - user (*.*.192.18)> SSL connection for data connection established
(000014)21.10.2011 19:23:49 - user (*.*.192.18)> 226 Transfer OK
Error is coming more often the longer the transfer is running.
edit:
Clientlog
Code: Select all
19:23:24 Antwort: 150 Connection accepted, restarting at offset 100000000
19:23:24 Antwort: 150 Connection accepted, restarting at offset 100000000
19:23:24 Antwort: 226 Transfer OK
19:23:24 Status: Dateitransfer erfolgreich, 0 B in 1 Sekunde übertragen
19:23:24 Status: Starte Upload von /home/user/sicherung.r08
19:23:24 Befehl: PASV
19:23:24 Antwort: 226 Transfer OK
19:23:24 Status: Dateitransfer erfolgreich, 0 B in 1 Sekunde übertragen
19:23:24 Antwort: 227 Entering Passive Mode (*,*,51,109,199,193)
19:23:24 Befehl: REST 100000000
19:23:24 Status: Starte Upload von /home/user/sicherung.r31
19:23:24 Befehl: PASV
19:23:25 Antwort: 350 Rest supported. Restarting at 100000000
19:23:25 Befehl: STOR sicherung.r08
19:23:25 Antwort: 227 Entering Passive Mode (*,*,51,109,0,80)
19:23:25 Befehl: REST 100000000
19:23:25 Antwort: 350 Rest supported. Restarting at 100000000
19:23:25 Befehl: STOR sicherung.r31
19:23:25 Fehler: GnuTLS error -53: Fehler in der Push-Funktion.
19:23:25 Antwort: 150 Connection accepted, restarting at offset 100000000
19:23:25 Antwort: 226 Transfer OK
19:23:25 Status: Dateitransfer erfolgreich, 0 B in 1 Sekunde übertragen
19:23:25 Status: Starte Upload von /home/user/sicherung.r16
19:23:25 Befehl: PASV
19:23:25 Antwort: 227 Entering Passive Mode (*,*,51,109,199,195)
19:23:25 Befehl: REST 100000000
19:23:25 Antwort: 350 Rest supported. Restarting at 100000000
19:23:25 Befehl: STOR sicherung.r16
19:23:25 Antwort: 150 Connection accepted, restarting at offset 100000000
19:23:25 Antwort: 226 Transfer OK
19:23:25 Status: Dateitransfer erfolgreich, 0 B in 1 Sekunde übertragen
19:23:25 Status: Starte Upload von /home/user/sicherung.r62
19:23:25 Befehl: PASV
19:23:26 Antwort: 227 Entering Passive Mode (*,*,51,109,199,196)
19:23:26 Befehl: REST 100000000
19:23:26 Antwort: 350 Rest supported. Restarting at 100000000
19:23:26 Befehl: STOR sicherung.r62
19:23:26 Antwort: 150 Connection accepted, restarting at offset 100000000
19:23:26 Antwort: 226 Transfer OK
Re: Server using wrong passive port
Perhaps a too narrow passive mode port range. Try using a larger range.
Re: Server using wrong passive port
I have already changed form 5 to 50 Ports. Shouldn’t that be enough for one user?
Re: Server using wrong passive port
Definitely. I dunno why it would even propose port 80 (which is HTTP), unless you configured it somewhere.DesertF0x wrote:I have already changed form 5 to 50 Ports. Shouldn’t that be enough for one user?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: Server using wrong passive port
After using a socket pair, it enters the TIME_WAIT state and cannot be re-used during this time. On Windows, TIME_WAIT is usually 2 or 4 minutes.
Assuming the client re-uses the same source port, if you transfer more than 50 files or directory listings in that period, all ports in the 50 port range are exhausted. With small files, it's very easy to transfer hundreds if not thousands of files during those 2 (or 4) minutes and the port range should be set large enough to accommodate this.
Try using a thousand ports, that should make a difference.
Assuming the client re-uses the same source port, if you transfer more than 50 files or directory listings in that period, all ports in the 50 port range are exhausted. With small files, it's very easy to transfer hundreds if not thousands of files during those 2 (or 4) minutes and the port range should be set large enough to accommodate this.
Try using a thousand ports, that should make a difference.
Re: Server using wrong passive port
Looks like that made it. Wondering that it was working with five ports before ...
THX!
THX!
Re: Server using wrong passive port
Sry, I have not tested long enough ... the problem is still there.
Re: Server using wrong passive port
anybody?
Re: Server using wrong passive port
I have no idea where the port 80 is coming from. My best guess would be some firewall intercepting the calls to the operating system when FileZilla Server asks Windows for a free port.
-
- 500 Command not understood
- Posts: 2
- Joined: 2011-11-13 03:40
- First name: Nathan
- Last name: Daniels
Re: Server using wrong passive port
I am having the exact same problem. Server is configured to have ports 6000 - 6100 as passive ports but, according to WireShark data, it is consistently sending ports in the range of 5000-~5100 to the passive clients. I tried everything I could think of before coming to the conclusion that FileZilla is at fault. There are no firewalls in between (not even the Windows one) and the router is forwarding ports 21 and 6000-6100 to the server. I am using the latest stable release of the server and client.