From 3f37b0a7fb67f80634412ad22d56713d447b8e07 Mon Sep 17 00:00:00 2001 From: Kent Date: Tue, 6 Oct 2026 19:22:19 +0200 Subject: [PATCH] =?UTF-8?q?install.sh:=20=C3=A5pne=20ogs=C3=A5=2022022=20(?= =?UTF-8?q?NetBird=20SSH-server)=20p=C3=A5=20wt0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 290633f..7c0e8b9 100755 --- a/install.sh +++ b/install.sh @@ -86,10 +86,11 @@ if ip link show wt0 >/dev/null 2>&1; then sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow in on wt0 to any port 22 proto tcp comment "ssh via netbird" + sudo ufw allow in on wt0 to any port 22022 proto tcp comment "netbird ssh-server" sudo ufw allow in on wt0 to any port "$PORT" proto tcp comment "sg-announcer via netbird" sudo ufw delete allow "$PORT/tcp" >/dev/null 2>&1 || true sudo ufw --force enable - echo "ufw aktiv: port $PORT og 22 er åpne kun på wt0 (NetBird)." + echo "ufw aktiv: port $PORT, 22 og 22022 er åpne kun på wt0 (NetBird)." echo "Vil du også nå sida fra lokalt LAN uten VPN:" echo " sudo ufw allow from to any port $PORT proto tcp" elif sudo ufw status 2>/dev/null | grep -q "Status: active"; then