View Full Version : [ubuntu] NFS through the firewall
December 22nd, 2010, 03:32 AM
I have installed kernel-nfs-server and successfully set it up and it worked without a firewall enabled. I have followed a guide, http://www.buro9.com/blog/2009/12/07/nfs-static-ports/ , to make ports used by nfs static so they can be used through the firewall. Everything worked except nlockmgr works which still gives random ports when I type rpcinfo -p. I have researched on other ways to do it but all of the documentation is too old (can not locate the files they have mentioned).
December 22nd, 2010, 03:40 AM
Not sure if this will make the difference for you, but here's what I use for STATDOPTS and RPCMOUNTDOPTS, which are slightly different from that tutorial
Try this for STATDOPTS in /etc/default/nfs-common:
STATDOPTS="--port 4000 --outgoing-port 4001"
And this for RPCMOUNTDOPTS in /etc/default/nfs-kernel-server:
December 22nd, 2010, 03:52 AM
I just tried it and there was no effect ](*,)
December 22nd, 2010, 12:52 PM
did you restarted the nfs-kernel process?
and also you should use tcpdump to see your packets flow to now what is causing the problem.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.