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