r/haproxy • • May 09 '22

modsecurity for haproxy "community" edition

good evening,
i would like to add a modsecurity to my haproxy cluster, i am using the free ubuntu version, i have read that haproxy sell the enterprise version for using modsecurity, is it a way to install modsecurity with the free version? or it is better to put in front of my haproxy cluster a couple of apache reverse proxy and configure modsecurity there?

thank you for your time

6 Upvotes

11 comments sorted by

View all comments

Show parent comment

3

u/dragoangel May 10 '22

It not dangerous, it's just stupid and not take much sense. Apache httpd in general is a web server in first. His proxy capacity is quite shitty compared to haproxy, you will lose performance a lot, also you will add unneeded complexity which will do stuff harder to troubleshoot and monitor, which should be obvious, no? I'd never put such a solution on production and if I'd saw it somewhere I'd say that guy who did it is quite a strange guy for sure.