vsftpd works fine ( i 've tested in LAN aloso)
but nobody could not connect fromi nternet (WAN)
router configured properly
all servers from ssh to httpd works fine ,except vsftpd
Any ideas? thanks for any attention.
(selinux disabled)
//------------------------
Code:
[root@compname:/var/www/html] # cat /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
dirlist_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_world_readable_only=NO
chroot_local_user=YES
guest_enable=YES
connect_timeout=150
data_connection_timeout=500
dirmessage_enable=YES
connect_from_port_20=YES
pam_service_name=/etc/pam.d/vsftpd
user_sub_token=$USER
guest_username=virtualftp
local_root=/home/vweb/$USER
listen=YES
listen_port=21
#pasv_min_port=30000
pasv_max_port=1024
accept_timeout=200
#listen_ipv6=YES
ftpd_banner=welcome
xferlog_enable=YES
/////------------------------------------------
Code:
[root@compname:/var/www/html] # cat /etc/pam.d/vsftpd
#%PAM-1.0
##session optional pam_keyinit.so force revoke
##auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers
##onerr=succeed
##auth required pam_shells.so
##auth include password-auth
##account include password-auth
##session required pam_loginuid.so
##session include password-auth
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users
account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users
#session required pam_loginuid.so
[root@compname:/var/www/html] #
[/code]
Code:
[root@compname:/var/www/html] # service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[root@compname:/var/www/html] #
///-----------------------------------
Code:
[root@compname:/var/www/html] # ftp localhost
Trying ::1...
ftp: connect to address ::1Connection refused
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
220 welcome
Name (localhost:me): virt2
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,234,252).
150 Here comes the directory listing.
drwx------ 2 502 501 4096 Jun 16 09:55 New Folder
-rw------- 1 502 501 0 Jun 16 06:53 virt2.txt
226 Directory send OK.
ftp>
---------- Post added at 07:50 AM CDT ---------- Previous post was at 07:43 AM CDT ----------
b.t.w , i know these
connect_timeout=150
data_connection_timeout=500
pasv_max_port=1024
accept_timeout=200
are not nomal at all ...