ufw
This commit is contained in:
parent
2787209af6
commit
a0cfa1751a
@ -116,3 +116,22 @@ if [[ -z "$nodejs_input" || "$nodejs_input" =~ ^[Yy]$ ]]; then
|
|||||||
else
|
else
|
||||||
log_skip "Node.js-Installation übersprungen."
|
log_skip "Node.js-Installation übersprungen."
|
||||||
fi
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user