- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stopping nfs over untrusted port?
Operating System - HP-UX
1820714
Members
2831
Online
109627
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-05-2009 02:39 PM
тАО02-05-2009 02:39 PM
Hey;
I had a system go through a security scan with the result that the security people want me to turn off nfs listening on port 2049 in favor of a port number below 1024.
Is that even possible? I know I've had these systems scanned any number of times and this is the first time I've seen this.
I've checked a couple of different systems and they're all using port 2049 as well.
Has anyone else run into this, know how to correct it, or otherwise answer something like this?
Thanks for any info.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
I had a system go through a security scan with the result that the security people want me to turn off nfs listening on port 2049 in favor of a port number below 1024.
Is that even possible? I know I've had these systems scanned any number of times and this is the first time I've seen this.
I've checked a couple of different systems and they're all using port 2049 as well.
Has anyone else run into this, know how to correct it, or otherwise answer something like this?
Thanks for any info.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 04:00 PM
тАО02-06-2009 04:00 PM
Solution
Oh brother... Does this really give you any more protection? What is the difference between 2049 and 1024 aside from the old "you must be root to get a port in the reserved range" stuff? If this were really a security hole would the entire world have standardized on 2049 for the port number for nfsd?
In any case, if you really feel like trying this and you're using 11i v3 you could modify the nfsd entries in the /etc/services file and then stop/start /sbin/init.d/nfs.server and it will start nfsd on the new port number.
However, many NFS clients expect nfsd to be running on port 2049 - especially NFS v4 clients - so all bets are off if you suddenly have NFS clients that cannot communicate with the server.
I tried this same technique on my 11.23 system and it did register the new port number for TCP but not UDP. Strange, but again, I've never known anyone to do this so not really a surprise that some things might work and others might not.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
In any case, if you really feel like trying this and you're using 11i v3 you could modify the nfsd entries in the /etc/services file and then stop/start /sbin/init.d/nfs.server and it will start nfsd on the new port number.
However, many NFS clients expect nfsd to be running on port 2049 - especially NFS v4 clients - so all bets are off if you suddenly have NFS clients that cannot communicate with the server.
I tried this same technique on my 11.23 system and it did register the new port number for TCP but not UDP. Strange, but again, I've never known anyone to do this so not really a surprise that some things might work and others might not.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 04:59 PM
тАО02-06-2009 04:59 PM
Re: stopping nfs over untrusted port?
Hey;
Yea, didn't make a lot of sense to me either. I'm not going to be doing that... thanks for the feedback.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Yea, didn't make a lot of sense to me either. I'm not going to be doing that... thanks for the feedback.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP