install.sh: åpne også 22022 (NetBird SSH-server) på wt0
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
775ab6d075
commit
3f37b0a7fb
1 changed files with 2 additions and 1 deletions
|
|
@ -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 <lan-subnett> to any port $PORT proto tcp"
|
||||
elif sudo ufw status 2>/dev/null | grep -q "Status: active"; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue