tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: Determining the IP alias that a user connects to
@ 2001-01-08 14:10 Seel, John
  0 siblings, 0 replies; only message in thread
From: Seel, John @ 2001-01-08 14:10 UTC (permalink / raw)
  To: tru64-unix-managers

The original post:
> Hello All,
> 
> I'm looking for a quick and easy way to determine which IP alias a user
has
> connected to via a telnet session.
> 
> If a system has its real IP of 192.168.1.10 and an alias of 192.168.1.11,
> and a user telnets to 192.168.1.10 with a terminal emulator like
> reflections, and while still connected to that session, connects again to
> 192.168.1.11, I would like to be able to set different envirnmental
> variables depending upon which IP the user connected to. I want to use
this
> in an ASE1.6 cluster to have different PATHs and execute a different menu
> from .profile depending upon which service the user is trying to access.
> 
> I have hacked out a method using ksh and lsof to get this information,
> however, it is very cumbersome and will only work from the user's
> $HOME/.profile. One of the environmental variables I would like to change
at
> login is the user's $HOME, which prevents me from using the user's
.profile
> to determine the target alias.
> 
> The version is 4.0F and ASE 1.6, however, I would be interested in any
> method or suggestions even if they relate to a different version (or linux
> or solaris or whatever).
> 
> Thanks.
> 
> John Seel
> 
> 
> 
****************************************************************************
***************************

Thanks to:
S. Administrator
Jim F. Fitzmaurice
Aleksey Tsalolikhin
Serguei Patchkovski
Allan E. Johannesen


I decided against using tcpserver since I was unable to get it to pass the
variable I needed through the telnet/login process. But it is a very
interesting program and I intend to  keep it in mind for other applications.

I've decided to fall back on my original program that uses ksh with lsof to
detemine the target IP. I am still evaluating whether to wrap the users'
shell in a shell of my own creation ( as some of the respondents suggested)
or whether to run my ksh/lsof script from the users' .profile.

Thanks again to all who replied.

John




----------------------------------------------------
John Seel
UNIX Systems Administrator
Faulding, Inc.
'john.seel@us.faulding.com"
(908) 659-2398
-----------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-08 14:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-08 14:10 Summary: Determining the IP alias that a user connects to Seel, John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox