File tree Expand file tree Collapse file tree 1 file changed +1
-30
lines changed
Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change 11# changelog
22
3- ## Changes made for V 0.4.0
4-
5- ### Optimized ` firewall-update.sh ` for faster processing, improving performance with large JSON files.
6-
7- #### Changed
8- - ** Batch blocking of IPs**
9- - Original: Loops through each active IP and runs ` ufw deny from "$ip" ` immediately if not already blocked.
10- - New: Collects all new active IPs per jail and executes ` ufw deny from "$ip" ` in one batch section before performing a single ` ufw reload ` .
11-
12- - ** UFW reload behavior**
13- - Original: No explicit reload after blocking; relied on UFW to apply rules instantly.
14- - New: Explicit ` ufw reload ` after all block actions are done to ensure all deny rules are active before proceeding.
15-
16- - ** Unblocking procedure**
17- - Original: For each inactive IP:
18- - Lists all matching UFW rules.
19- - Deletes them immediately without reload between rules.
20- - New: For each inactive IP:
21- - Performs ` ufw status numbered ` before deletion to ensure correct rule numbering.
22- - Deletes rules one-by-one ** with reload after each deletion** to avoid numbering mismatches.
23-
24- - ** JSON update timing**
25- - Original: Updates JSON and cleans inactive entries after processing each IP.
26- - New: Updates and cleans JSON ** once per jail** after all block/unblock actions are completed.
27-
28- #### Unchanged
29- - Locking mechanism using ` /tmp/{jail}.blocklist.lock ` remains identical.
30- - Validation of prerequisites (` jq ` , ` ufw ` ).
31- - Ownership and permission setting (` chown www-data:www-data ` , ` chmod 644 ` ).
32- - Logging format and verbosity remain compatible.
3+
334
345
356---
You can’t perform that action at this time.
0 commit comments