My Oracle Support Banner

How to Configure NFS Services (server-side) to Run on Static Ports as an Alternative. (Doc ID 1471690.1)

Last updated on JANUARY 22, 2025

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.

Goal

By default, some NFS services (server_side) use well-known ports but some normally just use random ports.  The use of random ports does not work so well with strict firewall rules blocking random yet unknown ports.  So, sometimes it is best to manually alter or specify static ports for NFS services (server_side) to use.

This document describes how to configure NFS services (server-side) to run on static ports as an alternative.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Overview
 OL5.x & OL6.x
 Examples of configuring /etc/sysconfig/nfs
 Restart the nfs service
 Restart the nfslock service
 Verification
 OL7.x
 Examples of configuring /etc/modprobe.d/lockd.conf
 Examples of configuring /etc/sysconfig/nfs
 Examples of configuring /etc/sysconfig/rpc-rquotad
 Restart the nfs-mountd service
 Restart the nfs-server service
 Restart the rpc-rquotad service
 Restart the rpc-statd service
 Verification

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.