返回列表 发新帖
查看: 320|回复: 0

[kangle商业版3.5.12.18] kangle white list设置IP连接数黑白名单系统

[复制链接]

1万

热度

1万

元宝

1万

贡献

金牌草根

发表于 2017-3-22 10:32:48 | 显示全部楼层 |阅读模式


已经解决
通过进入ssh
vi /vhs/kangle/etc/config.xmlconfig.xml.lst文件 (最好SFTP里面传输下来该文件直接编辑添加后上传覆盖)

设置特殊ip段的每ip连接数限制,在connect标签下面(3.1.1版本以上)。
ip 段为cidr格式。如192.168.1.1,192.168.1.0/24
max 每ip连接数,0为不限制,deny为拒绝连接
例,设置192.168.0.0/24每ip连接数不限,10.0.0.0/8,拒绝连接,其它ip的连接数设置为20,如下配置。查找:
  1. <connect max_per_ip='0' max='20000' >
复制代码
在其下行添加:【2017.06.29百度云加速白名单列表,如有更新,请在此日期之后添加新的节点段~】
  1.         <per_ip src='112.65.74.0/24' max='0'/>
  2.         <per_ip src='113.207.101.0/24' max='0'/>
  3.         <per_ip src='180.163.188.0/24' max='0'/>
  4.         <per_ip src='119.188.97.0/24' max='0'/>
  5.         <per_ip src='61.155.149.0/24' max='0'/>
  6.         <per_ip src='61.182.137.0/24' max='0'/>
  7.         <per_ip src='222.216.190.0/24' max='0'/>
  8.         <per_ip src='183.60.235.0/24' max='0'/>
  9.         <per_ip src='117.34.13.0/24' max='0'/>
  10.         <per_ip src='42.236.93.0/24' max='0'/>
  11.         <per_ip src='119.167.246.0/24' max='0'/>
  12.         <per_ip src='117.27.149.0/24' max='0'/>
  13.         <per_ip src='59.51.81.0/24' max='0'/>
  14.         <per_ip src='183.61.236.0/24' max='0'/>
  15.         <per_ip src='124.95.168.0/24' max='0'/>
  16.         <per_ip src='61.54.46.0/24' max='0'/>
  17.         <per_ip src='101.71.55.0/24' max='0'/>
  18.         <per_ip src='183.232.51.0/24' max='0'/>
  19.         <per_ip src='182.150.0.0/24' max='0'/>
  20.         <per_ip src='112.25.90.0/24' max='0'/>
  21.         <per_ip src='122.190.2.0/24' max='0'/>
  22.         <per_ip src='119.84.92.0/24' max='0'/>
  23.         <per_ip src='183.61.177.0/24' max='0'/>
  24.         <per_ip src='125.39.174.0/24' max='0'/>
  25.         <per_ip src='117.148.160.0/24' max='0'/>
  26.         <per_ip src='112.65.73.0/24' max='0'/>
  27.         <per_ip src='115.231.186.0/24' max='0'/>
  28.         <per_ip src='112.65.75.0/24' max='0'/>
  29.         <per_ip src='113.207.102.0/24' max='0'/>
  30.         <per_ip src='180.163.189.0/24' max='0'/>
  31.         <per_ip src='119.188.9.0/24' max='0'/>
  32.         <per_ip src='61.156.149.0/24' max='0'/>
  33.         <per_ip src='61.182.136.0/24' max='0'/>
  34.         <per_ip src='219.159.84.0/24' max='0'/>
  35.         <per_ip src='116.31.126.0/24' max='0'/>
  36.         <per_ip src='117.34.14.0/24' max='0'/>
  37.         <per_ip src='42.236.94.0/24' max='0'/>
  38.         <per_ip src='150.138.149.0/24' max='0'/>
  39.         <per_ip src='220.170.185.0/24' max='0'/>
  40.         <per_ip src='14.17.71.0/24' max='0'/>
  41.         <per_ip src='124.95.188.0/24' max='0'/>
  42.         <per_ip src='61.54.47.0/24' max='0'/>
  43.         <per_ip src='101.71.56.0/24' max='0'/>
  44.         <per_ip src='183.232.53.0/24' max='0'/>
  45.         <per_ip src='182.150.1.0/24' max='0'/>
  46.         <per_ip src='112.25.91.0/24' max='0'/>
  47.         <per_ip src='122.190.3.0/24' max='0'/>
  48.         <per_ip src='119.84.93.0/24' max='0'/>
  49.         <per_ip src='183.61.190.0/24' max='0'/>
  50.         <per_ip src='125.39.239.0/24' max='0'/>
  51.         <per_ip src='117.148.161.0/24' max='0'/>
  52.         <per_ip src='115.231.187.0/24' max='0'/>
  53.         <per_ip src='163.53.89.0/24' max='0'/>
  54.         <per_ip src='61.155.165.0/24' max='0'/>
  55.         <per_ip src='120.52.29.0/24' max='0'/>
  56.         <per_ip src='116.31.127.0/24' max='0'/>
  57.         <per_ip src='150.138.150.0/24' max='0'/>
  58.         <per_ip src='220.170.186.0/24' max='0'/>
  59.         <per_ip src='157.255.25.0/24' max='0'/>
  60.         <per_ip src='58.211.2.0/24' max='0'/>
  61.         <per_ip src='113.207.100.0/24' max='0'/>
  62.         <per_ip src='101.227.206.0/24' max='0'/>
  63.         <per_ip src='120.52.113.0/24' max='0'/>
  64.         <per_ip src='150.138.151.0/24' max='0'/>
  65.         <per_ip src='157.255.26.0/24' max='0'/>
  66.         <per_ip src='58.211.137.0/24' max='0'/>
  67.         <per_ip src='101.227.207.0/24' max='0'/>
  68.         <per_ip src='111.32.135.0/24' max='0'/>
  69.         <per_ip src='111.32.136.0/24' max='0'/>
复制代码


如图位置:


编辑保存后,可能需要重启kangle服务器生效。

推荐阅读:
使用360网站卫士、百度云加速、加速乐配合kangle防CC、DDOS的组合防御anti_cc模块srcs
https://www.cgzz8.cn/t-28882-1-1.html
(出处: 草根吧)

本文来源于网友学习研究交流 www.caogen8.co,请以学习研究交流为主。
如果您没有贡献积分,可以直接免费领取,免费领取
如果你需要加入本学习研究交流,请以学习研究交流为目的,免责声明
如果找不到您要的资源,请搜索一下,点击搜索
返回列表 发新帖
 懒得打字嘛,点击右侧快捷回复【最新发布】   【赞助草根吧享更多权益】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

收藏帖子 返回列表 搜索

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

小黑屋|手机版|草根吧