2024年12月27日

Linux 系统通过 Iptables ipset(IP集)来阻止入侵 脚本block-ips.sh (二)

摘要: #! /bin/bash #Block-IPs-from-countries #Github:https://github.com/iiiiiii1/Block-IPs-from-countries #Blog:https://www.moerats.com/ Green="\033[32m" Fo 阅读全文

posted @ 2024-12-27 21:52 guan88 阅读(38) 评论(0) 推荐(0)

linux iptables 阻止访问ip,Linux使用iptables和ipset屏蔽指定国家IP访问的方法(一)

摘要: ipset是iptables的一个扩展,可以创建IP集,设置iptables规则更加灵活、高效和美观。基于这种特性,在linux中可以禁止某个国家的IP访问,也可以设置智能中国IP访问的白名单。 第一步 获取国家IP地址段,下载地址:http://www.ipdeny.com/ipblocks/ 。 阅读全文

posted @ 2024-12-27 21:51 guan88 阅读(509) 评论(0) 推荐(0)

导航