Skip to content
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

Issues with new version and Pure-FTP #149

Open
iandoug opened this issue Jul 5, 2022 · 8 comments
Open

Issues with new version and Pure-FTP #149

iandoug opened this issue Jul 5, 2022 · 8 comments

Comments

@iandoug
Copy link

iandoug commented Jul 5, 2022

Hi

Can you please see
https://forums.gentoo.org/viewtopic.php?p=8724116#8724116

And maybe comment here?

Thanks, Ian

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Jul 6, 2022

That error message can only happen when attempting active connections

The log doesn't show the line "entering passive mode" or something before requesting the file list, so it's not in passive mode

Pure-ftpd is a buggy server, something might be wrong. Before I compile stuff and perform tests, you must ensure the following checkbox is ticked:

gFTP menu -> Preferences -> FTP - > Passive file transfers

It's about time to change the config file location to be XDG compliant..

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Jul 6, 2022

I see the same error when I try to connect to any remote server in active mode (Passive file transfers disabled)

CWD /
250 CWD command successful
PWD
257 "/" is the current directory
Loading directory listing / from server (LC_TIME=en_US.UTF-8)
Cannot bind a port: Cannot assign requested address
Disconnecting from site slackware.uk

So you're using gFTP in active mode, this shouldn't be happening, it shouldn't be using the config file from the old version either

Here's another reason to change gftp's config file location:
https://www.linuxquestions.org/questions/linux-security-4/ssl-tls-on-gftp-on-slackware-14-2-a-4175644386/

I still have a local pure-ftpd server (1.0.49), this is an implicit FTPS connection (FTPSi)

gFTP 2.9.1b - http://www.gftp.org/
Looking up localhost
Trying localhost:990 (127.0.0.1)
Connected to localhost:990
SSL connection established using TLSv1.2 (xxxxxxx...)
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 18:04. Server port: 990.
220 You will be disconnected after 15 minutes of inactivity.
PBSZ 0
200 PBSZ=0
PROT P
200 Data protection level set to "private"
USER anonymous
230 Anonymous user logged in
FEAT
TYPE I
200 TYPE is now 8-bit binary
PWD
257 "/" is your current location
Loading directory listing / from server (LC_TIME=en_US.UTF-8)
EPRT |1|127.0.0.1|45181|
200 PORT command successful
MLSD
150 Connecting to port 45181
SSL data connection established using TLSv1.2 (xxxxxxx...)
226 34 matches total

@iandoug
Copy link
Author

iandoug commented Jul 6, 2022

gFTP menu -> Preferences -> FTP - > Passive file transfers

Yes, that is one of the things I checked.

I see the options in this version are different to old ... maybe there are issues reading the old config and mapping to new options?

Thanks, Ian

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Jul 6, 2022

Hard to tell what it's exactly going on since I always use the latest config and everything

Close gFTP, rename ~/.gftp to ~/.gftpz, start gftp and see what happens

I think the system gftprc is /usr/share/gftp/gftprc, it should have been replaced with the newer one

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Jul 8, 2022

I have a couple of questions

  1. Does gftp work as expected with other ftp servers? (paste the first lines)
  2. Does gftp work as expected if you delete the old config?

@iandoug
Copy link
Author

iandoug commented Jul 11, 2022

Hi

Sorry for delay. I downgraded to old version which works. I will have to upgrade and test new version as requested. Will revert.

Cheers, Ian

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Sep 14, 2022

Hahaha I knew the next reply would not be helpful that's why I somehow managed to not read it until now. 2022.09.14

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Sep 15, 2022

This is gftp-portable for testing purposes

Date: 2022.09.14
Git revision: 86d12b7a

Does not include SSL support

(oops the git revision no longer exists, git --amend changes the commit, this is the true revision 2923afd )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants