[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [+] |
OS: | FreeBSD-3.2R (ちと古い…) |
package: | tcp_wrappers-7.6.tgz |
telnet stream tcp nowait root /usr/local/libexec/tcpd telnetd pop3 stream tcp nowait root /usr/local/libexec/tcpd /usr/local/libexec/popper -s |
次に、アクセス制御の内容を指定します。
daemon_list : client_list [ : options ] |
telnetd: 192.168.1. .in.usupi.org popper: 192.168.0.144/255.255.255.248 EXCEPT 192.168.0.150 |
option 名 | 意 味 |
---|---|
allow | (hosts.deny でも)許可します。 |
deny | (hosts.allow でも)拒否します。 |
severity ログの種類 | syslog に飛ばしてくれます。 |
spawn shellコマンド | 指定したコマンドを実行します。 |
twist shellコマンド | (daemon の代わりに)指定したコマンドを実行します。 |
% /usr/local/sbin/tcpdmatch popper tamao client: hostname tamao client: address 192.168.0.149 server: process popper matched: /usr/local/etc/hosts.allow line 4 option: spawn (/usr/local/sbin/popcheck 192.168.0.149) & access: granted |
% kill -HUP `cat /var/run/inetd.pid` |
% telnet tamao 110 Trying 192.168.0.149... Connected to tamao. Escape character is '^]'. +OK QPOP (version 2.53) at tamao starting. <785.969974177@tamao> ... % telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. |
[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [-] | |
usu@usupi.org | Last modified : Wed Jun 6 14:35:47 2001 |