nftables: add defined check for nft_nat_rules and set it also [] by default
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
68cbd3dc2c
commit
4d4365cdf5
2 changed files with 2 additions and 1 deletions
|
@ -154,6 +154,7 @@ nftables: True
|
||||||
# nftables variants of custom*_rules
|
# nftables variants of custom*_rules
|
||||||
nft_custom6_rules: []
|
nft_custom6_rules: []
|
||||||
nft_custom_rules: []
|
nft_custom_rules: []
|
||||||
|
nft_nat_rules: []
|
||||||
# default network block device encryption settings for linux-system-roles/nbde_client
|
# default network block device encryption settings for linux-system-roles/nbde_client
|
||||||
nbde: true
|
nbde: true
|
||||||
nbde_device: /dev/md2
|
nbde_device: /dev/md2
|
||||||
|
|
|
@ -107,7 +107,7 @@ add rule ip filter INPUT ip saddr 10.3.163.10 tcp dport {{ port }} counter accep
|
||||||
add rule ip filter INPUT counter reject with icmp type host-prohibited
|
add rule ip filter INPUT counter reject with icmp type host-prohibited
|
||||||
add rule ip filter FORWARD counter reject with icmp type host-prohibited
|
add rule ip filter FORWARD counter reject with icmp type host-prohibited
|
||||||
|
|
||||||
{% if nft_nat_rules %}
|
{% if nft_nat_rules is defined %}
|
||||||
|
|
||||||
add table ip nat
|
add table ip nat
|
||||||
add chain ip nat PREROUTING { type nat hook prerouting priority -100; policy accept; }
|
add chain ip nat PREROUTING { type nat hook prerouting priority -100; policy accept; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue