From 71d9899cb0e07299eac5b26663a3259ec39371bb Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Wed, 22 Oct 2025 11:38:39 +0200 Subject: [PATCH] install.sh aktualisiert --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 1322176..6f143ee 100644 --- a/install.sh +++ b/install.sh @@ -83,6 +83,11 @@ loginuser ALL=(ALL) NOPASSWD: /usr/sbin/dhclient eth0 loginuser ALL=(ALL) NOPASSWD: /usr/sbin/reboot EOF +# Setze TCP-Keepalive +echo "net.ipv4.tcp_keepalive_time = 60" >> /etc/sysctl.conf +echo "net.ipv4.tcp_keepalive_intvl = 10" >> /etc/sysctl.conf +echo "net.ipv4.tcp_keepalive_probes = 6" >> /etc/sysctl.conf + # Disable root echo -e "${RED}→${NC} Disabling root login..." | tee -a /var/log/install sudo tee /etc/ssh/sshd_config >/dev/null << 'EOF'