Operating System - HP-UX
1834018 Members
2054 Online
110063 Solutions
New Discussion

Re: Different Welcome Message for different IP

 
SOLVED
Go to solution
MARCONI SPA
Occasional Advisor

Different Welcome Message for different IP

In the system they have been shapes two IP for the same interface. I would to visualize a welcome message various to second of the entrance IP. Modifying inetd.conf of the telnet ** the ALL ** sessions telnet would have the same message. Example:
c:\telnet 172.16.123.2

HP-UX AAA B.11.00 A 9000/800 (tb)
login:
c:\telnet 172.16.123.1
Welcome User !! Are you ready ?? !!
Login:

thank's in advanced and sory for my English.


Riccardo Bigoni
4 REPLIES 4
Tom Geudens
Honored Contributor
Solution

Re: Different Welcome Message for different IP

Hi,
I don't think you can do that. Since it's the same system, it would be the same telnet-daemon and thus the same bannerfile. A solution (but too farfetched) would be to start another telnet-daemon on another port and have the users for the second IP telnet to a different port.

Sorry (I hope there's a solution from someone else),
Tom
A life ? Cool ! Where can I download one of those from ?
Sanjay_6
Honored Contributor

Re: Different Welcome Message for different IP

Hi,

don't think you can do that.

Hope this helps.

Regds
PIYUSH D. PATEL
Honored Contributor

Re: Different Welcome Message for different IP

Hi,

It is not possible since telnet is invoked by inetd daemon which is running on the server with a particulr IP address ( IP of the system-hostname).

After the telnet port is opened on the alias IP adress, the /etc/issue file comes into the picture which can be only one for one system.

Regards,
Piyush
Wodisch
Honored Contributor

Re: Different Welcome Message for different IP

Hi,

well, you could get the source of "inetd" from BSD, Linux, or somewhere the like, and change its "bind"ing to all ip-addresses to only a selected (local) one and use a matching "/etc/inetd.conf.IP-ADRESS" (or so). Then in those "inetd.conf.*" you would list different files for the "telnetd" option "-b" (banner file).

This is not supported by anyone, of course - but if you like, that's one way to get it...

HTH,
Wodisch
PS: we are running many "samba" instances that way on the same system, same port, but different local ip-addreses and different local config-files!