1831642 Members
1796 Online
110027 Solutions
New Discussion

Re: inetd issue

 
SOLVED
Go to solution
Alex Lavrov
Regular Advisor

inetd issue

Hello,
I have two servers in cluster and two programs that run one on each server and listening to port 94. Well, each program (package) has it's own IP, so there is no problem when both of them are running on the same server because the binding to the port is done by IP, and if they have differnt IPs so there is no problem that they will listen to the same port number, but I need entry in the inetd.conf, and it's the problem because then I'll have two different entries for the same port, how can I solve this issue and tell OS that even it's the same port it's for the different IPs?

thanx.
5 REPLIES 5
Michael Steele_2
Honored Contributor
Solution

Re: inetd issue

Sockets are only identifiers to system files and need no other special administration since each IP/socket/port will work from the same set network daemon processes.

It will be unnecessary to make duplicate entries in either /etc/inetd.conf or /etc/services.

I thinking that you're thinking too far down in the OSI 7 layer stack since sockets begin at layer four and above making them unique identifiers through the merging of IP and PORT numbers.

Here is a link to 'lsof'. Use the command 'lsof -i tcp:21' to get a better picture of what open files and processes are using each port.

http://hpux.cict.fr/hppd/hpux/Sysadmin/lsof-4.64/

I'm a huge believer in 'lsof' being apart of every sys admin's tool box for its an extremely useful tool.

Good luck.
Support Fatherhood - Stop Family Law
Dagmar Boelen
Frequent Advisor

Re: inetd issue

Alex,

I don't completly understand you question. But I think you want to create a restriction in you inetd.sec file for you server. I think when you invoke a restriction in inetd.sec it will automaticly be used for both ip's because the inetd will work for both ip's and will use the same restrictions for them.

Regards,

D.
Alex Lavrov
Regular Advisor

Re: inetd issue

Well, that's correct, but I want them to run with different parameters, so it can't be the same line in inetd.conf for both services, it should be different, now what can I do?

thanx
Massimo Bianchi
Honored Contributor

Re: inetd issue

Hi,
i think of this problem like a problem with oracle listener (of which i have experience).

Sorry, but in this case there is no solution as far as i know. When you plan such configuration, you should also check that there is no overlay in the configurations.

In oracle listener we can use a single program, listening to both port and with different parameters, or we can use a single port with multiple parameters.

Is it also possible for your program ?
May bet there are someadvanced settigns, try asking to the software house.

HTH,
Massimo


Alex Lavrov
Regular Advisor

Re: inetd issue

The programs are Tivoli TMR and Tivoli TEC.

thanx anyway!