Implementing Mod Security in Yunohost

Dear Yunohost community,

I hope this message will reach you well and get a positive response for once. So I turn to you today and ask for your advice and support in implementing Mod Security in Yunohost.
Since I have and operate very many WP sites also and other tools, so I read on the net that there are also attacks via traffic, so similar to the DOS attack. And that you can also protect against it a little more.

I have read that there are different models and even open source solutions. The generic term is WAF. I would like to screw such a part into my system. How does something like that and that someone of you already, what belongs to it?

As a relatively new user I would like to increase the security of my Yunohost instance by the integration of a Web Application or gladly also App called, which is evenly the Firewall (WAF) App, around my condition. After some research I came across something like Mod Security, an open source WAF solution that is supposed to protect web applications from possible attacks.

However, I’m not sure exactly what steps are required to integrate Mod Security with Yunohost, especially considering that Yunohost works with a Nginx system and not Apache.

I am asking for your assistance in providing relevant resources, guidance or insight that will help me successfully configure Mod Security or Firwall App will be able to incorporate in my Yunohost instance. Would like to ensure that the implementation is done correctly and does not affect the functioning of my existing services.

If anyone has any experience setting up Mod Security or Firwall App in a Yunohost environment, I would be very grateful for any tips, best practices or experiences you can share.

Thank you in advance for your time and support. I greatly value the knowledge and experience in this community and appreciate any opportunity to read and learn from you all.

Meine Erfahrungen über Hosten in der Open-Source Welt

Foren antworten zum Bereich Server & Panel

„Zunächst einmal möchte ich meine Wertschätzung für eure Arbeit und den ausgezeichneten Artikel ausdrücken. Ich kann mich damit sehr gut identifizieren. Ich habe bereits vor Yunohost und generell Server-Panels viele Experimente durchgeführt, auch mit Debian. Aber eines steht fest: Mit Debian bin ich bis ans Ende meiner Tage verbunden. Mit keiner anderen Software werde ich je ins Bett gehen. :joy: Ich liebe Debian genauso wie ich heute Yunohost liebe.

Ich muss zugeben, dass es zu Beginn einige Meinungsverschiedenheiten und Zweifel gab, ob wir unsere gemeinsame Reise fortsetzen sollten. Ich habe viele Server-Panels ausprobiert, insbesondere aus dem Open-Source-Bereich, und verschiedene Hosting-Anbieter getestet. Ich könnte ein Buch über meine Erfahrungen schreiben, was ich tatsächlich auf meinem Blog tue. Fakt ist, dass ich immer wieder neue Dinge ausprobiert, gelöscht und neu aufgesetzt habe, bis ich schließlich einen Blog als Leitfaden für mein gesamtes System verwendet habe. Dieser ist nun fest in mein System integriert. Jetzt verwende ich Archivist, um alle meine Daten herunterzuladen. Obwohl ich bisher noch keine Erfahrung mit Archivist habe und mir bewusst ist, dass er derzeit einen kleinen Fehler aufweist, hoffe ich dennoch, dass er regelmäßig Sicherungskopien erstellt, wie ich es erwarte.

Zusätzlich zu dem Fehler habe ich auch ein kleines Menü erstellt, um die kleinen Probleme anzugehen. Obwohl ich nicht mehr der Jüngste bin, habe ich mir selbst durch Lesen und Informieren vieles beigebracht. Mein Weg ist noch lange nicht zu Ende, sei es bei Hosting-Anbietern, Server-Dienstleistern oder Open-Source-Software. Doch ich habe mir bestimmte Anbieter wie Hetzner, All-ink, Profi-Webspace und natürlich Yunohost ausgesucht. Ich verstehe deinen Standpunkt, wenn es darum geht, bei vorinstallierten Apps zu bleiben, und ich teile diese Meinung. Ich habe die Apps sorgfältig ausgewählt, um meine Anforderungen zu erfüllen, und ich denke, dass ich keine zusätzlichen Aufgaben mehr benötige. Ich hoffe nur, dass Yunohost diese Apps langfristig pflegt und unterstützt.

Ich habe einen Link zu meiner Maschine und zu einem Artikel hinterlegt, den ich heute Morgen im Support-Bereich veröffentlicht habe. Ich stimme dir vollkommen zu, dass es wichtig ist, Informationen und Tipps an die Benutzer weiterzugeben. Leider sind meine Englischkenntnisse nicht ausreichend, um zur Dokumentation beizutragen. Dennoch werde ich in meinem Forum einen speziellen Bereich dafür einrichten. Ich wünsche euch viel Glück bei euren Server-Vorhaben, egal ob ihr euch für ein Panel entscheidet oder bei Yunohost bleibt. Ich hoffe, dass ihr letztendlich Stabilität und Erfolg mit Yunohost findet. Viel Glück mit euren zukünftigen Plänen.

Link zu meiner Maschine: Maschinenlink Link zu meinem Forenartikel: Forenartikel

Forum treets for the Debian yunohost

Words of wisdom for newbies? Recommended first steps?

„First of all, I want to express my appreciation for your work and the excellent article you have written. I can relate to it on a personal level. I have experimented with various server panels, including those before I discovered Yunohost, and I have also tried other options with Debian. However, one thing is certain: I am committed to Debian, and no other software can replace it in my heart. :joy: I absolutely adore Debian, just like I love Yunohost today.

I must admit that at the beginning, there were some disagreements and doubts about whether we would continue our journey together. I have tested numerous server panels, particularly from the open-source community, as well as various hosting providers. I could write a book about my experiences, which I am actually doing on my blog. Throughout my journey, I have constantly tried, deleted, and rebuilt, until I found a blog that became my reference point. It is now an integral part of my entire system, and I am in the process of downloading all my data using Archivist. Although I haven’t had much experience with Archivist yet and I am aware of its small bug, I remain hopeful that it will continue to create backups regularly, as I expect.

In addition to the bug, I have also created a small menu to address the minor issues. Despite not being the youngest, I have self-taught myself through reading and staying informed. My journey is far from over, whether it involves hosting providers, server services, or open-source software. However, I have made certain commitments to specific providers such as Hetzner, All-ink, Profi-Webspace, and, of course, Yunohost. I understand your perspective on sticking with pre-installed apps, and I share the same sentiment. I have carefully chosen the apps that fulfill my needs, and I feel that I do not require additional tasks. I only hope that Yunohost will continue to maintain and support these apps in the long run.

I have provided a link to my machine and an article I posted in the support section this morning. I completely agree with your points about providing information and tips to users. Unfortunately, my English skills are not sufficient for me to contribute to the documentation. However, I will create a dedicated space in my forum for such contributions. I wish you the best of luck in your server-related endeavors, whether it’s deciding on a panel or sticking with Yunohost. I hope that you will find stability and success with Yunohost in the end. Good luck with your future plans.

Link to my machine: Machine Link Link to my forum article: Forum Article

„Key Moments with Element: An Unexpected Journey to Security“

It was an ordinary day, I opened my terminal and executed a regular system update when a notification caught my eye. It was about the public key of Element not being available. I was puzzled because Element is a reputable provider of secure messaging services. How could this be? Together with my loyal AI companion, ChatGPT, I decided to get to the bottom of the mystery.

We discovered that the key from the Element repository on my computer had been deleted. I had actually done this previously, but the repeated error message made me pause. Why had the key suddenly disappeared? And why hadn’t Element provided a new one?

The answers to these questions were not easy to find. We searched the internet and scoured the official Element website, but found no new information about the public key. Finally, however, we found the key on a less well-known page of the Element website and breathed a sigh of relief.

But the relief was short-lived. The downloaded key was outdated, and the attempt to import it failed. This was more than just a small problem – it meant that Element had not properly secured its repository, which posed a security risk.

Determined to resolve the issue, we wrote to the Element support team and explained the situation. The reply came faster than expected: „We’re working on it.“ This was reassuring, but it was clear that the situation required more attention.

In summary, our journey to solving the key issue with Element was an educational experience. It underlines the importance of security aspects in the digital world and the role we as users play in maintaining this security. I hope that our story encourages others to take their own digital security seriously and to always remain vigilant. It may be strenuous, but at the end of the day, it’s the key to a safer digital world. And I still haven’t resolved the key issue. I’ll wait for Thunderbird, maybe they’ll come up with a nice development in an add-on or other possibilities.

Who knows. Is this roughly what you had in mind?

„Schlüsselmomente mit Element: Eine unerwartete Reise zur Sicherheit“

Es war ein gewöhnlicher Tag, ich öffnete mein Terminal und führte ein normales Systemupdate durch, als mir eine Meldung ins Auge fiel. Es ging um den öffentlichen Schlüssel von Element, der nicht verfügbar war. Ich war verblüfft, denn Element ist ein renommierter Anbieter von sicheren Messaging-Diensten. Wie konnte das sein? Zusammen mit meiner treuen KI-Begleiterin, ChatGPT, beschloss ich, dem Rätsel auf den Grund zu gehen.

Wir fanden heraus, dass der Schlüssel aus dem Element-Repository auf meinem Computer gelöscht worden war. Dies hatte ich tatsächlich zuvor getan, aber die wiederholte Fehlermeldung ließ mich stutzen. Warum war der Schlüssel plötzlich verschwunden? Und warum hatte Element keinen neuen bereitgestellt?

Die Antworten auf diese Fragen waren nicht leicht zu finden. Wir suchten im Internet und durchforsteten die offizielle Element-Website, aber fanden keine neuen Informationen zum öffentlichen Schlüssel. Schließlich fanden wir jedoch den Schlüssel auf einer weniger bekannten Seite der Element-Website und waren erleichtert.

Doch die Erleichterung war von kurzer Dauer. Der heruntergeladene Schlüssel war veraltet und der Versuch, ihn zu importieren, schlug fehl. Dies war mehr als nur ein kleines Problem – es bedeutete, dass Element sein Repository nicht ordnungsgemäß gesichert hatte, was ein Sicherheitsrisiko darstellte.

Entschlossen, das Problem zu lösen, schrieben wir an das Element-Support-Team und erklärten die Situation. Die Antwort kam schneller als erwartet: „Wir arbeiten daran.“ Dies war beruhigend, aber es war klar, dass die Situation mehr Aufmerksamkeit erforderte.

Zusammenfassend lässt sich sagen, dass unsere Reise zur Lösung des Schlüsselproblems von Element eine lehrreiche Erfahrung war. Sie unterstreicht die Bedeutung von Sicherheitsaspekten in der digitalen Welt und die Rolle, die wir als Nutzer bei der Aufrechterhaltung dieser Sicherheit spielen. Ich hoffe, dass unsere Geschichte andere dazu ermutigt, ihre eigene digitale Sicherheit ernst zu nehmen und stets wachsam zu bleiben. Es mag anstrengend sein, aber am Ende des Tages ist es der Schlüssel zu einer sichereren digitalen Welt.
Ich habe immer noch nicht das schlüssel Problem geklärt. Ich warte ,ich mal auf Thunderbird vielleicht kommen die mit einer schönen Entwicklung in Ad on oder sonstige Möglichkeiten hervor. Wer weiß das schon.
Ist das in etwa das, was Sie im Sinn hatte