linux-日常运维-firewalld的9个zone
打开firewalld
systemctl disable iptables #在开机时禁用服务
systemctl stop iptables #停止 iptables 服务
systemctl enable firewalld #在开机时启用服务
systemctl start firewalld #开启firewalld服务
firewalld默认有9个zone #zone是firewalld的一个单位,默认zone为public,每个zone相当于一个规则集,zone自带一些规则.
firewall-cmd --get-zones //查看所有zone
firewall-cmd --get-default-zone //查看默认的zone
zone的区别
firewall-cmd --set-default-zone=work //设定默认zone
firewall-cmd --get-zone-of-interface=eth0 //查指定网卡 #如果看到是no zone ,重启一下网卡就看到了
firewall-cmd --zone=public --add-interface=eth0 //给指定网卡设置zone
firewall-cmd --zone=dmz --change-interface=eth0 //针对网卡更改zone
firewall-cmd --zone=dmz --remove-interface=eth0 //针对网卡删除zone
firewall-cmd --get-active-zones //查看系统所有网卡所在的zone
- Linux日常维护(firewalld的9个zone和service)
- linux学习第三十一篇:iptables规则备份和恢复,firewalld的9个zone,firewalld关于zone的操作,firewalld关于service的操作
- linux日常运维命令
- iptables规则备份和恢复 firewalld的9个zone firewalld关于zone的操作 firewalld关于service的操作
- Linux日常运维--7
- linux学习笔记-日常运维
- [10] Linux系统日常运维
- Linux日常运维脚本
- iptables表的备份和恢复、firewalld的9个zone、zone操作、service操作
- Linux学习笔记:MySQL日常运维查询状态
- 第13章 linux系统管理技巧(日常运维管理技巧)
- 日常运维工作中如何确保你的linux操作系统安全
- Linux日常运维管理技巧
- linux日常运维命令总结
- Linux日常运维脚本
- linux运维日常操作
- linux日常运维基础命令
- Linux日常运维--8
- 日常运维(八):sync通过服务同步,linux系统日志,screen工具
- 日常运维(六):Linux系统的任务计划与系统服务管理