mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #84] waf_cc_deny rate 語法錯誤 #199
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ADeeeee on GitHub (Jan 19, 2022).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/84
測試環境:
Ubuntu 20.04.3 LTS
nginx version: nginx/1.18.0 (Ubuntu)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
ngx_waf: 自己照文件流程 compile 出來的 LTS 1.18 版
問題:
設定為 200r/10m 時,下 nginx -t 確認會出現語法錯誤
我看 https://docs.addesp.com/ngx_waf/advance/directive.html#waf-cc-deny 文件範例上寫到可以自訂後面的時間長度,但我照著設置 200r/60m 也是不行,想請問 lts 版是不是還不支援自訂時間區間?
許願:
希望可以自訂時間區間,就像 fail2ban 一樣彈性,畢竟每個網頁專案所遇到的情況不太一樣,如果只能設定一分鐘幾次,有時會被突然瞬間大量正常的 request 觸發,造成不必要的麻煩,因此會傾向設定長一點的時間累積以防誤擋
另外希望官方可以提供 compile 好的版本有支援到 1.18,畢竟 Ubuntu 20.04 應還算是蠻熱門的 distro,應該還是大眾常用的版本
@ADD-SP commented on GitHub (Jan 19, 2022):
The LTS version only supports the syntax like
xr/m.The LTS version is focused on stability, so no new features will be added, only bug fixes.
I was considering providing pre-built modules a long time ago, but it didn't work out for many reasons. For example, some dependencies could not be statically linked into the module, and binary compatibility between different implementations of libc was not possible.
After encountering these difficulties, I intended to create several
.rpmand.debfiles to do the build automatically, but I didn't know much about these things, so I put them on hold.@ADeeeee commented on GitHub (Jan 20, 2022):
合理,感謝解答,希望這個功能可以盡快併進 LTS 版本
關於 waf_cc_deny 的部份暫時沒有什麼問題了,請問我有另外關於 rule 的問題方不方便另開 issue 詢問?
@ADD-SP commented on GitHub (Jan 20, 2022):
The cycle of LTS versions can be found at https://add-sp.github.io/ngx_waf-docs/changes/overview.html.
Asking some rule-related questions can create a new issue.