Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!hemuli.tik.vtt.fi!vttux1.vtt.fi From: keijo@vttux1.vtt.fi (keijo tuominen) Newsgroups: comp.sources.wanted Subject: Attachport ?? Message-ID: <5130@hemuli.tik.vtt.fi> Date: 24 Sep 90 09:25:47 GMT Sender: news@hemuli.tik.vtt.fi Organization: Technical Research Centre of Finland Lines: 31 > Does anyone know if somewhere is available a program that checks > where from telnet/ftp/smtp connections are made and checks if > machine requesting connection is allowed to enter to that > particular host. So if it is not allowed to do connection > the target machine should close connection and also make a log > for that connection attempt. If your servers are running under attachport rather than inetd, this is easy. Just wrap telnetd inside a script like this: #!/bin/sh if printenv REMOTE | sed 's/.*@//' | fgrep -s -f -x /etc/telnetd.allowed then exec telnetd else # make some appropriate log entry fi You put a list of allowed Internet numbers into /etc/telnetd.allowed, one per line. For more flexibility, use grep instead of fgrep, and use (anchored) regexps. attachport is available in the auth package, which appeared a few months ago in comp.sources.unix. I got this kind of reply to my question about whatch dog but what is that attachport and where can I find it ? If anyone have that auth package I would like to have it -- * Tuominen Keijo * E-mail adress: * * Vuorimiehentie 5 * Keijo.Tuominen@vtt.fi * * SF-02150 Espoo, Finland * TELEFAX: * * Phone: 90-4564295 Home: 90-538606 * +358 0 460648 *