TCP Wrappers(libwrap)に対応するサービスで、接続元の許可・拒否を設定するファイルの組はどれか。
- A /etc/tcpd.allow と /etc/tcpd.deny
- B /etc/tcpwrapper.allow と /etc/tcpwrapper.deny
- C /etc/hosts.allow と /etc/hosts.deny
- D /etc/access.allow と /etc/access.deny
- 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が標準で読むファイル名とは異なる。