summaryrefslogtreecommitdiff
path: root/data/templates/firewall/nftables-policy.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/firewall/nftables-policy.tmpl')
-rw-r--r--data/templates/firewall/nftables-policy.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/firewall/nftables-policy.tmpl b/data/templates/firewall/nftables-policy.tmpl
index ecc7e0fbd..484b6f203 100644
--- a/data/templates/firewall/nftables-policy.tmpl
+++ b/data/templates/firewall/nftables-policy.tmpl
@@ -1,5 +1,13 @@
#!/usr/sbin/nft -f
+{% if cleanup_commands is defined %}
+{% for command in cleanup_commands %}
+{{ command }}
+{% endfor %}
+{% endif %}
+
+include "/run/nftables_defines.conf"
+
table ip mangle {
{% if first_install is defined %}
chain VYOS_PBR_PREROUTING {