summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Safui <abhishek.safui@cdot.in>2025-07-02 23:18:17 +0530
committerAbhishek Safui <abhishek.safui@cdot.in>2025-07-02 23:18:17 +0530
commit4374a27342e58fea1ac5928805e688d6d127fd04 (patch)
treecc470f7a83731dcae624567642837c3eacceceab
parent4b0344dfafa018e50a12c47626074751d38fe432 (diff)
downloadvyos-1x-4374a27342e58fea1ac5928805e688d6d127fd04.tar.gz
vyos-1x-4374a27342e58fea1ac5928805e688d6d127fd04.zip
wan-load-balancing: T7584: Default SNAT behaviour fixed to effect load balanced packets only
Matched the out iface name in wan load balancer default SNAT rule so that SNAT is performed to load balanced packets only
-rw-r--r--data/templates/load-balancing/nftables-wlb.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/load-balancing/nftables-wlb.j2 b/data/templates/load-balancing/nftables-wlb.j2
index b3d7c3376..8afd0c162 100644
--- a/data/templates/load-balancing/nftables-wlb.j2
+++ b/data/templates/load-balancing/nftables-wlb.j2
@@ -9,7 +9,7 @@ table ip vyos_wanloadbalance {
{% for ifname, health_conf in interface_health.items() if health_state[ifname].if_addr %}
{% if disable_source_nat is not vyos_defined %}
{% set state = health_state[ifname] %}
- ct mark {{ state.mark }} counter snat to {{ state.if_addr }}
+ ct mark {{ state.mark }} oifname {{ ifname }} counter snat to {{ state.if_addr }}
{% endif %}
{% endfor %}
}