このページは現在編集中です。
Standalone モードは、Proftpd が常に稼動している状態であり、inetdを経由するよりも少しばかり早く反応する。
ただし、アクセス制限は、/usr/local/etc/proftpd.conf で行う必要があり、/etc/hosts.allow での制限が有効にならない。
# vi /etc/rc.conf
/etc/rc.conf の中に次の1行を加える。ファイル末尾でよい。
proftpd_enable="YES"
# vi /etc/inetd.conf
もし、ftp stream の行が活きていたら、行頭に # をつけてコメントアウトする。
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l #ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l #ftp stream tcp nowait root /usr/libexec/lukemftpd ftpd -l -r #ftp stream tcp6 nowait root /usr/libexec/lukemftpd ftpd -l -r
/usr/local/etc/proftpd.conf.sample を /usr/local/etc/proftpd.conf にコピーして、
# cd /usr/local/etc # cp proftpd.conf.sample proftpd.conf # chmod 644 proftpd.conf
/usr/local/etc/proftpd.conf を編集する。
# vi proftpd.conf
内容は次のような具合。部分的に記載するので該当部分を探して変更する。
ServerName "ProFTPD Custom Standalone" ServerType standalone TimesGMT off UseReverseDNS off IdentLookups off ServerIdent off RootLogin off <Limit SITE_CHMOD> AllowAll </Limit> #以下は、LAN内(192.168.0.0/24と仮定する)に属するIPアドレスからの接続のみを許可する例である。 <Limit LOGIN> Order allow, deny Allow from 192.168.0.0/24 Deny from all </Limit LOGIN>
ひととおり設定が終わったら、FreeBSD7.1RにFTPサーバ(Proftpd)をインストールに戻ってください。