Stream access directives
allow directive (stream)
stream, server; admits a matching address at the transport-session layer. Stream access module since 1.9.2.
Formal Syntax & Structure
nginx syntaxnginx
allow address | CIDR | unix: | all;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| source | IP address | CIDR | unix: | all | Permit matching peers. First match decides; local allow/deny rules replace inherited rules. |
Working Example
Example Snippetnginx
allow 192.0.2.0/24;