diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-10-19 20:42:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-19 20:42:41 +0200 |
| commit | cd6a243f62cd3af7a54f95bb126fdf599975154a (patch) | |
| tree | a12089c6ac4b5fc22766a060cf5c9bc49e3a9f58 /data | |
| parent | c10ad3232e25a06ce24b36e1196eb856fde7d503 (diff) | |
| parent | a0ea6ec9012350d6bda47d86f9f6f7b928acd0d0 (diff) | |
| download | vyos-1x-cd6a243f62cd3af7a54f95bb126fdf599975154a.tar.gz vyos-1x-cd6a243f62cd3af7a54f95bb126fdf599975154a.zip | |
Merge pull request #5574 from c-po/nat-fixes
nat: T9475: commit failures and weight issue in load-balancing, translation issues for port-ranges
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/firewall/nftables-nat.j2 | 10 | ||||
| -rw-r--r-- | data/templates/firewall/nftables-nat66.j2 | 4 | ||||
| -rw-r--r-- | data/templates/firewall/nftables-static-nat.j2 | 4 |
3 files changed, 6 insertions, 12 deletions
diff --git a/data/templates/firewall/nftables-nat.j2 b/data/templates/firewall/nftables-nat.j2 index 8c8dd3a8b..1ea761dea 100644 --- a/data/templates/firewall/nftables-nat.j2 +++ b/data/templates/firewall/nftables-nat.j2 @@ -2,9 +2,9 @@ {% import 'firewall/nftables-defines.j2' as group_tmpl %} -{% if first_install is not vyos_defined %} +# declaring the table first makes the delete succeed whether or not it exists +table ip vyos_nat delete table ip vyos_nat -{% endif %} {% if deleted is not vyos_defined %} table ip vyos_nat { # @@ -39,12 +39,6 @@ table ip vyos_nat { {% endif %} } -{% for set_name in ip_fqdn %} - set FQDN_nat_{{ set_name }} { - type ipv4_addr - flags interval - } -{% endfor %} chain VYOS_PRE_DNAT_HOOK { return diff --git a/data/templates/firewall/nftables-nat66.j2 b/data/templates/firewall/nftables-nat66.j2 index 09b5b6ac2..3f206ca4e 100644 --- a/data/templates/firewall/nftables-nat66.j2 +++ b/data/templates/firewall/nftables-nat66.j2 @@ -2,9 +2,9 @@ {% import 'firewall/nftables-defines.j2' as group_tmpl %} -{% if first_install is not vyos_defined %} +# declaring the table first makes the delete succeed whether or not it exists +table ip6 vyos_nat delete table ip6 vyos_nat -{% endif %} {% if deleted is not vyos_defined %} table ip6 vyos_nat { # diff --git a/data/templates/firewall/nftables-static-nat.j2 b/data/templates/firewall/nftables-static-nat.j2 index e5e3da867..4f97270a5 100644 --- a/data/templates/firewall/nftables-static-nat.j2 +++ b/data/templates/firewall/nftables-static-nat.j2 @@ -1,8 +1,8 @@ #!/usr/sbin/nft -f -{% if first_install is not vyos_defined %} +# declaring the table first makes the delete succeed whether or not it exists +table ip vyos_static_nat delete table ip vyos_static_nat -{% endif %} {% if deleted is not vyos_defined %} table ip vyos_static_nat { # |
