Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(6.12.13) Authlimit fix - need instructions

Featured Replies

It seems the Authlimit issue is common where Windows sends a lot of requests and Unraid blocks access for a while.

 

I found this post about a fix 

 

I'm hoping someone can walk me through how to apply it.  I don't know where or how to put in the fix.  

 

Thanks in advance.

 

 

Solved by bmartino1

  • Community Expert

are you using npm the docker or unraids nginx out going prox manger.

as these nginx configs will be different in terms of implementations.

  • Community Expert

as the fix is this script via the user script plugin to add this to unraids nginx config...

BUT THIS WILL OLNY DO THIS FOR UNARIDS nginx application...
 

 

# Fix NGINX limits to stop stupid log messages
sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/m;g" /etc/nginx/nginx.conf

 

sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf

 

/usr/sbin/nginx -s reload

 

  • Author

are you using npm the docker or unraids nginx out going prox manger?

 

@bmartino1

 

I'm not sure, I'm trying to fix the problem where I try to access my unraid share via Windows and it tells gives me an error about bad credentials, but eventually lets me in.

When I open the log from the unraid gui image.png.eaf9bd810f98276140d130fea23fb8a5.png

 

I see multiple entries like below.

 

Jan 18 12:17:53 EDI nginx: 2025/01/18 12:17:53 [error] 10715#10715: *2044622 limiting requests, excess: 20.813 by zone "authlimit", client: 192.168.1.44, server: , request: "PROPFIND /login HTTP/1.1", host: "192.168.1.60"

 

I haven't added any dockers to my system, I use default setup with folder shares and my Unraid its purely a file server

  • Community Expert

that appears to be nginx on unraid host.

you should install the user script plugin. Make a new script and cron run at first array start.
 

# Fix NGINX limits to stop stupid log messages
sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/m;g" /etc/nginx/nginx.conf
sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf
/usr/sbin/nginx -s reload


That seems like that bug as this will look find the line that is set to 20 and 30 in the 2 configs and increase them to 1 min...

  • 3 weeks later...
On 1/19/2025 at 2:36 AM, bmartino1 said:

that appears to be nginx on unraid host.

you should install the user script plugin. Make a new script and cron run at first array start.
 

# Fix NGINX limits to stop stupid log messages
sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/m;g" /etc/nginx/nginx.conf
sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf
/usr/sbin/nginx -s reload


That seems like that bug as this will look find the line that is set to 20 and 30 in the 2 configs and increase them to 1 min...

I had to add a 10sec wait as the files were not there yet:

# Fix NGINX limits 
# sed cannot find the file when executed directly, waiting for 10 secs first
sleep 10
sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/s;g" /etc/nginx/nginx.conf
sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf
/usr/sbin/nginx -s reload

  • Author

@tazman

Is this everything I need to do?

I installed user script and copy pasted your script, sce screenshots

What schedule should it be on?

 

 

unraid nginx.jpg

unraid schedule.jpg

  • Community Expert
  • Solution
8 minutes ago, Whiskers said:

@tazman

Is this everything I need to do?

I installed user script and copy pasted your script, sce screenshots

What schedule should it be on?

 

 

unraid nginx.jpg

unraid schedule.jpg

yes I have found that I need to wait 20 seconds after the array has auto started via disk settings for everything to be happy be fore making system services changes.
at first array start is the corn for this script to edit Nginx and add the data.

 

# Fix NGINX limits 
# sed cannot find the file when executed directly, waiting for 10 secs first
sleep 10
sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/s;g" /etc/nginx/nginx.conf
sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf
/usr/sbin/nginx -s reload

image.png.8e23262b983236b19f34e2cfc88263c0.png

 

edit nginx at your own risk...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.