Welcome! Log In Create A New Profile

Advanced

auth_basic and satisfy allowing all traffic

April 13, 2017 05:26PM
Hi all -

I'm having an issue trying to get auth_basic and satisfy directives working in tandem. If I use auth_basic/auth_basic_user_file on its own, I am prompted for credentials as expected. However, if I added the satisfy/allow/deny directives above, it seems that ALL traffic is allowed in without prompting for auth.

Here's how I have it.

satisfy any;
allow 38.103.XX.XXX/32; # HQIP
allow 38.118.XX.XXX/32; # User VPN IP
deny all;

auth_basic "Site Restricted";
auth_basic_user_file includes/htpasswd.site.dev.conf;

When I look though my access logs, I see the correct client IP as well.

nginx version is 1.10.1

Thank you for your help.

Dave
Subject Author Posted

auth_basic and satisfy allowing all traffic

daveyfx April 13, 2017 05:26PM

Re: auth_basic and satisfy allowing all traffic

Francis Daly April 13, 2017 08:18PM

Re: auth_basic and satisfy allowing all traffic

daveyfx April 13, 2017 11:49PM

Re: auth_basic and satisfy allowing all traffic

Francis Daly April 14, 2017 03:50AM

Re: auth_basic and satisfy allowing all traffic

daveyfx April 14, 2017 03:26PM

Re: auth_basic and satisfy allowing all traffic

Francis Daly April 15, 2017 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready