問題 lpic-201-450-topic-1-question-50・第3版

TCP Wrappers(libwrap)に対応するサービスで、接続元の許可・拒否を設定するファイルの組はどれか。

  1. A /etc/tcpd.allow と /etc/tcpd.deny
  2. B /etc/tcpwrapper.allow と /etc/tcpwrapper.deny
  3. C /etc/hosts.allow と /etc/hosts.deny
  4. D /etc/access.allow と /etc/access.deny
  5. E /etc/service.allow と /etc/service.deny

正解:C

理由

TCP Wrappersは/etc/hosts.allow、次に/etc/hosts.denyを照合する。サービスがlibwrapに対応している場合に、この制御が適用される。

選択肢ごとの説明

A. /etc/tcpd.allow と /etc/tcpd.deny

tcpdという名前を付けたこの2ファイルは、標準の許可・拒否設定ファイルではない。

B. /etc/tcpwrapper.allow と /etc/tcpwrapper.deny

標準のファイル名はhosts.allowとhosts.denyである。

C. /etc/hosts.allow と /etc/hosts.deny

TCP Wrappersの接続制御を定義する標準のファイルである。

D. /etc/access.allow と /etc/access.deny

TCP Wrappersが標準で読むファイル名とは異なる。

E. /etc/service.allow と /etc/service.deny

TCP Wrappersが標準で読むファイル名とは異なる。

参考資料

お問い合わせ

演習する →