page counter next up previous contents
Next: NFS Client 端掛載 Up: SELinux 管理 Confined 服務 Previous: NFS Server   Contents   DYWANG_HOME

NFS 伺服器防火牆設定

  1. 永久增加 nfs 服務到 firewall。
    [root@kvm5 ~]# firewall-cmd --permanent --add-service=nfs 
    success
    
  2. 永久增加 rpc-bind 服務到 firewall。
    [root@kvm5 ~]# firewall-cmd --permanent --add-service=rpc-bind 
    success
    
  3. 永久增加 mountd 服務到 firewall。
    [root@kvm5 ~]# firewall-cmd --permanent --add-service=mountd 
    success
    
  4. 重新載入防火牆設定。
    [root@kvm5 ~]# firewall-cmd --reload 
    success
    
  5. 列出 firewall 已新增 nfs, rpc-bind, mountd 等服務。
    [root@kvm5 ~]# firewall-cmd --list-all
    public (default)
      interfaces: 
      sources: 
      services: dhcpv6-client mountd nfs rpc-bind ssh
      ports:
      masquerade: no
      forward-ports: 
      icmp-blocks: 
      rich rules:
    



De-Yu Wang 2020-05-14