Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS server ports ?

Reply
Thread Tools Display Modes

NFS server ports ?

 
 
Madhusudan Singh
Guest
Posts: n/a

 
      11-11-2005, 11:57 AM
Hi

I am running an NFS server but have not been able to find which ports need
to be open for the server to be available to clients.

rpcinfo -p indicates :

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 940 status
100024 1 tcp 943 status
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100005 1 udp 980 mountd
100005 2 udp 980 mountd
100005 1 tcp 983 mountd
100005 2 tcp 983 mountd

I have tried opening all the ports above, but unless I drop the firewall
completely, clients are unable to access it.

Thanks.
 
Reply With Quote
 
 
 
 
airdog
Guest
Posts: n/a

 
      11-13-2005, 07:16 PM
In the script that launches your server (/etc/init.d/nfs) on many linux
distros, look for the first line that contains $MOUNTD_PORT.

Add the following line before the one you found:
MOUNTD_PORT=33333
(It can be another port over 100000, check in
etc/services to see which ones are free).

Restart your nfs server and open the port you'll have specified in your
firewall (33333 in this case) and your clients should be able to connect.

If you don't do it like that, nfs opens a different port everytime it
starts, so you would have to write a script that queries that port and
modifies the firewall's config accordingly.

Good luck

On Fri, 11 Nov 2005 07:57:29 -0500, Madhusudan Singh wrote:

> Hi
>
> I am running an NFS server but have not been able to find which ports need
> to be open for the server to be available to clients.
>
> rpcinfo -p indicates :
>
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
> 100024 1 udp 940 status
> 100024 1 tcp 943 status
> 100003 2 udp 2049 nfs
> 100003 2 tcp 2049 nfs
> 100005 1 udp 980 mountd
> 100005 2 udp 980 mountd
> 100005 1 tcp 983 mountd
> 100005 2 tcp 983 mountd
>
> I have tried opening all the ports above, but unless I drop the firewall
> completely, clients are unable to access it.
>
> Thanks.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ports used by Windows server Petri S Windows Networking 4 09-25-2007 05:16 AM
How to add ssl ports in ISA server saurabh Windows Networking 2 10-16-2006 02:23 PM
Ports for a Debian NFS server ? Madhusudan Singh Linux Networking 0 01-20-2006 02:04 AM
Problem with ports on win 2000 server POLILOP Windows Networking 2 12-23-2005 10:53 AM
W2k3 server ports chris Windows Networking 2 01-23-2004 01:49 AM



1 2 3 4 5 6 7 8 9 10 11