I have 2 web servers behind Haproxy. I would like to “undesired” traffic to those server using fail2ban but on haproxy not on the web servers. I have so enabled haproxy log as follows:
global log 127.0.0.1:514 local0 defaults log global mode http option httplog option dontlognull
But in the log, I do not have the domain information. Is there a way to add it?