CentOS 7 架設 nfs server 需開啟之通訊埠與SELinux規則

SELinux
setsebool -P nfs_export_all_rw=1
setsebool -P nfs_export_all_ro=1

通訊埠
firewall-cmd --add-port=111/tcp --permanent
firewall-cmd --add-port=111/udp --permanent
firewall-cmd --add-port=2049/tcp --permanent
firewall-cmd --add-port=2049/udp --permanent
firewall-cmd --add-port=20048/tcp --permanent
firewall-cmd --add-port=20048/udp --permanent

firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=mountd

firewall-cmd --reload


TCPWrapper
rpcbind:  192.168.78.0/24
mountd: 192.168.78.0/24


這個網誌中的熱門文章

Upgrade php and httpd(apache) on CentOS 7

Installing VMware workstation pro on Ubuntu 22.X (Jammy Jellyfish)