HP Insight Control for Linux 7.1 Installation Guide

Procedure 1 Opening ports on RHEL operating systems
1. Use a text editor to create a /etc/sysconfig/nfs file on a RHEL Version 4 OS or modify
the /etc/sysconfig/nfs on a RHEL Version 5 OS with content similar to the following to
lock most of the NFS services to specific port numbers. You can use any available port number
above 1024.
RPCNFSDCOUNT=8
LOCKD_TCPPORT=33776
LOCKD_UDPPORT=33776
MOUNTD_PORT=33777
STATD_PORT=33778
RQUOTAD_PORT=33779
2. Save your changes and exit the text editor.
3. Use a text editor to modify the /etc/modprobe.conf file to include this for lockd:
options lockd nlm_tcpport=10000 nlm_udpport=10001
NOTE: If you are exporting /hptc_cluster to a RHEL 6 CMS, skip this step. The /etc/
modprobe.conf does not exist on a RHEL 6 CMS.
4. Save your changes and exit the text editor.
5. When the ports are locked down, you must open these port numbers on the CMS for NFS
(and /hptc_cluster) to be shared.
Use a text editor to add the ports to the /etc/sysconfig/iptables file, as follows:
# portmapper
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
# nfs
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 2049 -j ACCEPT
# nlockmgr
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 33776 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 33776 -j ACCEPT
# mountd
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 33777 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 33777 -j ACCEPT
# rpcstatd
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 33778 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 33778 -j ACCEPT
# rquotad
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 33779 -j ACCEPT
6. Save your changes and exit the text editor.
7. Restart the iptables service:
# /etc/init.d/iptables restart
Procedure 2 Opening ports on SLES operating systems
1. Use a text editor to create an /etc/sysconfig/nfs file with MOUNTD_PORT set to a constant
open port. You can use any available port number above 1024.
.
.
.
## Path: Network/File systems/NFS server
## Description: use fixed port number for mountd
## Type: integer
## Default: ""
## ServiceRestart: nfsserver
#
# Only set this if you want to start mountd on a fixed
# port instead of the port assigned by rpc. Only for use
# to export nfs-filesystems through firewalls.
#
MOUNTD_PORT="33777"
.
24 Preparing for the Insight Control for Linux installation