Initial Commit

This commit is contained in:
2025-05-08 17:19:00 +03:00
commit a6d484a7c8
6 changed files with 78 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
stop() {
ufw disable
# Clear the trap
trap - SIGINT SIGTERM
kill -- -$(pgrep iptables.sh)
}
ufw enable
# Run stop function when SIGINT or SIGTERM signals are caught
trap "stop $1" SIGINT SIGTERM
sleep infinity