![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
服务器
Mr.叶落丶
这个作者很懒,什么都没留下…
展开
-
centos6 yum安装源失效处理方式
1、mv /etc/yum.repos.d/ /tmp 2、vim /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close原创 2021-04-13 21:12:14 · 261 阅读 · 0 评论 -
通过ipset来管理防火墙中的黑白名单
创建对应的ip集合 ipset create black_list hash:ip 添加对应的防火墙策略 iptables -A INPUT -p tcp -m set --match-set black_list src -m multiport --dports 443,80 -j DROP 添加ip到集合中 #3600 单位是s ipset add black_list 10.0.2.2 timeout 3600 删除集合中的ip ipset del black_list 10.0.2.2转载 2020-11-05 18:30:06 · 351 阅读 · 0 评论