Felipe Contreras

Personal blog of Felipe Contreras

NFS in Fedora 7 (and iptables)

with one comment

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.

Written by FelipeC

September 13, 2007 at 17:55

Posted in Fedora, Howto, Random

One Response

Subscribe to comments with RSS.

  1. [...] NFS in Fedora 7 (and iptables): 2,363 [...]


Leave a Reply