home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / protocol / tcpip / 5702 next >
Encoding:
Text File  |  1992-12-21  |  2.5 KB  |  59 lines

  1. Newsgroups: comp.protocols.tcp-ip
  2. Path: sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!network.ucsd.edu!munnari.oz.au!uniwa!cujo!ncrpda.curtin.edu.au!rocky.curtin.edu.au!user
  3. From: peter@cujo.curtin.edu.au (Peter N Lewis)
  4. Subject: Re: Limiting Telnet access.
  5. Message-ID: <peter-211292130304@rocky.curtin.edu.au>
  6. Followup-To: comp.protocols.tcp-ip,comp.unix.bsd
  7. Lines: 45
  8. Sender: news@ncrpda.curtin.edu.au
  9. Nntp-Posting-Host: ncrpda.curtin.edu.au
  10. Organization: NCRPDA, Curtin University
  11. References: <1992Dec17.230214.16501@vector.dallas.tx.us>
  12. Date: Mon, 21 Dec 1992 05:15:08 GMT
  13.  
  14. In article <1992Dec17.230214.16501@vector.dallas.tx.us>,
  15. tbo@vector.dallas.tx.us (Terry Bohaning) wrote:
  16. > I've recently become very concerned about the security of many of 
  17. > the Unix workstations under my care. Some of the users are overly
  18. > free with their passwords and I would really like to limit access
  19. > to the systems.
  20.  
  21. Grab log_tcp.  It will log all tcp connections, and deny access to 
  22. certain sets of them (or all except certain sets) on an individual
  23. program basis (as long as the program is started via inetd).  For
  24. example, my setup looks something like this:
  25.  
  26. ALL : 123.4.567. : NOLOG
  27. in.identd : ALL : LOG
  28. in.ftpd : 123.4.789.80 : NOLOG
  29. gopherd in.ftpd in.telnetd in.rshd in.rlogind in.rexecd : 123.4.789.81
  30. 123.4.789.80 : LOG
  31. in.fingerd : ALL : LOG
  32. in.telnetd gopherd in.ftpd : ALL : LOG : /usr/ucb/finger -l @%a |
  33. /usr/ucb/mail -s "Warning, service %d requested by %h [%a]" root &
  34. ALL : ALL : DENY : /usr/ucb/finger -l @%a | /usr/ucb/mail -s "Warning,
  35. service %d requested by %h [%a]" root &
  36.  
  37. So it allows all services from my logal domain without any logging (which
  38. helps keep the log file size down), logs all identd accesses, no logging of
  39. ftp accesses from a local machine, allows accesses from a few other local
  40. machines (with logging), logs all finger requests, logs all telnet, gopher
  41. and ftp requests and fingers the machine and sends a warning to root (but
  42. of course, all local accesses were previously dealt with, so this only
  43. happens for accesses from strange places), and deny all other access (and
  44. report the possible attack).
  45.  
  46. BTW, the above includes extensions I made that havent been released to
  47. allow the NOLOG option, but the log_tcp package should do what you want
  48. anyway.
  49.  
  50. Everyone should be running this, it gives you lots of early warnings, and
  51. totally cuts off a lot of potential attacks.
  52.  
  53. Have fun all,
  54.    Peter.
  55.  
  56. _______________________________________________________________________
  57. Peter N Lewis <peter@cujo.curtin.edu.au>             Ph: +61 9 368 2055
  58.