LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ProFTPd anonymous login on loopback interface fail. (https://www.linuxquestions.org/questions/slackware-14/proftpd-anonymous-login-on-loopback-interface-fail-4175665148/)

dowelld 11-29-2019 09:45 AM

ProFTPd anonymous login on loopback interface fail.
 
OK I know I'm missing something, but I can't see what, help.

I have a working install of proftpd 1.3.6b on slackware64 14.2, which all works as it should, but it won't allow anonymous logins on the loopback interface.

Here's two uploads, made from the same ssh session on the system.

To the loopback interface (fails)
Code:

root@rsf:/etc# curl -v -s -T /etc/hosts ftp://127.0.0.1/
*  Trying 127.0.0.1:21...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 21 (#0)
< 220 Welcome
> USER anonymous
< 331 Password required for anonymous
> PASS ftp@example.com
< 530 anonymous is not authorized
* Access denied: 530
* Closing connection 0

To the external IP address (works)
Code:

root@rsf:/etc# curl -v -s -T /etc/hosts ftp://192.168.110.211/
*  Trying 192.168.110.211:21...
* TCP_NODELAY set
* Connected to 192.168.110.211 (192.168.110.211) port 21 (#0)
< 220 ProFTPD Server[::ffff:192.168.110.211]
> USER anonymous
< 331 Anonymous login ok, send your complete email address as your password
> PASS ftp@example.com
< 230 Anonymous access granted, restrictions apply
> PWD
< 257 "/" is the current directory
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||51759|)
*  Trying 192.168.110.211:51759...
* TCP_NODELAY set
* Connecting to 192.168.110.211 (192.168.110.211) port 51759
* Connected to 192.168.110.211 (192.168.110.211) port 21 (#0)
> TYPE I
< 200 Type set to I
> STOR hosts
< 150 Opening BINARY mode data connection for hosts
} [619 bytes data]
* We are completely uploaded and fine
* Remembering we are in dir ""
< 226 Transfer complete

proftpd log shows
Code:

crypt(3) failed: Invalid argument
USER ftp (Login failed): Incorrect password
USER anonymous: no such user found from localhost [127.0.0.1] to ::ffff:127.0.0.1:21.

But only for login attemptgs through 127.0.0.1.
All logins through the external IP work.

Help... please.

dowelld 11-29-2019 06:16 PM

For the record.

This was because I'd encased the proftpd ftp service in a <VirtualHost> Directive.


All times are GMT -5. The time now is 06:42 AM.