Kong 系列【六】添加插件---ip-restriction之黑白名单

写在前边

本地postMan请求http://192.168.130.131:8000/test-route,可以正常访问,本地IP:192.168.130.1
同样在虚拟机环境192.168.130.129也可以正常访问。
Kong 系列【六】添加插件---ip-restriction之黑白名单
Kong 系列【六】添加插件---ip-restriction之黑白名单

添加ip-restriction插件

Kong 系列【六】添加插件---ip-restriction之黑白名单
将129添加到blacklist,在分别进行访问。本地可以访问,129提示IP address is not allowed.
Kong 系列【六】添加插件---ip-restriction之黑白名单

添加白名单同理。