Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] modsecurity #1192

Open
sptndc opened this issue Jun 16, 2019 · 7 comments
Open

[Feature request] modsecurity #1192

sptndc opened this issue Jun 16, 2019 · 7 comments

Comments

@sptndc
Copy link

sptndc commented Jun 16, 2019

Please, add libnginx-mod-http-modsecurity.

Distribution (please complete the following information):

  • OS: Ubuntu
  • Architecture: amd64
  • Repository: Ubuntu Nginx PPA
@abkrim
Copy link

abkrim commented Mar 1, 2020

or is possible compile nginx with-compat for every user can compile module modsecurity using Nginx doc.

A lot of thanks for your repo.

@oerdnj
Copy link
Owner

oerdnj commented Mar 30, 2021

Bump for myself...

@bashgeek
Copy link

Bump for myself...

Sorry, had to bump your bump :-)

@dkorunic
Copy link

I can confirm the issue for libapache2-mod-security2 when using libpcre2-8-0 from deb.sury.org:
Package installed:

ii  libpcre2-8-0:amd64               10.42-3+ubuntu22.04.1+deb.sury.org+1                                 amd64        New Perl Compatible Regular Expression Library- 8 bit runtime files

From ModSecurity error logs:

ModSecurity: PCRE compiled version="8.39 "; loaded version="8.45 2021-06-15"
ModSecurity: Loaded PCRE do not match with compiled!

This results in various PCRE operators such as @rx to fail to match.

@oerdnj
Copy link
Owner

oerdnj commented Aug 28, 2024

ModSecurity: PCRE compiled version="8.39 "; loaded version="8.45 2021-06-15"

That would be libpcre3* package, not libpcre2-8-0.

@dkorunic
Copy link

Agreed @oerdnj, sorry for the wrong c/p from the running system:

ii  libpcre3:amd64                         2:8.45-1+ubuntu22.04.1+deb.sury.org+1                                amd64        Perl 5 Compatible Regular Expression Library - runtime files

As we said, this happens from php*-dev dependancies that bring deb.sury.org+1 libpcre variants and ModSecurity PCRE ends up broken.

@jogoossens
Copy link

Please add libnginx-mod-http-modsecurity for nginx on Debian as well, we are coming from the bookworm nginx which DOES HAVE this package available :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants