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

NameTypeDescription
sourceIP address | CIDR | unix: | allPermit matching peers. First match decides; local allow/deny rules replace inherited rules.

Working Example

Example Snippetnginx
allow 192.0.2.0/24;
Nginx Reference