Configuring Apache and HAProxy to Record Clients’ Real IP Addresses

When hosting an Apache server behind an HAProxy, the server receives requests from the WAN through HAProxy. This method can pose a problem because your web server sees the proxy’s IP address for each request, making the logs almost unusable, and any WordPress security plugin might ban the proxy’s local address instead of the attacker’s … Read more

Implementing Wildcard SSL/TLS Certificates with OVH and Let’s Encrypt

In today’s digital ecosystem, website security is paramount. The use of SSL/TLS certificates encrypts communications between users and servers, ensuring the confidentiality and integrity of exchanged data. A wildcard certificate, in particular, provides the flexibility to secure a primary domain and all its subdomains, making it indispensable for businesses with extensive and diversified web presence. … Read more

Separating and Sorting Postfix and Dovecot Logs with Rsyslog

I encountered a rather constraining issue for sticklers like me; I have my mail server hosting Postfix and Dovecot duo. The logs are respectively distributed in /var/log/mail.log for Postfix and /var/log/mail.log for Dovecot. Problem is, when sending these logs via Rsyslog to the receiving server, I ended up with a concatenation of both files into one. Let’s discover the solution to this problem together!

Read more