Linux Firewall 初探
常用 firewalld 命令
Section titled “常用 firewalld 命令”1. 添加放行端口
Section titled “1. 添加放行端口”sudo firewall-cmd --permanent --add-port=443/tcp
2. 删除放行端口
Section titled “2. 删除放行端口”sudo firewall-cmd --permanent --remove-port=443/tcp
3. 添加放行服务
Section titled “3. 添加放行服务”sudo firewall-cmd --permanent --add-service=http
4. 删除放行服务
Section titled “4. 删除放行服务”sudo firewall-cmd --permanent --remove-service=http
5. 重载防火墙
Section titled “5. 重载防火墙”sudo firewall-cmd --reload
[2]. Install-Samba-on-RHEL-CentOS-Fedora
[4]. SSH-Configuration