Skip to content

I need help with failregex on Nginx Proxy Manager #3741

Closed Answered by sebres
viriatusX asked this question in Q&A
Discussion options

You must be logged in to vote

With this filter, it intercepts some proxies, but not others.

It has nothing with proxies, but with response code - you trying to match 40x responses only, however "SERVICE 2" examples are 502 and "SERVICE 3" examples are 20x codes. Therefore they will never match (and should probably never did, at least 20x codes).

By the way, your RE is a bit vulnerable... Here is an example of anchored RE without catch-alls (matching 40x and 50x codes):

failregex = ^\s*(?:\[\] )?\S+ \S+ (?:[4-5]0\d) - \S+ \S+ \S+ "[^"]*" \[Client <ADDR>\] (?:\[\w+ [^\]]*\] )*\[Sent-to <F-CONTAINER>[^\]]*</F-CONTAINER>\] "<F-USERAGENT>[^"]*</F-USERAGENT>"

Also you wouldn't really need ignoreregex - you can rewrite the f…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@viriatusX
Comment options

@sebres
Comment options

@viriatusX
Comment options

Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants