You are not logged in.

#1 2009-12-06 02:14:26

whukes
Member
Registered: 2008-07-18
Posts: 34

vsftpd and mount --bind problem

I'm having a problem listing directories on my ftp server.  Directories in /srv/ftp that have been mounted with the --bind flag won't list.  If I connect to the server locally the directories list fine.  If I connect to the server using my internet IP the directories will not list.  Other directories that are in /srv/ftp that have not been --bind'ed list fine from my internet IP.  WTF mate?

vsftpd.conf

listen_address=10.28.30.254
listen=YES
background=YES
anonymous_enable=NO
local_enable=YES
chroot_local_user=YES
guest_enable=YES
guest_username=virtual
virtual_use_local_privs=YES
write_enable=YES

vsftpd_log_file=/var/log/vsftpd.log
dual_log_enable=YES

example of listing of tv from filezilla connected to LOCAL IP

Status:    Retrieving directory listing...
Command:    CWD tv
Response:    250 Directory successfully changed.
Command:    PWD
Response:    257 "/tv"
Command:    PASV
Response:    227 Entering Passive Mode (10,28,30,254,55,207).
Command:    LIST
Response:    150 Here comes the directory listing.
Response:    226 Directory send OK.
Status:    Directory listing successful

example of listing of tv from filezilla connected to INTERNET IP

Status:    Retrieving directory listing...
Command:    CWD tv
Response:    250 Directory successfully changed.
Command:    PWD
Response:    257 "/tv"
Command:    PASV
Response:    227 Entering Passive Mode (99,32,xxx,xxx,228,147).
Command:    LIST
Response:    150 Here comes the directory listing.
Error:    Connection timed out
Error:    Failed to retrieve directory listing

example of listing of directory not mounted with --bind from filezilla connected to INTERNET IP

Status:    Retrieving directory listing...
Command:    CWD /
Response:    250 Directory successfully changed.
Command:    PWD
Response:    257 "/"
Command:    CWD upload
Response:    250 Directory successfully changed.
Command:    PWD
Response:    257 "/upload"
Command:    TYPE I
Response:    200 Switching to Binary mode.
Command:    PASV
Response:    227 Entering Passive Mode (99,32,xxx,xxx,23,15).
Command:    LIST
Response:    150 Here comes the directory listing.
Response:    226 Directory send OK.
Status:    Directory listing successful

This is driving me nuts.  Thanks for any advice.

Offline

Board footer

Powered by FluxBB