斉藤様
御指摘有難うございます。
調べてみました。ftpサーバが立ち上がっていないらしいことは分かり、
proftpdを起動しましたが、大きなファイルの転送や、Macintosh NCSA telnet
でのftp転送はうまくいきません。
以下、何か、おかしなことが有りましたら、御指摘下さい。
At 13:05 03.3.31 +0900, Yasuyuki SAITO wrote:
> かつて,無印Pentium 133MHz マシンに100Base-TX のNIC を
>刺して使ったところ,NFS client としてサーバ上の大きなファイル
>へのアクセスをするとハングアップするという現症に遭遇しました.
>10Base-T のHUB を介して無理矢理10Base-T 環境にしたところ,
>正常に使えるようになりました.
> 今回の件とは無関係かもしれませんが,マシンとNIC はどのような
>スペックでしょうか.
マシンは、Pentium III 833MHz、NICは、メーカPCIのおそらく100/10base-Tで、
斉藤さんのように、10Base-T のHUB を介して無理矢理10Base-Tとして
見ましたが、状況は変わりませんでした。
At 13:20 03.3.31 +0900, Yasuyuki SAITO wrote:
> proftpd は起動しているのでしょうか.
Vine linux Web.に掲載されている2.5用(?)のドキュメントには、
インストール時から起動されていると言うような書き方がされていたので、
特に設定を行なわなかったのですが、
>0. とりあえず,ftp サーバ上でftp localhost として接続できるでしょうか.
接続できませんでした。そこで、
inetd.confのproftpdの行のコメントアウトをはずして、
proftpd.confの
ServerType standalone
をコメントアウト(#)し、次の行に
ServerType inetd
を記入し、再起動しました。
その結果、ftpでlocalhostに接続できるようになった
>(3)2.6r1をftpサーバとする場合
>他のLinuxマシンからのftpのアクセスを拒否します。
>
>ftp: connect: Connection refused
>
これも、接続できるようになりましたが、
他マシンとの大きなファイル(23MBまででストップ/全89MB)のやり取り、
Macintosh NCSA Telnetでのやり取りは相変わらず駄目なままです。
>1. /etc/proftpd.conf の内容 ------------>(1)
>2. grep ftp /etc/inetd.conf の結果 ------------>(2)
>3. ls /etc/rc.d/rc?.d/S*proftpd の結果(? はrun level の値)
そのようなファイルは有りませんとのメッセージ(run level 0-6で)
>4. /etc/hosts.deny の内容(場合によっては/etc/hosts.allow も)
------------>(3)
>
>あたりを見れば糸口が掴めると思います.
------------>(1)
[root@host /etc]# cat proftpd.conf
# This is a basic ProFTPD configuration file
#
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp"
# for normal operation and anon.
ServerName "ProFTPD Basic Configuration"
#ServerType standalone
ServerType inetd
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Use localtime
TimesGMT FALSE
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nobody
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
# 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>
------------>(2)
[root@host /etc]# grep ftp /etc/inetd.conf
/etc/inetd.conf:#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd-l -a
/etc/inetd.conf:ftp stream tcp nowait root /usr/sbin/tcpd in.proftpd
/etc/inetd.conf:# Tftp service is provided primarily for booting. Most sites
/etc/inetd.conf:#tftp dgram udp wait root /usr/sbin/tcpd in.tftpd
------------>(3)
[root@host /etc]# cat hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
swat: ALL
[root@host /etc]# cat hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
swat: localhost
--
M. Matsui