IPTABLES rules to enable NFS share on a Redhat based Server.

Add the following rules to /etc/sysconfig/iptables with your favourite text editor.
“`



-A RH-Firewall-1-INPUT -m state –state NEW -p udp –dport 111 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p tcp –dport 111 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p udp –dport 892 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p tcp –dport 892 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p udp –dport 875 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p tcp –dport 875 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p udp –dport 662 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p tcp –dport 662 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p tcp –dport 2049 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p tcp –dport 32803 -j ACCEPT


-A RH-Firewall-1-INPUT -m state –state NEW -p udp –dport 32769 -j ACCEPT

“`

Now restart the iptables service
“`



/etc/init.d/iptables restart“`

Now access the share from Client system.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top