NFS in Fedora 7 (and iptables)
Before I forget how to do it:
Use “lsof -i” to find out the ports you need to open. Look for rpcbind and rpc.mount.
rpcbind 2110 rpc 8u IPv6 7514 TCP *:sunrpc (LISTEN)
rpc.mount 2479 root 7u IPv4 8622 TCP *:59287 (LISTEN)
Now add them to iptables:
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport sunrpc -j ACCEPT
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 59287 -j ACCEPT
I guess you can edit “/etc/sysconfig/nfs” and set MOUNTD_PORT to some value so you don’t have to check it.
That’s all I had to do, but for more information check here.
[...] NFS in Fedora 7 (and iptables): 2,363 [...]
100,000 views, and some stats « Felipe Contreras
March 20, 2009 at 1:57