mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #17] alpine build error #7
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#7
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 @phpstatic on GitHub (Jan 9, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/17
@ADD-SP commented on GitHub (Jan 9, 2021):
Thanks for pointing out this bug caused by some undefined behavior in the code.
I have uploaded the hotfix commit and you can execute the following command to recompile the installation. If there are no errors please close the issue.
@phpstatic commented on GitHub (Jan 10, 2021):
build error fixed.
I am not sure how to setup the the cc and ipv4 black list to work. here is my config file in server section:
test ok and restart:
and also put my ip into /etc/nginx/waf/rules/ipv4, return 200.
test with
wrk -t1 -c100 -d3, all 200.add
(?i)(?: curl/)into/etc/nginx/waf/rules/user-agent@ADD-SP commented on GitHub (Jan 10, 2021):
Do you have
ngx_http_rewrite_moduleinstalled and using a configuration like the one below?If so, please change it to something like this and retest it.
The reason for this is that
ngx_http_rewrite_moduleis mounted in an earlier processing phase thanngx_waf, so ifreturnis used it will return the result directly instead of calling a subsequent processing phase, andngx_wafwill not be able to inspect the request.At the moment, no other directives has been found to have a similar effect.
@phpstatic commented on GitHub (Jan 10, 2021):
I have no rewrite:
waf.ini
When I try this:
In the log
objs/addon/src/ngx_http_waf_module_core.ois link into nginx, now sure why has this error.I always use
include conf.d/wal.inistyle to manage different module conf file, never see this kink error.@ADD-SP commented on GitHub (Jan 10, 2021):
Can you post the output of
nginx -V?It looks like you are using a static module, can you test the dynamic module to see if it has the same problem?
@ADD-SP commented on GitHub (Jan 10, 2021):
There is a spelling error,
waf modeshould be corrected towaf_mode, there is an underscore between the two words.@phpstatic commented on GitHub (Jan 12, 2021):
Yes, the binary is static linked.
change to
waf_modestill get same results:@ADD-SP commented on GitHub (Jan 12, 2021):
Hello, I found some problems with the configure arguments you gave. I downloaded the source code from
nginx.org. I didn't find the--with-http_v3_moduleand--with-quichearguments, where did you download the source code from? Maybe we are using a different source code for NGINX.@ADD-SP commented on GitHub (Jan 19, 2021):
Hello, the latest stable version has been released, which supports printing debug logs. You can adjust the error log level to
debugafter the update and upload theerror.logfile to help locate the error, remember to clear the privacy information in the file.@phpstatic commented on GitHub (Feb 2, 2021):
The http3 patch is come from CloudFlare quiche patch. I will try and update the new version.
@phpstatic commented on GitHub (Feb 7, 2021):
I can confirm the build is working now, but some time get Segmentation fault. not sure it is ngx_waf related.
@ADD-SP commented on GitHub (Feb 8, 2021):
You can compile a program suitable for debugging by changing the parameters
-with-cc-opt='-O0 -g'and-with-debugin the configuration script. When you get an error, you can debug thecorefile withgdband generally find out the location of the source code of the error.@ADD-SP commented on GitHub (Mar 1, 2021):
I closed this issue because I did not receive a response for more than 15 days, so you can reopen it if you have questions.