安裝

cd /usr/ports/ftp/pure-ftpd
make install clean(選UTF-8)

設定

cd /usr/local/etc
cp pure-ftpd.conf.sample pure-ftpd.conf

vi /etc/rc.conf

加入

pureftpd_enable="YES"

ftp傳輸檔案時是有特定的port,
如果防火牆有擋port,可以自行設定ftp檔案傳輸的port

vi /usr/local/etc/pure-ftpd.conf

將PassivePortRange這行改成
PassivePortRange 65000 65500

啟用ftp
/usr/local/etc/rc.d/pure-ftpd start

Categories: FreeBSD