0

Actually when iptables rules are not cleared, trying to mount a remote NFS share failed with a timeout. After a reset of iptables rules, i'm allowed to mount properly the NFS remote server.

What are the iptables rules to allow access to a remote NFS server ?

I use rw,_netdev,mountproto=tcp as mount option.

0

The solution is to add 2 lines to the /etc/iptables.rules file.

Just below the ICMP section :

#### NAS [IN,OUT]
-A INPUT  -i eth0 -s NAS_SERVER_IP_ADDR/32 -j ACCEPT
-A OUTPUT -o eth0 -d NAS_SERVER_IP_ADDR/32 -j ACCEPT

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.