Rename variable to follow linting conventions

This commit is contained in:
Ivo C.S. Wingelaar 2024-10-13 14:36:30 +02:00
parent c13796dd22
commit 120968ee54
Signed by: ivo
GPG key ID: ABBED434F58D0AA3
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,4 @@
---
firewall_nft_table_name: sce_table
firewall_nft_table_filename: sce-port-mapping
firewall_nft_port_mapping: []

View file

@ -17,7 +17,7 @@ table inet {{ firewall_nft_table_name }} {
chain sce_port_mapping {
type nat hook prerouting priority filter + 1;
policy accept;
{% for item in port_mapping %}
{% for item in firewall_nft_port_mapping %}
{% set from_port, to_port = item.split(':') %}
tcp dport {{ from_port }} counter redirect to :{{ to_port }}
{% endfor %}