Welcome! Log In Create A New Profile

Advanced

NGINX Allow Rule not behaving as expected

Posted by paul.haynes 
NGINX Allow Rule not behaving as expected
June 17, 2024 09:09AM
Hello i have bit of unexpected behaviour for a allow rule. i have 3 machines with known IP addresses and the rule of allow by IP works for 10.125.1.9 and 10 but not for 18. I tried a subnet rule see hashed out and still 10.125.1.18 could not access the expected resources.

Example code from nginx site file below.

----------------------------------------------
location ~ /resource/private {
#allow 10.125.1.0/24;
allow 10.125.1.18;
allow 10.125.1.9;
allow 10.125.1.10;
deny all;
}
----------------------------------------------

Can anyone shed light on what could be going wrong here please?

NGINX version is 1.18.0 on Ubuntu 20.04 latest updates.

Thanks

Paul
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready