
● システム開発 vsftpd
Fedora Coreに設定されているファイル・サーバーです。RedHat9から採用されています。システムで開発したファイルを転送するには必衰ものです。
構造的にはシンプルでセキュリティ面で優れているという評判です。
・yumでのシステムのインストールは下記になります。
yum -y install vsftpd
・起動コマンドは以下になります。
/etc/rc.d/init.d/vsftpd start
・/etc/vsftpd/vsftpd.conf
標準的なシステムの設定です。
下記は参考程度に示したものです。
実際の設定には詳細な情報、資料をを確認して下さい。
本サイトではサーバー構築の手引きまでは紹介しておりません。
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
匿名ユーザはログインさせない
anonymous_enable=NO
# You may change the default value for timing out
an idle session.
アイドル時のタイムアウトを設定(600秒)
idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
接続時時のタイムアウトを設定(60秒)
data_connection_timeout=60
# By default the server will pretend to allow ASCII
mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file"
in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
アスキーモードでアップロード許可する
ascii_upload_enable=YES
アスキーモードでダウンロード許可する
ascii_download_enable=YES
# You may fully customise the login banner string:
ログオン時のグリーティングバナー
ftpd_banner=Welcome to kajuhome.com FTP service.
#
# You may specify an explicit list of local users to chroot()
to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
一般ユーザはホームパスより上へアクセスさせない
chroot_list_enable=YES
ホームパスより上へアクセスさせないユーザリストファイル
chroot_list_file=/etc/vsftpd/chroot_list
# You may activate the "-R" option to the builtin
ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror"
assume
# the presence of the "-R" option, so there is a strong case for enabling
it.
ディレクトリを削除可能にする
ls_recurse_enable=YES
/etc/vsftpd/user_listに書いてあるユーザ はログインさせない
userlist_enable=YES
ユーザが打ち込んだftpコマンドをログに残す(下記2つ)
xferlog_std_format=NO
log_ftp_protocol=YES
タイムスタンプ時間を日本時間に合わせる
use_localtime=YES
パッシブモードを利用にする
pasv_promiscuous=YES
パッシブモード利用時のポート範囲(例:50000〜50030)
pasv_min_port=50000
pasv_max_port=50030
このサーバーの開発者をネットで調べましたが見当たりません。コミュニティで開発されたのかな・・・。
腕時計のご紹介
o.d.m
アジェンダ
|