- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Port Blocking
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 10:57 AM
02-24-2003 10:57 AM
I'm not clear how to do this in HP-UX. Can someone please let me know ?
Thank you :)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:03 AM
02-24-2003 11:03 AM
Re: Port Blocking
Depends on the ports & services in question.
List a few & we'll show you how to do it.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:03 AM
02-24-2003 11:03 AM
Re: Port Blocking
Check /etc/services on your hpux box.
Regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:06 AM
02-24-2003 11:06 AM
Re: Port Blocking
1. Edit /etc/inetd.conf and comment out all the services that are not required to be used. For ex., finger, tftp, bootp, rwalld, rsprayd etc., Look at each service and see if you use them or not.
2. Restrict the access to the services that need to be running through /var/adm/inetd.sec. Look at the file for examples.
3. Disable ip_forwarding feature.
ndd -set /dev/ip ip_forwarding 0
Edit /etc/rc.config.d/nddconf and make the changes.
4. Disable Snmp if you do not need it. Edit /etc/rc.config.d/Snmp* and keep all the variables to 0. If you do need it, then edit /etc/SnmpAgent.d/snmpd.conf and set the community names to non-default and let your management servers know about it.
5. Make use of ftpaccess file. Disable anonymous ftp access.
6. Disable sendmail if you don't intend to receive mail on the box.
etc.,
Look at HP's document to make your system a bastion host.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066258828
DocID: USECKBAN00000800
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:07 AM
02-24-2003 11:07 AM
Re: Port Blocking
name1 20/tcp name1 20/udp
port 20 is intended to be blocked
after this add following to your inetd.sec file:
name1 deny *
after this run:
#inetd -c
I think this should help you block the ports..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:09 AM
02-24-2003 11:09 AM
SolutionThe file /var/adm/inetd.sec is very useful to improve services security, in this file you can allow|deny parcial o enteramente a specific service, to more info "man inetd.sec"
Other related file is /etc/inetd.conf, more info about: "man inetd.conf" "man inetd"
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:15 AM
02-24-2003 11:15 AM
Re: Port Blocking
/etc/inetd.conf has a list of services that you can change. This is where we changed (secured) the services for our security manager.
/var/adm/inetd.sec is where you can secure (allow and deny) access to some services by IP address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:17 AM
02-24-2003 11:17 AM
Re: Port Blocking
name1 20/tcp
name1 20/udp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:30 AM
02-24-2003 11:30 AM
Re: Port Blocking
Be advised that not *everything* can or should be blocked using inetd.conf, inetd.sec or services files.
For instance you can block NFS requests by simply NOT starting the NFS server.
To do that simply stop it
/sbin/init.d/nfs.server stop
Then edit /etc/rc.config.d/nfsconf & set NFS_SERVER=0 & it will not restart upon next boot.
There are other *services* that can be blocked in similar fashion.
My $0.02,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:47 AM
02-24-2003 11:47 AM
Re: Port Blocking
You cannot block ports like SMTP, NFS, SNMP etc through inetd.sec. Either you can enable them or disable them. They have their own configuration files to set the access.
Just for the records.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 12:23 PM
02-24-2003 12:23 PM
Re: Port Blocking
Chris