Re: [gentoo-user] OT - Finding the port NFS runs on
On Friday 14 March 2008, Michael Sullivan wrote: How can I find out what port NFS is running on so I can let it through my subrouter? It tends to vary somewhat. portmapper is quite loose and fancy free with port numbers, you will often find 2049 in use and others around 900 or so. nmap is your friend here, as well as netstat and tcpdump in extreme cases If this becomes a problem, most nfs tools support a -p option where you define which one you want. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] OT - Finding the port NFS runs on
On Friday 14 March 2008, Michael Sullivan wrote: How can I find out what port NFS is running on so I can let it through my subrouter? rpcinfo -p hostname should tell you. Note that you might need to open other ports in addition to those used by nfs itself. In particular, the statd, lockd and mountd daemons usually use random ports, and I don't know whether and how they can be instructed to use fixed port numbers in Gentoo. Refer to this document for more information: http://www.lowth.com/LinWiz/nfs_help.html -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] OT - Finding the port NFS runs on
Etaoin Shrdlu wrote on 14/03/08 09:38: On Friday 14 March 2008, Michael Sullivan wrote: How can I find out what port NFS is running on so I can let it through my subrouter? rpcinfo -p hostname should tell you. Note that you might need to open other ports in addition to those used by nfs itself. In particular, the statd, lockd and mountd daemons usually use random ports, and I don't know whether and how they can be instructed to use fixed port numbers in Gentoo. Refer to this document for more information: http://www.lowth.com/LinWiz/nfs_help.html Modify /etc/conf.d/nfs to setup the ports you want to use: OPTS_RPC_MOUNTD=-p n OPTS_RPC_STATD=-p m -o pp Modify /etc/sysctl.conf to set up the lockd port: fs.nfs.nlm_udpport = xx fs.nfs.nlm_tcpport = xx NFS uses port 2049 as standard, portmap uses port 111 Cheers, Dave -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] OT - Finding the port NFS runs on
How can I find out what port NFS is running on so I can let it through my subrouter? -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] OT - Finding the port NFS runs on
install nmap and port map yourself ... or netstat -a | grep nfs(d) Michael Sullivan wrote: How can I find out what port NFS is running on so I can let it through my subrouter? -- gentoo-user@lists.gentoo.org mailing list