update scripts and work on server setup

This commit is contained in:
2025-07-23 18:43:58 +01:00
parent 9f1f96500b
commit e949a1cf6e
7 changed files with 165 additions and 67 deletions

9
scripts/upnpc-close Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# Close all upnpc ports
sudo apt install miniupnpc -y
upnpc -l | sed -n 's/^[[:space:]]*[0-9]\+\s\+\(TCP\|UDP\)\s\+\([0-9]\+\).*/\1 \2/p' | while read proto port; do
upnpc -d "$port" "$proto"
done