Rename variable to follow linting conventions
This commit is contained in:
parent
c13796dd22
commit
120968ee54
2 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
firewall_nft_table_name: sce_table
|
firewall_nft_table_name: sce_table
|
||||||
firewall_nft_table_filename: sce-port-mapping
|
firewall_nft_table_filename: sce-port-mapping
|
||||||
|
firewall_nft_port_mapping: []
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ table inet {{ firewall_nft_table_name }} {
|
||||||
chain sce_port_mapping {
|
chain sce_port_mapping {
|
||||||
type nat hook prerouting priority filter + 1;
|
type nat hook prerouting priority filter + 1;
|
||||||
policy accept;
|
policy accept;
|
||||||
{% for item in port_mapping %}
|
{% for item in firewall_nft_port_mapping %}
|
||||||
{% set from_port, to_port = item.split(':') %}
|
{% set from_port, to_port = item.split(':') %}
|
||||||
tcp dport {{ from_port }} counter redirect to :{{ to_port }}
|
tcp dport {{ from_port }} counter redirect to :{{ to_port }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue