[root@prod-stage-nfs-server ~]# systemctl restart firewalld.service
[root@prod-stage-nfs-server ~]# firewall-cmd --permanent --add-service={nfs,nfs3,rpc-bind,mountd}
Warning: INVALID_SERVICE: 'nfs3' not among existing services
success
[root@prod-stage-nfs-server ~]# firewall-cmd --reload
success
[root@prod-stage-nfs-server ~]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: ssh dhcpv6-client nfs rpc-bind mountd
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
[root@prod-stage-nfs-server ~]#
https://www.cnblogs.com/BloodZero/p/4783578.html
echo 'mountd:10.82.100.108' >> /etc/hosts.allow
echo 'mountd:all' >> /etc/hosts.deny