Skip to contentSkip to conversation

problem configuring for NFS between RH8 and RH6

DISCUSSION Randall J. Parr 2 participants 2 messages Jan 8, 2003

lore
Share & tools
lore
#0 lore raw

I have several RedHat 8, RedHat 7 and RedHat 6 servers.
I am using iptables on the RedHat 7 and 8 servers which I configure using GuardDog.

I have been successful configured the firewall for and using NFS RH8 <-> RH8 and RH8 <-> RH7.

In the GuardDog, under Protocol, File Transfer, enabling NFS was sufficient to allow RH8 <-> RH8 NFS.

However, when I try to use NFS RH8 <-> RH6 the firewall not allowing the NFS transactions.

At first the log messages indicated RH8 -> RH6 port 111 was being dropped. In GuardDog, enabling Protocol, Interactive, Sun RPC got past this block.

But then the log messages indicated RH8 -> RH6 port 887 was being dropped. Note that the dynamic port (in this example 887) changes every time I restarted RH6 NFS.

I believe the problem is that RH6 NFS is using dynamic ports below 1024 and my RH8 kernel settings (sysctl.conf) and GuardDog settings limit the dynamic port range to 1024 thru 65000.

I tried to change the dynamic port range via GuardDog but it does not allow a value below 1024.

Note: if I disable the firewall temporarily (via GuardDog) NFS RH8 <-> RH6 works just fine.

I'm not sure how best (and most safely) to fix this.

QUES 1) Is it possible/safe to change the dynamic port range to something below 1024? If it is, how do I do that in GuardDog?

QUES 2) Is it possible to configure the RH6 NFS to only use dynamic ports above 1024? And if so, how? (I know how on RH7/8 but RH6 is, uh, less "advanced").

QUES 3) Am I off base and this is not the problem at all?

Thanks

R.Parr
Temporal Arts

Signature · 3 lines
Psyche-list mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/psyche-list
#1 lore raw
Quoted 3 lines · Randall J. Parr

But then the log messages indicated RH8 -> RH6 port 887 was being dropped. Note that the dynamic port (in this example 887) changes every time I restarted RH6 NFS.

Assuming this is the user-space NFS daemon, not the in-kernel one you
should be able to make use of the following option for the mountd:

-P portnum or --port portnum
Makes mountd listen on port portnum instead of some random port. By default, mountd will listen on the mount/udp port specified in /etc/services, or, if that is undefined, on some arbitrary port number below 1024.

Reading the above, if you put a line in /etc/services like:

mount 887/udp

Then it will *ALWAYS* use that port and you can simply open that up in your firewall settings.

HTH,

-Ath

Signature · 4 lines
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
                  Finger athan(at)fysh.org for PGP key
	   "And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME