Re: ttloop peer died

From: Bela Lubkin (belal_at_sco.com)
Date: 10/14/03


Date: Tue, 14 Oct 2003 21:31:03 GMT
To: scomsc@xenitec.ca

Tom Melvin wrote:

> The customer is not complaining of failed login, it is a 15 user m/c I
> would think the default 64 pseudo ttys are fine. Actually, just relooked
> at syslog:
>
> Oct 13 01:57:22 cvntry telnetd[28609]: ttloop: peer died: Unknown error
> Oct 13 02:08:08 cvntry telnetd[28616]: ttloop: peer died: Unknown error
> Oct 13 02:20:57 cvntry telnetd[28630]: ttloop: peer died: Unknown error
> Oct 13 02:32:32 cvntry telnetd[28637]: ttloop: peer died: Unknown error
> Oct 13 02:43:26 cvntry telnetd[28639]: ttloop: peer died: Unknown error
> Oct 13 02:54:18 cvntry telnetd[28641]: ttloop: peer died: Unknown error
> Oct 13 03:05:14 cvntry telnetd[28663]: ttloop: peer died: Unknown error
> Oct 13 03:16:04 cvntry telnetd[28674]: ttloop: peer died: Unknown error
> Oct 13 03:27:01 cvntry telnetd[28681]: ttloop: peer died: Unknown error
> Oct 13 03:38:02 cvntry telnetd[28683]: ttloop: peer died: Unknown error
> Oct 13 03:48:52 cvntry telnetd[28685]: ttloop: peer died: Unknown error
> Oct 13 04:00:28 cvntry telnetd[28692]: ttloop: peer died: Unknown error
> Oct 13 04:10:29 cvntry telnetd[28703]: ttloop: peer died: Unknown error
> Oct 13 04:18:59 cvntry telnetd[28705]: ttloop: peer died: Unknown error
> Oct 13 04:27:29 cvntry telnetd[28712]: ttloop: peer died: Unknown error
> Oct 13 04:35:59 cvntry telnetd[28714]: ttloop: peer died: Unknown error
> Oct 13 04:44:27 cvntry telnetd[28716]: ttloop: peer died: Unknown error
> Oct 13 04:52:53 cvntry telnetd[28718]: ttloop: peer died: Unknown error
> Oct 13 05:02:17 cvntry telnetd[28725]: ttloop: peer died: Unknown error
> Oct 13 05:11:16 cvntry telnetd[28736]: ttloop: peer died: Unknown error
>
> All these times are in the early am - they do not use the system over
> night - those must be left over from during the day but then again,
> the 13th was a monday, they also don't use the system on Sunday's
> so I have no idea where those are comming from. Weird

It could be some sort of an attack; or some device (like a network
printer) wigging out. Notice that the times are pretty evenly spaced:
about 10 minutes apart, until the last few which are about 8.5 minutes
apart. The regularity strongly suggests some sort of automated process.

You could put in a little watcher daemon, something like:

  #!/bin/sh
  while :; do
    tail -0f /usr/adm/syslog | grep -q ttloop
    date >> /usr/adm/ttloop-netstat
    netstat -n -p tcp | fgrep '.23 ' >> /usr/adm/ttloop-netstat
  done

You're looking for output that looks something like:

  Proto Recv-Q Send-Q Local Address Foreign Address (state)
  tcp 0 0 127.0.0.1.23 127.0.0.1.1160 TIME_WAIT

Here I had done a `telnet localhost` and immediately disconnected. Your
mystery connections will probably be from a different host, and may be
in a different state than TIME_WAIT (but probably TIME_WAIT). The "-n"
flag skips hostname lookups, which could be slow in some cases, and
might possibly make it miss the actual lines you're interested in. Once
you have an idea of which lines are the mystery telnets, you can look
the names up witn `ping`, `host`, `nslookup`, etc.

>Bela<



Relevant Pages

  • Re: ttloop peer died
    ... > Tom Melvin wrote: ... The regularity strongly suggests some sort of automated process. ... > Here I had done a `telnet localhost` and immediately disconnected. ... > mystery connections will probably be from a different host, ...
    (comp.unix.sco.misc)
  • Re: Yet another thread on the legality of port scanning
    ... Which portthe packets are sent to is ... If I do a "nice", normal portscan on a host - via TCP, UDP or ICMP I am ... This sort of behavior is ... If I try to flood your host with abnormally LARGE ICMP packets endlessly ...
    (Security-Basics)
  • Re: ZFS
    ... OK guys that sort of gives some courage to dare a next experiment. ... I've got one host which has one AMP application and a mailserver ... which I'd like to set up with live zfs goodness (I know that ...
    (freebsd-stable)
  • Re: Former female contestant to host? (aloo)
    ... I sort of agree with you when it comes to maybe the possibility of Leann ... as a potential tv host. ... they would get good fan support unless they hosted the show naked. ...
    (alt.tv.survivor)
  • Re: Rebecca DeMoriay; flawless natural beauty in her 40s
    ... Because it turns every post into some sort of implied challenge. ... I think that's the clueless who's only model is the radio talk show. ... and forget that the host often doesn't care ... So they come to the newsgroups, and think they can get discussion ...
    (rec.arts.tv)