The ngx_stream_access_module module (1.9.2) allows limiting access to certain client addresses. Example Configuration server { ... deny 192.168.1.1; allow 192.168.1.0/24; allow 10.1.1.0/16; allow 2001:0db8::/32; deny all; } The rules are checked in sequence until the first match is f...
ngx_stream_access_module模块(1.9.2+)允许通过客户端地址限制访问。示例配置 server { ... deny 192.168.1.1; allow 192.168.1.0/24; allow 10.1.1.0/16; allow 2001:0db8::/32; deny all; } 规则按顺序检查,直到找到第一个匹配。在这个例子中,只允许IPv4网段10.1.1.0/16和192.168.1.0/24中除了192.168...