• 締切済み

RedHat9.0 + ProFTPD1.28が、ローカルホスト上でうまく動作しません

おはようございます。 RedHat9.0 + ProFTPD1.28が、ローカルホスト上でうまく動作しません。 これまでどのような設定を行ったかと言うと、、、 (設定は全てWebmin1.090で行っています) 1.Webmin - 「サーバー」-「ProFTPD Server」-「Edit Config Files」で、/etc/proftpd.confを、下記の通りに編集 ServerName "vacuus FTP Server" ServerType inetd DefaultServer on ServerIdent on "FTP server ready." UseReverseDNS off IdentLookups off DefaultRoot ~ !admin Port 21 Umask 022 TimeGMT FALSE MaxInstances 30 ExtendedLog /var/log/roftpd.log User nobody Group nobody <Directory /*> AllowOverwrite on </Directory> 2.エディタで/etc/xinetd.d/ftpファイルを新規に作成、ファイルの内容は下記の通り。 114-7 service ftp { disable = no socket_type = stream protocol = tcp wait = no user = root server = /user/sbin/in.proftpd } 3.xinetd.dの変更を反映させるために、Webmin - 「サーバー」-「ネットワーク」-「拡張インターネットサービス」で、「変更を適用」をクリック 4.システムを再起動、その後rootで、ログイン 1~4の作業を実施した後、 [root@vacuus root]# ftp localhost とすると、 ftp: connect: Connection refused となってしまいます。 設定に何が不足しているのか、もしおわかりになる方がいたら、教えてください。

みんなの回答

  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.1

Proftpd は「libwrapper」 が組み込まれていませんか? それなら、hosts.allow / hosts.deny で接続許可の設定が必要かも? /var/log 配下のログファイルも確認してください。 エラーの原因が出力されているのでは?

関連するQ&A

  • xinetdとproftpdについて

    宜しくお願いします。 xinetdを使いproftpdでFTPの設定を行っております。 FTPポートにIPアドレスを追加したいので、proftpd.confに追加するIPをonly_formで追加したので、xinetdとproftpdを再起動しようとしたのですが、xinetdは問題なく再起動できたのですが、proftpdが再起動できません。こんなエラーが返されます。 logs - fatal: Socket operation on non-socket logs - (Running from command line? Use `ServerType standalone' in config file!) /etc/xinetd.confの内容は defaults { instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30 } includedir /etc/xinetd.d となっております。(コメント行は省いています。) /etc/xinetd.d/proftpdの内容は ervice ftp { socket_type = stream wait = no user = root server = /usr/local/sbin/in.proftpd log_on_success += DURATION USERID log_on_failure += USERID nice = 10 disable = no only_form = ***.***.***.*** } となっております。 proftpdが再起動できないので、設定が反映されず、上記のonly_formのIPアドレスでアクセスできません。

  • Proftpdの設定

    使っている環境 OS:CentOS 5 proftpd-1.3.0a-3.el5.rf xinetd-2.3.14-10.el5 Gnome入ってます。 proftpd.confの中身 ServerName "ProFTPD server" ServerIdent on "FTP Server ready." ServerAdmin root@localhost ServerType inetd DefaultServer on AccessGrantMsg "User %u logged in." DeferWelcome off DefaultRoot ~/public_file !wheel AuthPAMConfig proftpd AuthOrder mod_auth_pam.c* mod_auth_unix.c IdentLookups off UseReverseDNS off Port 21 Umask 022 ListOptions "-a" AllowRetrieveRestart on AllowStoreRestart on MaxInstances 20 # Set the user and group that the server normally runs at. User nobody Group nobody # Disable sendfile by default since it breaks displaying the download speeds in # ftptop and ftpwho UseSendfile no # This is where we want to put the pid file ScoreboardFile /var/run/proftpd.score # Normally, we want users to do a few things. <Global> AllowOverwrite yes <Limit ALL SITE_CHMOD> AllowAll </Limit> </Global> LogFormat default "%h %l %u %t \"%r\" %s %b" LogFormat auth "%v [%P] %h %t \"%r\" %s" LogFormat allinfo "%t : %u (%a [%h]) : [%s], %T, %m (%f)" TLSEngine on TLSRequired off TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd.pem TLSCipherSuite ALL:!ADH:!DES TLSOptions NoCertRequest TLSVerifyClient off TLSLog /var/log/proftpd/tls.log ExtendedLog /var/log/proftpd/access.log WRITE,READ default ExtendedLog /var/log/proftpd/auth.log AUTH auth ExtendedLog /var/log/proftpd/all.log ALL allinfo TimesGMT off MasqueradeAddress eternalxaion.dip.jp PassivePorts 60000 60030 AuthUserFile /etc/ftpd.passwd AuthGroupFile /etc/ftpd.group AuthOrder mod_auth_file.c ファイアウォールでは信頼できるサービスのFTPにチェックいれてます。 /etc/xinetd.d/xproftpdの中身 service ftp { disable = no socket_type = stream wait = no user = root server = /usr/sbin/in.proftpd log_on_success += HOST PID log_on_failure += HOST nice = 10 } ユーザ名とパスワードはOSのログイン名とパスワードでいいんですよね?ちなみにログは記録されてませんでした。ファイルの権限は755の状態です。なぜログインできないのかお分かりになる方よろしくお願いします

  • ProFTPD 1.2.2rc1 Server (ProFTPD)

    以前も、同じような質問をしたのですが解決出来なくてもういちど助けてもらえたらと思います。。。。 ^^^^^^^^^^^^^^^^^ ホスト ftp.*****.jp を探しています. ホスト ftp.*****.jp (***.***.**.** (21)) に接続しています. 接続しました. 220 ProFTPD 1.2.2rc1 Server (ProFTPD) [***.***.**.**] >USER ******** 331 Password required for ekun_ftp. >PASS [xxxxxx] 230- ****************** Site Administrator FTP instructions ****************** This session begins in your user home directory at /users/******* ログインできません. ^^^^^^^^^^^^^^^^ このような表示が出てFTP接続が出来ません。 ProFTPD 1.2.2rc1 Server (ProFTPD) にFTP接続できません。 ユーザーID。パスワード。開始フォルダ。 全てレンタルサーバー屋の言うとおりに設定しています。 FTPクライアントはffftp ver 1.88a を使用しています。

  • FTP(proftpd)のユーザー作成について

    下記のコマンドでFTP(proftpd)をインストールしました。 ※FTP(proftpd)はUbuntuをインストール時に作成したユーザでインストールしました。 sudo apt-get install proftpd インストールしたFTP(proftpd)のバージョンは下記の通りです。 ProFTPD Version 1.3.3d htmlを格納先は下記の通りです。 /var/www/ wwwディレクトリの所有者等は下記の通りです。 drwxr-xr-x 2 root root 4096 2011-10-20 11:13 www 皆さんに聞きたい事はFTPユーザを作成する際の注意点などをご教授いただけませんでしょうか。 OSはUbuntuで、バージョンは11.0.4です。 今回、初めてUbuntuを勉強しており、ネットで調べながらっていうか、パクリながらFTP(proftpd)を設定しています。 些細な事や一般的な事など何でも構いませんので宜しくお願いします。 お力を貸してください。

  • centos6.5でproftpdの設定

    はじめまして。 サーバー構築初心者で解らないことばかりですが、centos6.5で構築しています。 自分のサーバーにFTP転送でデータを受け取りたいのでが、ProFTPD(proftpd-1.3.4d)の設定をどなたか教えていただけたらと思い書き込ませていただきました。 現在RAN内でFFFTPで動作確認できています。(centosのユーザーとパスワードにて) 外部からはディレクトリが無いとでて繋がりません。(centosのユーザーとパスワードです) 外部から繋がる設定をおしてください。 また、データ 受け取りディレクトリーの作り方、 ユーザーの作り方(パスワードの作り方)、 グループの作り方、 作ったユーザーが特定のデレクトリー以外にアクセスできないようなリミットのかけ方など 教えてください。 またそれ以外にも必要な設定もお願いいたします。 皆様お忙しいと思いますが宜しくお願いいたします。

  • proftpd.confの設定について

    こんにちは、honiyonです。 proftpdの設定をしています。  ログイン制限を使用と、まずは以下のように設定しました。  (localhostからのみ接続可) <Limit LOGIN> Order allow, deny Allow from 127.0.0.1 Deny from all </Limit LOGIN>  そして /etc/init.d/proftpd restartとして設定を反映して、 #ftp localhost  としたところ、正しく繋がりました。  では今度は 192.168.0.* のネットワークからの接続を許可しようと、 <Limit LOGIN> Order allow, deny Allow from 127.0.0.1 Allow from 192.168.0. Deny from all </Limit LOGIN>  と設定して、/etc/init.d/proftpd restart として、 #ftp localhost  としたところ、接続に失敗しました。 [root@hoge /etc]# ftp localhost Connected to hoge. 421 Service not available, remote server has closed connection ftp>  特にログにエラー等は出力されません。  この原因は何でしょうか?  よろしくお願いします(.. VineLinux 2.5 proftpd-1.2.6-0vl1

  • ProFTPDの設定の反映

    /etc/proftped.confをwebminで編集しましたが、設定が反映されていないようです。 webminをやめて、Linuxで直接反映させることにしました。 プロセスを確認してkillして再起動するまでの手順を教えてください。 ps aux | grep proftpd nobody 1381 0.0 0.4 2471 1258 ?    S 20:34 … root   1645 0.0 0.2 4605  681 pts/0 S 21:10 … このように2行の結果が出ましたが、それぞれの値の意味も教えてください。 なぜ2行も出てきたのかも分かりません。 killコマンドも使ったことがない初心者です。

  • コマンドライン からproftpd を起動しようとすると、proftpd が起動しません。

    こんばんわ, 現在Linuxでftpサーバー(インターネット)を立ち上げようと挑戦しています。 とりあえず,インストールは終わり,基本的な設定は終わったのですが,タイトルどおりコマンドライン からproftpd を起動しようとすると、"Fatal: Socket operation on non-socket"というメッセージが出て、proftpd が起動しません。http://www.infoscience.co.jp/technical/proftpd/configuration.html によると,それは,「proftpd.conf 設定ファイルを編集して、ServerType directive を読み込むように、追加、編集する必要があります」とありますが, 私のetc/proftpd/proftpd.confの中身は 「ServerType    inetd」 にしています。何がおかしいのでしょうか。 よろしくお願いします。

  • ログ管理

    ftpサーバーのログファイルにログが記載されないトラブルにみまわれております。 /etc/xinetd.d/vsftpd は、 service ftp { ... log_type = SYSLOG local3 ... } と設定しまして、 /etc/syslog.conf には、 ... local3.* /var/log/ftpd.log ... と設定し、 /var/log ディレクトリに、アクセス制限が644の所有者及びグループがrootのファイル ftpd.log を作成しました。 以下の設定で、デーモンとシステムログを以下のように再起動させました。 #service xinetd reload #service syslog reload これで、ftpサーバーにアクセスしたら、/var/log/ftpd.log にログが残ると思ったのですが、ログが記録されません。 上記の手順では不備があるのでしょうか。 問題解決の答えないしヒントを教えてください。

  • proftpd inetd に変更する方法?

    現在、Centos8 準拠の国産の Miracle Linux 8.6 を使って standalone 方式で FTP サーバーを立ち上げましたが、DDNS を使って外部からアクセスできるようにするには、inetd 方式にする必要があることがわかりました。(standaloneだとIPが変わっても追従できない。) そこで、現在 LAN 内部では正常に動作している standalone 方式の proftpd を inetd 方式に変更したいのですが、やり方がわからず困っています。 ご教示頂きたく、よろしくお願いいたします。 <私の方でやった事> (1)xinetdをインストール # dnf -y install xinetd (2)xinetdを起動 # systemctl start xinetd.service (3)xinetdの状態確認 # systemctl status xinetd.service systemctl status xinetd.service ● xinetd.service - Xinetd A Powerful Replacement For Inetd Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2023-03-25 00:08:38 JST; 4min 33s ago Docs: man:xinetd man:xinetd.conf man:xinetd.log     (以下省略) Active: active (running) となっているので正常動作中と判断しました。 (4)proftpd.conf を修正する。 # vi /usr/local/etc/proftpd.conf ServerType standalone  から ServerType inetd (5)proftpd と xinetd を再起動。 # systemctl restart proftpd # systemctl restart xinetd.service proftpd 関連の「必要な処理」が何もされていないためか、この状態では proftpd は動作していません。 下記のように Active: failed となります。 # systemctl status proftpd ● proftpd.service - proftpd Loaded: loaded (/etc/systemd/system/proftpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2023-03-25 00:28:31 JST; 33min ago Main PID: 1695 (code=exited, status=1/FAILURE) standalone 方式の時、 /etc/systemd/system/proftpd.service という名で、以下の内容が記載されているファイルを作成しましたが [Unit] Description=proftpd After=network.target [Service] Type=simple RemainAfterExit=yes ExecStart=/usr/local/sbin/proftpd [Install] WantedBy=multi-user.target これが inetd 方式になるとどうなるのか、も良くわかりません。 また上記の「必要な処理」をネットで探したのですが、私には旧方式のもの(systemctl ではなく init.d/xinetd restart のような)しか見つかりませんでした。 以上のような状況です。 解決方法を、ご教示頂きたく、よろしくお願いいたします。