LoginSignup
5
8

More than 5 years have passed since last update.

TCP Wrapper

Posted at

機能

・ /etc/hosts.allow, /etc/hosts.denyファイルに基づいてアクセス制御を行う
 - 実体は、tcpdデーモン
 - libwrapを使用しているアプリケーション(opensshサーバ、popサーバ、imapサーバ、etc)は、tcpdなしでTCP Wrapperの機能を利用する

R7jCoRvx70ItfdzU-ECE65.png

TCP Wrapperのアクセス制御

1, /etc/hosts.allowをチェックする
 - ここで許可されているホストは、許可

2, /etc/hosts.denyをチェックする
 - ここで拒否されているホストは、拒否
 - ここで拒否されていないホストは、許可

記入例

example.comからのTelnetと192.168.28.0/24からの全アクセスを許可する場合

1,まずhosts.allowファイルに許可するアクセス内容を記入

/etc/hosts.allow
in.telnet:       .example.com
ALL:             192.168.28.

 *ドメイン名の先頭にピリオドを忘れないように

2, 次にhosts.denyファイルですべてのアクセスを拒否する

/etc/hosts.deny
ALL:   ALL
5
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
8