docs: update linux/linux-firewall

This commit is contained in:
2026-03-16 00:12:00 +00:00
committed by Norsotec
parent 8da4beb741
commit 8475b3bbd4

View File

@@ -2,7 +2,7 @@
title: Firewall Linux
description: Firewall Konfiguration unter Linux
published: true
date: 2026-03-16T00:06:16.703Z
date: 2026-03-16T00:11:57.931Z
tags: firewall, linux
editor: markdown
dateCreated: 2026-03-15T23:56:44.726Z
@@ -21,5 +21,16 @@ Mögliche Ausgabe Status: `active` oder `inactive`.
sudo ufw status
```
3) Bevor die Firewall aktiviert wird, sollten die Ports freigeschalten werden
Mit diesem Befehl sieht man sich an, welche Ports bereits in der Konfigdatei freigeschaltet sind (vor Aktivierung):
```bash
sudo ufw show added
```
Mit diesem Befehl schaltet man Ports frei zum Beispiel:
```bash
ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 3010/tcp
ufw allow 2222/tcp
ufw allow 21115:21119/tcp
ufw allow 21115:21119/udp
```