Skip to content

ModSecurity 3 - Windows Apache/Nginx Connector #2480

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

Open
gianks opened this issue Dec 18, 2020 · 8 comments
Open

ModSecurity 3 - Windows Apache/Nginx Connector #2480

gianks opened this issue Dec 18, 2020 · 8 comments
Assignees
Labels
3.x Related to ModSecurity version 3.x

Comments

@gianks
Copy link

gianks commented Dec 18, 2020

Hi all,
it's been a while since the last update i could find on this topic.
We are facing the need to provide ModSecurity v3 in Windows environment.
Currently using IIS with 2.9.4.

What's the current status?
Is it plausible to compile and use it with Apache or Nginx on Windows to your knowledge?

Thanks!

@zimmerle
Copy link
Contributor

Hi @gianks

That is good to hear. We are aiming not only to have it working for Nginx / Apache on windows but also IIS.

It is feasible to have v3 compiled on Windows using the VS build tools. However, some modifications are needed to be done. As we develop the code or review contributions, we make it easy to extend to the Windows platform.

Some example of things that demands changes are -

https://github.com/SpiderLabs/ModSecurity/blob/f18595f42830f2f0ac27362a8b31120e3dfb850c/src/collection/backend/in_memory-per_process.cc#L42

Or even headers that need to be well selected -
https://github.com/SpiderLabs/ModSecurity/blob/f18595f42830f2f0ac27362a8b31120e3dfb850c/src/operators/rbl.h#L19-L23

Not to forget that we miss the compilation scripts for VS. Overall, it is possible to compile, but it will demand a little effort.

Count on us to help you during this process ;)

@zimmerle zimmerle added the 3.x Related to ModSecurity version 3.x label Dec 21, 2020
@zimmerle zimmerle self-assigned this Dec 21, 2020
@gianks
Copy link
Author

gianks commented Dec 22, 2020

Hi,
we are working on it although some issues are slowing down the ops.
Is there any problem in using cygwin or mingw to compile modsecurity?
Would this cause troubles with the connectors?

@zimmerle
Copy link
Contributor

@gianks not that I heard about. Please do share your experience on that process, it will be vary valuable.

@zimmerle
Copy link
Contributor

@gianks any progress so far?

@fahmiegerton
Copy link

I'm using nginx for Windows, but not IIS. Any tutorial or docs that I could take a look so I could set it up with nginx for Windows? Thanks

@Pirson97
Copy link

Hi @gianks

That is good to hear. We are aiming not only to have it working for Nginx / Apache on windows but also IIS.

It is feasible to have v3 compiled on Windows using the VS build tools. However, some modifications are needed to be done. As we develop the code or review contributions, we make it easy to extend to the Windows platform.

Some example of things that demands changes are -

https://github.com/SpiderLabs/ModSecurity/blob/f18595f42830f2f0ac27362a8b31120e3dfb850c/src/collection/backend/in_memory-per_process.cc#L42

Or even headers that need to be well selected -

https://github.com/SpiderLabs/ModSecurity/blob/f18595f42830f2f0ac27362a8b31120e3dfb850c/src/operators/rbl.h#L19-L23

Not to forget that we miss the compilation scripts for VS. Overall, it is possible to compile, but it will demand a little effort.

Count on us to help you during this process ;)

How do I configure ModSecurity for Nginx on Windows ?

@perlsol
Copy link

perlsol commented Nov 8, 2021

Can we assume that IIs support has now been abandoned, and that all our hopes of v3 on IIs was just a dream.
It seems like all the WAF project's are being abandoned!

@mguinness
Copy link

I think with any open source project they have to prioritize the development work and frankly the number of sites using ModSecurity with IIS is tiny compared to Apache and Nginx (on Linux). I myself created a basic WAF for ASP.NET Core at https://github.com/mguinness/KestrelWAF in lieu of a working IIS solution.

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

No branches or pull requests

6 participants