NFS doesn't work unless iptables are stopped
I'm running CentOS 5.2.
I've enabled NFS through the system-config-securitylevel (firewall) tool but the client machine can't mount the NFS unless I first do service iptables stop on the server. Here's some output from the server: Quote:
Quote:
Quote:
|
Hello,
Its not that simple, You have to open other port to this service on your iptables: - portmap - mountd - statd_port - lockd_tcpport - lockd_udpport - rquotad_port you can modify the port on /etc/sysconfig/nfs, usually we set it to port 4002-4005 , so you can modify tour iptables more easy. iptables may contain like below: -A INPUT -p tcp -m tcp --dport 111 -j ACCEPT -A INPUT -p udp -m udp --dport 111 -j ACCEPT -A INPUT -p tcp -m tcp --dport 4002:4005 -j ACCEPT -A INPUT -p udp -m udp --dport 4002:4005 -j ACCEPT -A INPUT -p tcp -m tcp --dport 2049 -j ACCEPT -A INPUT -p udp -m udp --dport 2049 -j ACCEPT give it a try mate ! |
All times are GMT -5. The time now is 01:31 AM. |