home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.internals:1593 comp.unix.wizards:3286
- Newsgroups: comp.unix.internals,comp.unix.wizards
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!casper
- From: casper@fwi.uva.nl (Casper H.S. Dik)
- Subject: Re: Berkeley networking security
- Message-ID: <1992Jul23.144125.21493@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: adam.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- References: <1992Jul23.085632.17788@cl.cam.ac.uk> <1992Jul23.081603.21840@hemlock.cray.com>
- Date: Thu, 23 Jul 1992 14:41:25 GMT
- Lines: 42
-
- roehrich@cray.com (Dean Roehrich) writes:
-
- >In article <1992Jul23.085632.17788@cl.cam.ac.uk> nmm@cl.cam.ac.uk (Nick Maclaren) writes:
- >>A short while ago, someone mentioned a couple of preprocessors to rlogind
- >>and so on, but I cannot find the article or remember their names. Can some
- >>kind person please remind me, so that I can FTP them?
-
- >One package I use:
-
- > Subject: v30i079: log_tcp - TCP/IP daemon wrapper, Part01/02
- > Message-ID: <csm-v30i079=log_tcp.232607@sparky.IMD.Sterling.COM>
-
- > Posting-number: Volume 30, Issue 79
- > Archive-name: log_tcp/part01
- > Environment: UNIX
- > Supersedes: log_tcp: Volume 23, Issue 77
-
- >This will log the machine and user name the connection is coming from. Also
- >has access controls. It receives a pretty light load where I use it
- >(roughly 1000 connections per month) but so far works fine.
-
- Although tcp-wrapper makes logging of connections a lot easier, it
- CANNOT present you with the name of the remote user in a rsh/rlogin
- based connection. If it gives a username, it does so by using a remote
- RFC 931 daemon. Since the not quoted part of the original post was:
-
- >>What I need to do is to find out the userid a connexion was coming from
- ^^^^^^
- >>(i.e. the one used for validation in .rhosts), so that I can report attempted
- >>hack-ins to the other site in a useful fashion. I would rather not have
- >>to do this from scratch, because surely it must be a common requirement!
-
- I assume that the userid is also wanted. The only way to do that is
- to hack rlogind/rshd to log the remote username. (That's what we've done)
-
- You might be able to use MSG_PEEK on the tcp connection, but you'll
- have to do that yourself.
-
- Casper
- --
- | Casper H.S. Dik
- | casper@fwi.uva.nl
-