Operating System - HP-UX
1825979 Members
3262 Online
109690 Solutions
New Discussion

Configure NFS to use Fixed Ports

 
SOLVED
Go to solution
Juan Gonzalez_2
Frequent Advisor

Configure NFS to use Fixed Ports

I found this technical document on the requirements and how to configure nfs to use certain ports. I am running on one server HPUX 11.31 and on the other server HPUX 11.23 which is behind a firewall. I want to configure nfs to use certain ports so the security team does not have to open up the firewall for a punch of ports. I installed the patch PHNE_38252 on HPUX 11.23 server which supercedes the patch required in the document in link http://docs.hp.com/en/B9901-90042/ch12s02.html. Long story short I reconfigured nfs on the HPUX 11.23 server to use ports 49152 for STATD, 49156 for mountd, and 4045 for lockd. That worked see the rpcinfo output below
/usr/bin/rpcinfo -p
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100024 1 udp 49152 status
100024 1 tcp 49152 status
100020 1 udp 4045 llockmgr
100020 1 tcp 4045 llockmgr
100021 1 udp 4045 nlockmgr
100021 3 udp 4045 nlockmgr
100021 4 udp 4045 nlockmgr
100021 1 tcp 4045 nlockmgr
100021 3 tcp 4045 nlockmgr
100021 4 tcp 4045 nlockmgr
100021 2 tcp 4045 nlockmgr
100005 1 udp 49156 mountd
100005 3 udp 49156 mountd
100005 1 tcp 49156 mountd
100005 3 tcp 49156 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs

For the HPUX 11.31 server no patchs where required from the document I found. I tried to configure nfs to use the same ports and it did not work see rpcinfo below any suggestion what I could be missing.
rpcinfo -p
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100024 1 udp 49191 status
100024 1 tcp 49152 status
100133 1 udp 49191
100133 1 tcp 49152
100021 1 udp 4045 nlockmgr
100021 2 udp 4045 nlockmgr
100021 3 udp 4045 nlockmgr
100021 4 udp 4045 nlockmgr
100021 1 tcp 4045 nlockmgr
100021 2 tcp 4045 nlockmgr
100021 3 tcp 4045 nlockmgr
100021 4 tcp 4045 nlockmgr
100005 1 udp 49743 mountd
100005 1 tcp 49654 mountd
100005 2 udp 49743 mountd
100005 2 tcp 49654 mountd
100005 3 udp 49743 mountd
100005 3 tcp 49654 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100227 2 udp 2049
100227 3 udp 2049
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100227 2 tcp 2049
100227 3 tcp 2049

The bottom of my /etc/rc.config.d/nfsconf file
for my HPUX 11.31 server where I put the entries to use certain ports looks like this see below.

AUTOFS=1
AUTOMOUNT_OPTIONS=""
AUTOMOUNTD_OPTIONS=""
AUTO_MASTER="/etc/auto_master"
STATD_PORT=49152
MOUNTD_PORT=49156
#********************** End of NFSCONF **************************
2 REPLIES 2
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Configure NFS to use Fixed Ports

Hi Juan,

Have a look at this doc.

Title: HP-UX NFS - Problem Configuring NFS Services to Use Fixed Ports; NFS Service Used Dynamically Assigned Port and Not Port Configured in /etc/default/nfs File
Document ID: emr_na-c01564076-1

http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01564076-1

Regards,
Robert-Jan
Juan Gonzalez_2
Frequent Advisor

Re: Configure NFS to use Fixed Ports

That worked Robert-Jan. Thanks for your help.