FreeBSD/inetd

inetd

dokuwiki.fl8jp掲載済

inetdは、クライアントからの要求に応じて、対応するサービスプログラムに対して起動をかける、いわゆるトリガー的な存在のサーバ上のプログラムです。

TCPWrapperによるアクセス制御が可能です。

FreeBSDに標準で付いているFTP(File Transfer Protocol)サーバ
wuftpdの起動方法。
個人的にはProFTPの方がセキュリティ的にも、管理のしやすさ的にもこのましい。

  1. inetd.confの編集
  2. inetdの再起動
  3. 起動の確認
  4. talkを使用する場合のinetd.conf

inetd.confの編集

ftpとtelnetの所の#を外す

> su
# vi /etc/inetd.conf
-----------inetd.conf--------------------------------------------------
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
telnet  stream  tcp     nowait  root    /usr/libexec/telnetd    telnetd
#telnet stream  tcp6    nowait  root    /usr/libexec/telnetd    telnetd
 -----------inetd.conf--------------------------------------------------


inetdの再起動

設定を変更したので、inetdを再起動させ変更を反映させる。

# ps ax |grep inetd
# kill -HUP プロセス番号
又は
# kill -HUP `cat /var/run/inetd.pid`


起動の確認

Windowsで有れば、ffftpとかTeratermなどで接続確認をする。


talkを使用する場合のinetd.conf

#ntalk   dgram   udp     wait    tty:tty /usr/libexec/ntalkd     ntalkd

ここの#を外して
inetdの再起動をする。