You are not logged in.

#1 2021-10-27 02:02:52

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

vsftpd

Cannot get this to work.

Always fail with the following in FileZilla. Just going from machines on local subnet. Tried a bunch of different config settings to no avail from the Internet and the Arch Wiki page:

Status:	Connecting to 192.168.1.17:21...
Status:	Connection established, waiting for welcome message...
Status:	Insecure server, it does not support FTP over TLS.
Status:	Logged in
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/home/anonymous" is the current directory
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (108,56,255,219,195,89).
Command:	LIST
Error:	Connection closed by server
Error:	Failed to retrieve directory listing

Tried the Online FTP tester at https://ftptest.net/ enabling port forwarding to the FTP server machine on my router, and got the following:

Command: PWD
Reply: 257 "/home/anonymous" is the current directory
Status: Current path is /home/anonymous
Command: TYPE I
Reply: 200 Switching to Binary mode.
Command: PASV
Reply: 227 Entering Passive Mode (108,56,255,219,195,90).
Command: LIST
Error: Connection got closed prematurely

A common cause for this problem are broken routers and/or firewalls that interrupt the connection.
Some broken or badly configured servers can also interrupt the connection prematurely.

Last edited by dramatis.persona (2021-10-27 02:03:15)

Offline

#2 2021-10-27 02:19:04

loqs
Member
Registered: 2014-03-06
Posts: 18,995

Re: vsftpd

What is the journal output for the vsftpd service when a user connects and then the connection ends?

Offline

#3 2021-10-27 02:30:44

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

Re: vsftpd

loqs wrote:

What is the journal output for the vsftpd service when a user connects and then the connection ends?

Hmm...Looks like I got a core dump:

Oct 26 22:28:58 archanon systemd-coredump[14480]: Process 14478 (vsftpd) of user 1000 dumped core.
                                                  Found module vsftpd with build-id: f686c3b0f7f2cc92c11059d9e4bd6e5666468ea8
                                                  #2  0x000055c9e8aabc52 n/a (vsftpd + 0x7c52)
                                                  #3  0x000055c9e8aad9ef n/a (vsftpd + 0x99ef)
                                                  #4  0x000055c9e8ab51d2 n/a (vsftpd + 0x111d2)
                                                  #5  0x000055c9e8ab564d n/a (vsftpd + 0x1164d)
                                                  #6  0x000055c9e8aa956f n/a (vsftpd + 0x556f)
                                                  #8  0x000055c9e8aa980e n/a (vsftpd + 0x580e)

Offline

#4 2021-10-27 06:54:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,228

Offline

#5 2021-10-27 19:42:25

loqs
Member
Registered: 2014-03-06
Posts: 18,995

Re: vsftpd

What if you update to vsftpd 3.0.5?

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 221ca1e..fb76193 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -5,8 +5,8 @@
 # Contributor: judd <jvinet@zeroflux.org>
 
 pkgname=vsftpd
-pkgver=3.0.3
-pkgrel=7
+pkgver=3.0.5
+pkgrel=1
 pkgdesc='Very Secure FTP daemon'
 url='https://security.appspot.com/vsftpd.html'
 arch=('x86_64')
@@ -26,7 +26,7 @@ source=(https://security.appspot.com/downloads/${pkgname}-${pkgver}.tar.gz{,.asc
         vsftpd-fix-seccomp.patch
         vsftpd-conf-pam.patch
         vsftpd-disable-anonymous-access-by-default.patch)
-sha256sums=('9d4d2bf6e6e2884852ba4e69e157a2cecd68c5a7635d66a3a8cf8d898c955ef7'
+sha256sums=('26b602ae454b0ba6d99ef44a09b6b9e0dfa7f67228106736df1f278c70bc91d3'
             'SKIP'
             'd5185e48fffc6253499a55e0fe0f90a3424fc639640af11a9d38df33fb145afe'
             '9fdbfd2ec0207170371ca3cf2b0ddca2dc2fe3d062e5792e0d3e51474c3198c9'
@@ -37,7 +37,8 @@ sha256sums=('9d4d2bf6e6e2884852ba4e69e157a2cecd68c5a7635d66a3a8cf8d898c955ef7'
             '8bb7e4e4640137d38a2944859c2f443eea559ecb7f594c0fa4e962539107af66'
             '751715726c4b888d5c96846ac0bd0d64238cceb28ef3c2ef447af85cdc2b79f1'
             '4baa5a2db122974fa2a9603d335aed59dee5ad4217615fbe247301d129281d20')
-validpgpkeys=('8660FD3291B184CDBC2F6418AA62EC463C0E751C') # Chris Evans
+validpgpkeys=('8660FD3291B184CDBC2F6418AA62EC463C0E751C' # Chris Evans
+              '67A2AB4F41F9972C21F6BF667B89011BCAE1CFEA')
 
 prepare() {
   cd ${pkgname}-${pkgver}
@@ -47,9 +48,9 @@ prepare() {
   sed -e 's|/usr/local/sbin/vsftpd|/usr/bin/vsftpd|' -i EXAMPLE/INTERNET_SITE/${pkgname}.xinetd
 
   # fix linking to openssl 1.1
-  sed -e 's|SSL_library_init|SSL_CTX_new|' -i vsf_findlibs.sh
+#  sed -e 's|SSL_library_init|SSL_CTX_new|' -i vsf_findlibs.sh
 
-  patch -Np1 < ../vsftpd-fix-seccomp.patch
+#  patch -Np1 < ../vsftpd-fix-seccomp.patch
   patch -Np1 < ../vsftpd-conf-pam.patch
   patch -Np1 < ../vsftpd-disable-anonymous-access-by-default.patch
 }

Offline

Board footer

Powered by FluxBB