Servidor NFS no XenServer 6.5

Fontes:
https://fl0cker.wordpress.com/2010/11/18/liberando-servidor-nfs-no-firewall-xenserver/
https://www.cyberciti.biz/faq/centos-fedora-rhel-iptables-open-nfs-server-ports/

  1. Execute:
    modprobe nfsd
  2. Edite o arquivo /etc/sysconfig/nfs; edite as linhas:
    RQUOTAD_PORT=875
    LOCKD_TCPPORT=32803
    LOCKD_UDPPORT=32769
    MOUNTD_PORT=892
    STATD_PORT=662
    STATD_OUTGOING_PORT=2020
  3. Edite o arquivo /etc/sysconfig/portmap:
    PMAP_ARGS=""
  4. Edite o arquivo /etc/exports:
    /mnt/oracle 192.168.20.240(rw,no_root_squash,hide,sync,no_subtree_check)
  5. Edite o arquivo /etc/sysconfig/iptables; adicione as linhas:
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p udp --dport 111 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p tcp --dport 111 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p tcp --dport 2049 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p tcp --dport 32803 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p udp --dport 32769 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p tcp --dport 892 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p udp --dport 892 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p tcp --dport 875 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p udp --dport 875 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p tcp --dport 662 -j ACCEPT
    -A RH-Firewall-1-INPUT -s 192.168.20.0/24 -m state --state NEW -p udp --dport 662 -j ACCEPT
    Antes da linha:
    -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
  6. Execute:
    service portmap restart
    exportfs -av
    service nfs restart
    service rpcsvcgssd restart
    service iptables restart
IP
3.236.51.151