We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dde6d4 commit 2d26b45Copy full SHA for 2d26b45
1 file changed
hardening/UFW Cloudflare/ufw-cloudflare.bash
@@ -2,7 +2,7 @@
2
#
3
# Sets up UFW to only allow HTTP and HTTPS traffic from Cloudflare's IP ranges.
4
5
-# Version: v1.0.0-beta.1
+# Version: v1.0.0-beta.2
6
# License: MIT License
7
# Copyright (c) 2024 Hunter T. (StrangeRanger)
8
@@ -139,10 +139,14 @@ cleanup() {
139
}
140
141
142
-####[ Trap Logic ]######################################################################
+####[ Trapping Logic ]##################################################################
143
144
145
-trap cleanup EXIT
+trap 'clean_exit 130' SIGINT
146
+trap 'clean_exit 143' SIGTERM
147
+trap 'clean_exit 129' SIGHUP
148
+trap 'clean_exit 131' SIGQUIT
149
+trap 'clean_exit $?' EXIT
150
151
152
####[ Main ]############################################################################
0 commit comments