Include Nat rules files in main configuration

This commit is contained in:
Jeremy Gardais 2019-04-16 15:59:08 +02:00
parent 63b3bb2c13
commit 095e03f1b2
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,14 @@ table inet filter {
include "{{ nft_output_conf_path }}" include "{{ nft_output_conf_path }}"
} }
{% if nft__nat_table_manage %}
# Additionnal table for Network Address Translation (NAT)
table ip nat {
include "{{ nft__nat_prerouting_conf_path }}"
include "{{ nft__nat_postrouting_conf_path }}"
}
{% endif %}
{% if nft__custom_content|d() %} {% if nft__custom_content|d() %}
# Custom content from ipr-cnrs.nftables # Custom content from ipr-cnrs.nftables
{{ nft__custom_content }} {{ nft__custom_content }}