-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeat PROT P after EPSV #30
Comments
@axelniedenhoff got the same problem on my side could you share your fix ? |
@axelniedenhoff could you check if #40 help you |
It seems like some servers might need "PROT" sent at different times. Can you include the debug log of the failure? I want to see what error response the server sends back. |
I'm worried that change will break other servers not expecting those commands at that time. The RFC says servers should return a particular error code if they don't get "PROT P" when they expect, so I want to confirm that first. If we do get the expected error, we can send "PROT P" conditionally based on the error code from the server. |
I find a solution with https://ftptest.net/ to give you a full log, this exemple work ! i can send you by email ( [email protected] ) an access to this ftp if you need to test, i hope it will help you, it's blocking us to use the official Filestash since 8 months, we had to do our fork. I hope it will help you to understand
|
@muirdm ? |
Are you using implicit TLS? It seems like the issue is just that goftp doesn't send "PBSZ 0" and "PROT P" at all in implicit TLS mode. @axelniedenhoff's issue looks different. |
@axelniedenhoff do you happen to remember what error code the server sent back before you patched goftp to send "PROT P" again? |
@muirdm please don't leave me alone on that :/ |
Can you update your PR so it only runs those commands if implicit TLS is being used? |
@muirdm updated, can you have a check ? |
@muirdm any news ? |
First, thank you for this great library!
In my setup, the server is a FileZilla server 0.9.41 behind a firewall. I have found that this server needs the PROT P command repeated after an EPSV. I have patched your library locally to issue such a PROT P in persistentConn.requestPassive() right before the function returns from the EPSV path, which works for my use case. I am sure that this needs to be done in a better way, as most use cases seem not to require this extra PROT P (possibly it even breaks some use cases). So maybe it should be an option in goftp.Config.
The text was updated successfully, but these errors were encountered: