ufw.php
- Pfad:
public/static-docs/online/module/ufw.php - Namespace: -
- Zeilen: 25 | Größe: 590 Bytes
- Geändert: 2025-12-19 23:56:40 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Code
<section>
<h2>4. Firewall (ufw)</h2>
<h3>4.1 Installation</h3>
<pre><code>apt-get install -y ufw</code></pre>
<h3>4.2 Konfiguration</h3>
<pre><code>ufw default deny incoming
ufw default allow outgoing
ufw allow 2022/tcp comment 'SSH'
ufw allow 80/tcp comment 'HTTP'
ufw allow 443/tcp comment 'HTTPS'
ufw --force enable</code></pre>
<h3>4.3 Status pruefen</h3>
<pre><code>ufw status verbose</code></pre>
<h3>4.4 Aktuelle Regeln</h3>
<ul>
<li><strong>2022/tcp:</strong> SSH</li>
<li><strong>80/tcp:</strong> HTTP</li>
<li><strong>443/tcp:</strong> HTTPS</li>
</ul>
</section>