上一页 1 ··· 102 103 104 105 106 107 108 109 110 ··· 204 下一页
摘要: 一,查看zone和interface的关系 1,查看活动区域: [root@blog ~]# firewall-cmd --get-active-zones drop sources: 11.20.12.18 public interfaces: eth0 trusted sources: 13.2 阅读全文
posted @ 2024-08-29 14:52 刘宏缔的架构森林 阅读(251) 评论(0) 推荐(0)
摘要: 一,打开调试选项 1,官方文档地址: https://firewalld.org/documentation/howto/debug-firewalld.html 2, 编辑配置文件: [root@blog ~]# vi /etc/sysconfig/firewalld 把FIREWALLD_ARG 阅读全文
posted @ 2024-08-29 11:36 刘宏缔的架构森林 阅读(101) 评论(0) 推荐(0)
摘要: 一,用firewalld添加ipset 创建新的ipset [root@blog ~]# firewall-cmd --permanent --new-ipset=nginxcc --type=hash:ip 重新加载到内存 [root@blog ~]# firewall-cmd --reload 阅读全文
posted @ 2024-08-28 15:35 刘宏缔的架构森林 阅读(83) 评论(0) 推荐(0)
摘要: 一,解析日志得到访问量最高的100个ip地址: awk '{print $1}' www.access_log | sort | uniq -c | sort -n -k 1 -r | head -n 100 效果如图: 二,解析日志得到访问量最高的10个url 命令 [root@blog 27]# 阅读全文
posted @ 2024-08-28 11:37 刘宏缔的架构森林 阅读(81) 评论(0) 推荐(0)
摘要: 一,关闭nginx的版本显示: 1,关闭前 2,关闭nginx版本显示: 编辑nginx.conf [root@blog conf]# vi nginx.conf 增加一行: server_tokens off; 重新服务: [root@blog conf]# systemctl reload ng 阅读全文
posted @ 2024-08-28 11:27 刘宏缔的架构森林 阅读(329) 评论(0) 推荐(0)
摘要: 一,firewalld的rich规则执行逻辑如下: 1,日志规则 2,drop/reject规则 3,accept规则 二,例子:验证是否先匹配reject规则 1,添加两条规则:第一条允许指定ip访问22端口第二条禁止同一个ip访问 [root@blog ~]# firewall-cmd --ad 阅读全文
posted @ 2024-08-27 14:32 刘宏缔的架构森林 阅读(1658) 评论(0) 推荐(0)
摘要: 一,官方网站 https://www.clamav.net/ 如图: 二,安装 1,开启epel仓库 [root@blog ~]# yum install -y epel-release 2,安装clamav [root@blog ~]# yum install clamav 说明:病毒库数据较大, 阅读全文
posted @ 2024-08-26 14:00 刘宏缔的架构森林 阅读(2018) 评论(0) 推荐(0)
摘要: 一,fail2ban中的时间设置: m:分钟 h:小时 d: 天 w: 周 y: 年 -1:永久 二,安装: 1,通过yum安装 用yum 安装: [root@blog ~]# yum install fail2ban 安装后查看状态:未启动 [root@blog ~]# systemctl sta 阅读全文
posted @ 2024-08-26 11:00 刘宏缔的架构森林 阅读(296) 评论(0) 推荐(0)
摘要: 一,保存到文件 1,创建集合: [root@blog ~]# ipset create myset hash:ip 添加ip: [root@blog ~]# ipset add myset 192.168.1.100 [root@blog ~]# ipset add myset 192.168.1. 阅读全文
posted @ 2024-08-25 20:47 刘宏缔的架构森林 阅读(285) 评论(0) 推荐(0)
摘要: 一,官方文档: 1, 选项: https://firewalld.org/documentation/direct/options.html 例子: https://firewalld.org/documentation/direct/examples.html 手册: https://firewa 阅读全文
posted @ 2024-08-25 17:16 刘宏缔的架构森林 阅读(567) 评论(0) 推荐(0)
上一页 1 ··· 102 103 104 105 106 107 108 109 110 ··· 204 下一页