在 FreeBSD 上安裝 ProFTPD Server

在 FreeBSD 上安裝和 FreeNAS 及 NAS4Free 相同的 FTP Server。
1. 安裝 ProFTPD Server
# pkg install proftpd

2. 設定檔位置 /usr/local/etc/proftpd.conf
# grep -v -E ‘^#|^$’ /usr/local/etc/proftpd.conf
ServerName                      “ProFTPD Default Installation”
ServerType                      standalone
DefaultServer                   on
ScoreboardFile          /var/run/proftpd/proftpd.scoreboard
Port                            21
UseIPv6                         on
Umask                           022
MaxInstances                    30
CommandBufferSize       512
User                            nobody
Group                           nogroup
DefaultRoot ~ !
AllowOverwrite          on
<Limit SITE_CHMOD>
  DenyAll
</Limit>
  ### We want clients to be able to login with “anonymous” as well as “ftp”
  # UserAlias                   anonymous ftp
  ### Limit the maximum number of anonymous logins
  # MaxClients                  10
  ### We want ‘welcome.msg’ displayed at login, and ‘.message’ displayed
  ### in each newly chdired directory.
  # DisplayLogin                        welcome.msg
  # DisplayFirstChdir           .message
  ### Limit WRITE everywhere in the anonymous chroot
  # <Limit WRITE>
  #   DenyAll
  # </Limit>[@more@]3. 修改 /etc/rc.conf,設定開機時啟動
# vim /etc/rc.conf
加入下面一行
proftpd_enable=”YES”

# echo ‘proftpd_enable=”YES”‘ >> /etc/rc.conf

4. 啟動 ProFTPD Server
# /usr/local/sbin/proftpd &

5. 檢查 FTP Server 是否有正常啟動
# netstat -an | grep *.21
tcp46      0      0 *.21                   *.*                    LISTEN