# grep 'telnet' /etc/inetd.conf telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
... #gopher stream tcp nowait root /usr/sbin/tcpd gn ... #time stream tcp nowait nobody /usr/sbin/tcpd in.timed #time dgram udp wait nobody /usr/sbin/tcpd in.timed ...
# tcpdchk -v Using network configuration file: /etc/inetd.conf
| daemon_list | is a list of one or more daemon process names (argv[0] values) or wildcards. |
|---|---|
| client_list | is a list of one or more host names, host addresses, patterns that will be matched against the client host name or address. |
ALL: ALL
ALL: .hoge.bt in.ftpd: ALL ipop3d: ALL imap: ALL
# tcpdchk -v Using network configuration file: /etc/inetd.conf >>> Rule /etc/hosts.allow line 6: daemons: ALL clients: .hoge.bt access: granted >>> Rule /etc/hosts.allow line 7: daemons: in.ftpd clients: ALL access: granted >>> Rule /etc/hosts.allow line 8: daemons: ipop3d clients: ALL access: granted >>> Rule /etc/hosts.allow line 9: daemons: imapd clients: ALL access: granted >>> Rule /etc/hosts.deny line 11: daemons: ALL clients: ALL access: denied
# tcpdmatch in.ftpd hoge warning: hoge: hostname alias warning: (official name: hoge.hoge.bt) client: hostname hoge.hoge.bt client: address 192.168.1.10 server: process in.ftpd matched: /etc/hosts.allow line 6 access: granted # tcpdmatch in.telnetd www.druknet.net.bt warning: : www.druknet.net.bt hostname alias warning: (official name: www.druknet.net.bt) client: hostname www.druknet.net.bt client: address ***.***.***.*** server: process in.telnetd matched: /etc/hosts.allow line 6 access: denied
... Aug 20 13:49:03 hoge in.telnetd[3035]: connect from 192.168.1.5 Sep 1 17:31:29 hoge login: FAILED LOGIN 1 FROM 192.168.1.117 FOR root, Authentication failure ...
ALL: ALL: spawn (/usr/sbin/safe_finger -l @%h \ | /bin/mail -s "** ATTENTION ** wrapper_%d" hoge@hoge.bt) &
| % | Description |
|---|---|
| %a(%A) | Client(Server) host address |
| %d | Deamon process name |
| %h(%H) | Cliant(Server) host name or IP address |
| %p | Deamon process id |
| %u | Client user name. If can not, return unknown |
| %% | a % word |
[210.167.212.20] Login: devil Name: Directory: /home/devil Shell: /bin/bash On since Sun Feb 20 06:23 (JST) on pts/0 from devil.com (messages off) No mail. No Plan.