Operating System - HP-UX
1849764 Members
2818 Online
104044 Solutions
New Discussion

Mutli-Homed Server: Possible to assigne /etc/services port to specific LAN/NIC?

 
Alzhy
Honored Contributor

Mutli-Homed Server: Possible to assigne /etc/services port to specific LAN/NIC?

We've a multi-homed server (2 NICs/APA's).. we need to restrict a port to only one LAN segment/NIC. Is this possible on HP-UX? How?

THanks!
Hakuna Matata.
2 REPLIES 2
Jeff Schussele
Honored Contributor

Re: Mutli-Homed Server: Possible to assigne /etc/services port to specific LAN/NIC?

Hi Nelson,

Only way I could see to do this would be with a "standard" service defined in inetd.conf.
You could restrict access to a specific subnet via inetd.sec or tcp-wrappers & hosts.allow/hosts.deny. Then as long as the network routed this traffic into the server properly, it would only come in the one NIC.

Else the network would have to play a role in this with it's routing rules such that the traffic in question could only be presented to the NIC in question.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
RAC_1
Honored Contributor

Re: Mutli-Homed Server: Possible to assigne /etc/services port to specific LAN/NIC?

I can think of two options here.

Heard ipfiler product(free), install that and you can define ip filter rules, so as to allow/deny requests on nics.

With web server like apache, you can have directive as listen xx.xx.xxx.xx, this way apache will listen only on that ip, else will listen on nics a system has.

Anil
There is no substitute to HARDWORK