User Tools

Site Tools


vsftpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vsftpd [2018/05/16 08:10] – [3.配置/etc/firewall开放ftp端口] midas_zhouvsftpd [2025/10/14 06:22] (current) – external edit 127.0.0.1
Line 1: Line 1:
 利用vsftpd可以把widora-neo配置成一个简单的FTP服务器,通过FTP可以很方便地与电脑和手机互传文件。 利用vsftpd可以把widora-neo配置成一个简单的FTP服务器,通过FTP可以很方便地与电脑和手机互传文件。
 ====1.安装vsftpd==== ====1.安装vsftpd====
-opkg update +安装vsftpd: 
- +   opkg update 
-opkg install vsftpd+   opkg install vsftpd
 ====2.配置/etc/vsftpd.conf文件==== ====2.配置/etc/vsftpd.conf文件====
 这里给出一个仅允许本机用户登陆的典型配置: 这里给出一个仅允许本机用户登陆的典型配置:
-### refer to: https://help.ubuntu.com/community/vsftpd +   ### refer to: https://help.ubuntu.com/community/vsftpd 
-listen=YES +   listen=YES 
-anonymous_enable=NO +   anonymous_enable=NO 
-### local enable and root set MUST be in right order +   ### local enable and root set MUST be in right order 
-local_enable=YES +   local_enable=YES 
-local_root=/tf/music +   local_root=/tf/music 
-write_enable=YES +   write_enable=YES 
-local_umask=022 +   local_umask=022 
-check_shell=NO +   check_shell=NO 
-dirmessage_enable=YES +   dirmessage_enable=YES 
-ftpd_banner=Widora-NEO +   ftpd_banner=Widora-NEO 
-session_support=NO +   session_support=NO 
-syslog_enable=YES +   syslog_enable=YES 
-### if you need TLS/SSL options, configure vsftpd accordingly before compiling. +   ### if you need TLS/SSL options, configure vsftpd accordingly before compiling. 
-### set max_per_ip big enough as some clients will need. +   ### set max_per_ip big enough as some clients will need. 
-max_clients=200 +   max_clients=200 
-max_per_ip=20 +   max_per_ip=20 
-accept_timeout=60+   accept_timeout=60
  
 ====3.配置/etc/firewall开放ftp端口==== ====3.配置/etc/firewall开放ftp端口====
-需要对相应的网络接口开放21端口,可以增加一个rule配置: +需要对相应的网络接口开放21端口,可以在firewall中增加一个rule配置: 
-config rule+   config rule
         option name Allow-wan-FTP         option name Allow-wan-FTP
         option src wan         option src wan
         option dest_port 21         option dest_port 21
         option proto tcp         option proto tcp
-        option target ACCEPT +        option target ACCEPT      
-         +
-        +
  
 ====4.启动vsftpd==== ====4.启动vsftpd====
 +设置完成后重新启动:
 +  /etc/init.d/vsftpd enable
 +  /etc/init.d/vsftpd restart
 ====5.其他==== ====5.其他====
 +   -vsftpd和minidln有时会有冲突,最好不要同时运行。
 +   -FTP存储(SD卡或U盘)的文件系统最好采用ext4格式.
 +   -默认安装的vsftp是不支持SSL的,需要的话要在编译的时候加上这个选项。
 +   -客户端软件 andriod上有AndFTP, iOS上有BUZZ_player.
 +
vsftpd.1526458237.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki