I am working with 4 identical machines. For this documentation, GREY is the NFS server and is the only one of the 4 running iptables at the moment. BLUE is the NFS client. I've been able to reproduce this multiple times using different machines as the server and client each time.
I know that it's possible I've fat fingered something or forgotten something along the way. Any assistance here is appreciated.
Thanks,
~J
[root@blue ~]# mount -vt nfs 192.168.1.106:/shares/group1 /home/test_dir
mount.nfs: timeout set for Sat Dec 2 11:29:31 2017
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.1.106,clientaddr=192.168.1.107'
mount.nfs: mount(2): Connection timed out
mount.nfs: Connection timed out
__________________________________________
[root@grey /]# ls -lh /shares/
total 0
drwxr-xr-x 2 root root 6 Dec 2 10:57 group1
[root@grey /]# ls -lh / | grep shares
drwxr-xr-x 3 root root 20 Dec 2 10:57 shares
[root@grey /]# cat /etc/exports
/shares/group1 192.168.1.0/24(rw,no_root_squash)
[root@grey /]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[root@grey /]# yum list installed | grep nfs
libnfsidmap.x86_64 0.25-17.el7 @base
nfs-utils.x86_64 1:1.3.0-0.48.el7_4 @updates
[root@grey /]# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 20048 mountd
100005 1 tcp 20048 mountd
100005 2 udp 20048 mountd
100005 2 tcp 20048 mountd
100005 3 udp 20048 mountd
100005 3 tcp 20048 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 3 udp 2049 nfs_acl
100021 1 udp 35805 nlockmgr
100021 3 udp 35805 nlockmgr
100021 4 udp 35805 nlockmgr
100021 1 tcp 41306 nlockmgr
100021 3 tcp 41306 nlockmgr
100021 4 tcp 41306 nlockmgr
100024 1 udp 56374 status
100024 1 tcp 53360 status
[root@grey /]# systemctl status firewalld
● firewalld.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
[root@grey /]# systemctl status iptables
● iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Sat 2017-12-02 11:27:08 EST; 6s ago
Process: 5123 ExecStop=/usr/libexec/iptables/iptables.init stop (code=exited, status=0/SUCCESS)
Process: 791 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
Main PID: 791 (code=exited, status=0/SUCCESS)
Nov 29 18:49:17 grey.yltd systemd[1]: Starting IPv4 firewall with iptables...
Nov 29 18:49:18 grey.yltd iptables.init[791]: iptables: Applying firewall rules: [ OK ]
Nov 29 18:49:18 grey.yltd systemd[1]: Started IPv4 firewall with iptables.
Dec 02 11:27:07 grey.yltd systemd[1]: Stopping IPv4 firewall with iptables...
Dec 02 11:27:07 grey.yltd iptables.init[5123]: iptables: Setting chains to policy ACCEPT: filter nat mangle [ OK ]
Dec 02 11:27:07 grey.yltd iptables.init[5123]: iptables: Flushing firewall rules: [ OK ]
Dec 02 11:27:08 grey.yltd iptables.init[5123]: iptables: Unloading modules: [ OK ]
Dec 02 11:27:08 grey.yltd systemd[1]: Stopped IPv4 firewall with iptables.
[root@grey /]# sestatus
SELinux status: disabled
_______________________________________
[root@blue ~]# ls -lh /home/ | grep test
drwxr-xr-x 2 root root 6 Dec 2 10:56 test_dir
[root@blue ~]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[root@blue ~]# yum list installed | grep nfs
libnfsidmap.x86_64 0.25-17.el7 @base
nfs-utils.x86_64 1:1.3.0-0.48.el7_4 @updates
[root@blue ~]# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 42922 status
100005 1 udp 20048 mountd
100005 1 tcp 20048 mountd
100024 1 tcp 49442 status
100005 2 udp 20048 mountd
100005 2 tcp 20048 mountd
100005 3 udp 20048 mountd
100005 3 tcp 20048 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 3 udp 2049 nfs_acl
100021 1 udp 36482 nlockmgr
100021 3 udp 36482 nlockmgr
100021 4 udp 36482 nlockmgr
100021 1 tcp 44194 nlockmgr
100021 3 tcp 44194 nlockmgr
100021 4 tcp 44194 nlockmgr
[root@blue ~]# systemctl status firewalld
● firewalld.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
[root@blue ~]# systemctl status iptables
Unit iptables.service could not be found.
[root@blue ~]# sestatus
SELinux status: disabled