Skip to content

Instantly share code, notes, and snippets.

@drboyer
Last active August 29, 2015 14:20
Show Gist options
  • Save drboyer/67407c36e1c5143eb92a to your computer and use it in GitHub Desktop.
Save drboyer/67407c36e1c5143eb92a to your computer and use it in GitHub Desktop.
yum install nfs-utils
chkconfig nfs on
service rpcbind start
service nfs start
vi /etc/sysconfig/iptables # (see iptables edit for changes to make)
service iptables restart
# Add entires to /etc/exports
exportfs -a(v)
# this goes in /etc/sysconfig/iptables
# after the *filter line (not sure if it matters, but it works there!)
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 32803 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 875 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 662 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment