Commit d1ad96e
committed
fix: scope VPC SNAT rule to exclude locally-generated packets (#13942)
On a VPC with public IPs from more than one range/VLAN, the virtual router
installs an unscoped source NAT rule on every public interface using the
single VPC source NAT address. Because the rule has no source match, it
also rewrites traffic the router itself originates, so the VR cannot emit
packets with the correct source address from any public interface other
than the source-NAT one.
Fix: add `-m addrtype ! --src-type LOCAL` to the elif SNAT rule so it only
matches forwarded (guest) traffic, not locally-generated packets.
Closes: #139421 parent 8b72a16 commit d1ad96e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
892 | | - | |
| 892 | + | |
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| |||
0 commit comments