diff options
author | Abhishek Safui <abhishek.safui@cdot.in> | 2025-07-02 23:18:17 +0530 |
---|---|---|
committer | Abhishek Safui <abhishek.safui@cdot.in> | 2025-07-02 23:18:17 +0530 |
commit | 4374a27342e58fea1ac5928805e688d6d127fd04 (patch) | |
tree | cc470f7a83731dcae624567642837c3eacceceab | |
parent | 4b0344dfafa018e50a12c47626074751d38fe432 (diff) | |
download | vyos-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.j2 | 2 |
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 %} } |