我社定好vsftpd之後
從本機可以正常連線
[root@localhost ~]# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): stan
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
但是從外部電腦聯不進來
可以ping的到ip
[root@localhost ~]# netstat -tulnp | grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 4073/vsftpd listen_port=21
防火牆 SELinux關閉
iptables 設定
iptables -A INPUT -p TCP -i $EXT_IF --dport 21 -j ACCEPT
iptables -A INPUT -p TCP -i $EXT_IF --dport 65400:65410 -j ACCEPT
-------------------------------------
vsftpf.conf 設定
local_umask=002
write_enable=YES
local_enable=YES
connect_from_port_20=YES
listen=YES
listen_port=21
pasv_enable=YES
pasv_min_port=65400
pasv_max_port=65410
--------------------------------------
請問可能哪個地方出錯
3q ..
--
從本機可以正常連線
[root@localhost ~]# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): stan
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
但是從外部電腦聯不進來
可以ping的到ip
[root@localhost ~]# netstat -tulnp | grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 4073/vsftpd listen_port=21
防火牆 SELinux關閉
iptables 設定
iptables -A INPUT -p TCP -i $EXT_IF --dport 21 -j ACCEPT
iptables -A INPUT -p TCP -i $EXT_IF --dport 65400:65410 -j ACCEPT
-------------------------------------
vsftpf.conf 設定
local_umask=002
write_enable=YES
local_enable=YES
connect_from_port_20=YES
listen=YES
listen_port=21
pasv_enable=YES
pasv_min_port=65400
pasv_max_port=65410
--------------------------------------
請問可能哪個地方出錯
3q ..
--
All Comments