Hi, I'm following some tutorials to play with NFS
I'm trying to set up an NFS server on my main box (F9) and a client on my laptop (Centos 5.1) connected through a router.
THE SERVER BOX:
/etc/exports
Code:
/home 192.168.1.206(rw)
/media 192.168.1.206(rw)
192.168.1.206 being the client laptop
hosts.allow
Code:
rpcbind: 192.168.1.206
portmap: 192.168.1.206
lockd: 192.168.1.206
mountd: 192.168.1.206
rquotad: 192.168.1.206
statd: 192.168.1.206
rpcbind: 192.168.1.206 is probably unnecessary as Centos is still using portmap, whereas F9 rpcbind.
hosts.deny
Code:
portmap:ALL
rpcbind:ALL
mountd:ALL
rquotad:ALL
statd:ALL
Running services:
netfs, nfs, nfslock, rpcbind
Code:
[root@localhost etc]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:nfs
ACCEPT udp -- anywhere anywhere state NEW udp dpt:nfs
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Selinux is in a permissive state
THE CLIENT BOX
running services:
netfs, nfs, nfslock, portmap
When I type on the client machine (192.168.1.101 is the server machine)
Code:
# mount 192.168.1.101:/home /home/
mount: mount to NFS Server '192.168.1.101' failed: System Error: No router to host.
any hints? thanks
EDIT: and I've done /usr/sbin/exportfs -a on the server machine