This commit is contained in:
Justin 2025-02-28 08:46:49 +01:00
parent 2787209af6
commit a0cfa1751a

View File

@ -116,3 +116,22 @@ if [[ -z "$nodejs_input" || "$nodejs_input" =~ ^[Yy]$ ]]; then
else
log_skip "Node.js-Installation übersprungen."
fi
# Installiere und konfiguriere UFW
log_info "UFW (Uncomplicated Firewall) wird installiert und konfiguriert..."
# Überprüfen, ob UFW bereits installiert ist
if command -v ufw &> /dev/null; then
log_info "UFW ist bereits installiert."
else
# Installiere UFW
apt install -y ufw
# Erlaube SSH-Verbindungen
ufw allow ssh
# Aktiviere UFW
echo "y" | ufw enable
log_success "UFW wurde erfolgreich installiert und konfiguriert. SSH-Verbindungen sind erlaubt."
fi