rewrite code structure and support includes #8
Loading…
Reference in a new issue
No description provided.
Delete branch "includes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The main goal is to move all custom
iptable
/ip6table
code to files inside/etc/default/minifirewall.d/
.With this, we can simplify the main configuration with just IP/ports configurations, and all other rules can be added/modified in dedicated files. It helps a lot with Ansible.
Also, some shellcheck violations have been fixed, a few code snippets have been extracted into functions, some variables have been renamed to be more expressive.
Plusieurs fix, dont find qui est remplacé par un pathname expension () car il ne gére pas les espaces :
Several fixes, including find which is replaced by a pathname expension () because it doesn't handle spaces in filenames:
https://paste.evolix.org/?6cf81d417e09efba#6MR5Wy9NKUQkUbY9VKzuEo58viDXmCF1ZjidzT9WGkrw
The pathname expansion does not exclude files with a dot. It is important to do so.
I know find dos'nt work well with spaces, but in this kind of sitiation, it seems like an acceptable tradeoff.
It does exlcude it in dash, bash in POSIX mode (and regular bash), it isn't in POSIX spec tho. Here is a exemple with dash https://paste.evolix.org/?e12aaaeec0dcb027#6ifCVYbvLmhYXhzXN7UCBXuwUKmmxi7dVWfc19iBKbJw
WIP: rewrite code structure and support includesto rewrite code structure and support includes48b78fb97c
toe7aaefef9a
28a6346ef9
toaada44e1f2
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.