Display IP Address in Telnet Login Banner

Display IP Address in Telnet Login Banner

Post by Georgia Nola » Mon, 20 Apr 1998 04:00:00



I'd like to display the IP address of a telnet client back to the client in
the login banner or immediately after logging in. I looked at /etc/issue.net
but that only seems to support server side variables, not client variables.

Since the client IP address is getting logged to /var/log/messages there
must be a way to do this.

Any suggestions?

Thanks,

-gt


Remove spam.sucks. if replying by email.

 
 
 

Display IP Address in Telnet Login Banner

Post by Jon Plew » Tue, 21 Apr 1998 04:00:00




Quote:> I'd like to display the IP address of a telnet client back to the
client in
> the login banner or immediately after logging in. I looked at
/etc/issue.net
> but that only seems to support server side variables, not client
variables.

> Since the client IP address is getting logged to /var/log/messages
there
> must be a way to do this.

Add the following to ~/.profile:

echo "The client "; \
host `finger | sed -e /^.ogin/d -e "s,.*(\(.*\))$,\1,"`

[ this gives "The client host.name has address X.X.X.X" ]

Jon.

 
 
 

Display IP Address in Telnet Login Banner

Post by Robert Milkowsk » Wed, 22 Apr 1998 04:00:00



> I'd like to display the IP address of a telnet client back to the client in
> the login banner or immediately after logging in. I looked at /etc/issue.net
> but that only seems to support server side variables, not client variables.

Are you using tcp_wrappers? If yes, then man tcpd - section about banners (not twist) - here it wotks great. Try to telnet to rudy.mif.pg.gda.pl
I think that is what you want.

--
-------------------------------------------------------------------------------
A1240D 18MB EDO RAM + HD 2.5GB + CD +...                 Student of

    Happy owner of Amiga                Milek       Faculty of Physics
-------------------------------------------------------------------------------