【RedHat Linux】 firewall 防火墙配置
【firewalld】
守护进程: firewalld
命令行: firewall-cmd
守护进程:
ssh root@desktop0.example.com
firewall-cmd --get-default-zone
firewall-cmd --set-default-zone=trusted
firewall-cmd --add-service=nfs -- zone=trusted --permanent
firewall-cmd --add-source=ip_addr/24 --zone=block --permanent
firewall-cmd --add-port=80/tcp --zone=trusted --permanent
firewall-cmd --add-forward-port=port=5423:proto=tcp:toport=80 --zone=trusted --permanent
firewall-cmd reload
firewall-cmd --list-all