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.
|