Skip to content

Commit

Permalink
Bad subnet
Browse files Browse the repository at this point in the history
Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless.
The correct subnet mask should be `192.168.0.0/24`
  • Loading branch information
olivbd authored Jun 20, 2020
1 parent 723e743 commit 7eceda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installation/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ These lines are placed in the `location{}` block. For example, by adding the lin

```nginx
satisfy any;
allow 192.168.0.1/24;
allow 192.168.0.0/24;
allow 127.0.0.1;
deny all;
```

NGINX will allow anyone within the 192.168.0.1/24 range **and** the localhost to connect without a password.
NGINX will allow anyone within the 192.168.0.0/24 range **and** the localhost to connect without a password.
If you have setup a password following the previous section, then the rest will be prompted for a password for access.

{: #nginx-domain}
Expand Down

0 comments on commit 7eceda1

Please sign in to comment.