2005-08-14
公開したときのためのFTPサーバの再設定。
Anonymous接続出来ないようにする。
<Anonymous ~ftp>〜</Anonymous>まですべてコメントアウト。
# A basic anonymous configuration, no upload directories.
#<Anonymous ~ftp>
#
# User ftp
# Group ftp
#
# # 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
#
# # do not require shells listed in /etc/shells (user ftp do not have
# # shell...)
# RequireValidShell no
# # 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>
#
#</Anonymous>
<Global>
RootLogin off
AuthAliasOnly off ←onになっているのを変更。
</Global>
外からの接続は出来なくし、接続を家LAN内に制限。
最後に以下を追加
<Limit LOGIN>
Order allow,deny
Deny from all
Allow from 192.168.0.0/24
</Limit>
proftpdを再起動。
/etc/rc.d/init.d/proftpd restart
セ記事を書く
セコメントをする