From 095e03f1b2efc16308b99267543ba3fb0b7e0ad7 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 16 Apr 2019 15:59:08 +0200 Subject: [PATCH] Include Nat rules files in main configuration --- templates/etc/nftables.conf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/etc/nftables.conf.j2 b/templates/etc/nftables.conf.j2 index c1e8929..e5a4b52 100755 --- a/templates/etc/nftables.conf.j2 +++ b/templates/etc/nftables.conf.j2 @@ -27,6 +27,14 @@ table inet filter { 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() %} # Custom content from ipr-cnrs.nftables {{ nft__custom_content }}