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
|
@ -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 FORWARD counter reject with icmp type host-prohibited
|
||||
|
||||
{% if nft_nat_rules %}
|
||||
{% if nft_nat_rules is defined %}
|
||||
|
||||
add table ip nat
|
||||
add chain ip nat PREROUTING { type nat hook prerouting priority -100; policy accept; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue