Can't mount nfs dir with iptables up on server
I'm trying to mount an NFS share on my client computer but cannot connect unless I turn the iptables service off. I'm not sure which rule is blocking the connection. My NFS/RPC ports all seem to be associated with ACCEPT rules in my firewall.
I'm still learning iptables, which is a lot more complex than I initially thought. (I have a bad habit of editing the iptables file directly and backing it up all the time.) Client mount attempt: Code:
mount -v 192.168.1.11:/install /shared Code:
# Server: iptables -nL: Code:
Chain INPUT (policy ACCEPT) |
I think that looks ok, have you run
service nfs status exportfs -v to check all nfs-related services are up on server? |
chrism01,
I ran exportfs -v and made sure that NFS was running properly, but I still can't get through. It has to be iptables, since I can mount the NFS share when I stop the service (service iptables stop). Do my rules look ok? What is the difference between the "state NEW" rules and the rather generic ones underneath? |
In your case, not a lot :)
Traditionally, replace your 'NEW' keyword with 'ESTABLISHED,RELATED' ie check for known cxns first, then 'new' (optional keyword). You'll need a service iptables restart Please show the output of those other cmds I mentioned. Also need to check firewall on client |
All times are GMT -5. The time now is 06:47 AM. |