summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--playbooks.d/fw-nftables/playbook.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/playbooks.d/fw-nftables/playbook.bash b/playbooks.d/fw-nftables/playbook.bash
index fcdb40a..1e52680 100644
--- a/playbooks.d/fw-nftables/playbook.bash
+++ b/playbooks.d/fw-nftables/playbook.bash
@@ -52,9 +52,10 @@ playbook_sync() {
while read -r rule
do
info "$BASHTARD_PLAYBOOK/sync" "Adding input filter for custom rule $rule"
- printf "\t\t%s" "$(config "$BASHTARD_PLAYBOOK.input.rules.$rule.proto")"
+ printf "\t\tmeta l4proto { %s } th" "$(config "$BASHTARD_PLAYBOOK.input.rules.$rule.proto")"
printf " dport %s" "$(config "$BASHTARD_PLAYBOOK.input.rules.$rule.port")"
printf " %s" "$(config "$BASHTARD_PLAYBOOK.input.rules.$rule.policy" "accept")"
+ printf " comment \"%s\"" "$rule"
printf ";\n"
done < <(config_subkeys "$BASHTARD_PLAYBOOK.input.rules")