Operating System - HP-UX
1837210 Members
2359 Online
110115 Solutions
New Discussion

Re: Restrict source access for an internal port

 
Vladimir SAnchez_1
New Member

Restrict source access for an internal port

I need to restrict the access to the service given on port 7001 on a HP-UX 11i box. This service should be accessed only for a couple of web servers and no directly by anyone browsing to port 7001 on the server.
I thought using tcp-wrappers or the inetd.sec table, nut they are used for internal services and not for (in this case) a weblogic service. Am I right?

Regards,

Vladimir
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Restrict source access for an internal port

Sounds like an application for a firewall like ipfilter.

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9901AA

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
harry d brown jr
Honored Contributor

Re: Restrict source access for an internal port


Block it at your network switch.

live free or die
harry d brown jr
Live Free or Die
RAC_1
Honored Contributor

Re: Restrict source access for an internal port

Use of /var/adm/inetd.sec would be a effective and efficient solution to your problem.

In /var/adm/inetd.sec, pu as followinf.

"service_name" allo ip_address1, ipaddress2 and so on

Anil
There is no substitute to HARDWORK
Biswajit Tripathy
Honored Contributor

Re: Restrict source access for an internal port

I would use IPFilter system firewall.
Configure the following IPFilter rules:

------
pass in quick proto tcp from IP1 to any port = 7001 flags S keep state keep frags
pass in quick proto tcp from IP2 to any port = 7001 flags S keep state keep frags
block in quick from any to any port = 7001
-------

Replace IP1 and IP2 with IP addresses of the
machines you want to allow using service.

If you are on HP-UX 11i v2 (aka 11.23),
IPFilter should already be installed on your
system. Otherwise, download it from the
location given in Steven's mail.

- Biswajit
:-)