OPNsense Forum

English Forums => 26.7 Series => Topic started by: netotter on July 26, 2026, 10:40:46 PM

Title: [Solved] Changed Source NAT behavior in 26.7?
Post by: netotter on July 26, 2026, 10:40:46 PM
Migrated to Source NAT already in 26.1. and had this configuration working. Something seems to have changed in 26.7.

I have a site with three uplink internet gateways. I run three instances of wireguard tunnels one through each gateway to one and same wireguard server. All three tunnels use different destination port. I have floating rules in place to select specific gateway based on the destination port.

Floating rules, the new ones, legacy rules are removed:

All three gateways are on separate interfaces and IPv4 networks. Source NAT Mode=Manual Source NAT rule generation.

Tunnel 1 through primary connection (Gateway1) works as expected. Wireguard traffic source address is chosen as Interface1 address.

Tunnel 2 also works and traffic is routed through Gateway2 as expected. However, the source address for the tunnel2 traffic is still Interface1 address. This works as Gateway2 router is in my control and I can make it route Interface1/address originated packets back correctly. No NATting is needed.

Tunnel 3 does not work. I cannot control Gateway3 router and it rejects packets having Interface1 address as their source. And this is something I cannot change so I have to use Interface3 addresses.

On 26.1. I can do Source NAT

On 26.7.1_1 Same configuration does not work in the same way as in 26.1.


Other Source NAT rules seem to work as they did in 26.1.

Any tips if this could be because of misconfiguration, expected change or corrected bug? Or is there something else I could try to force Source NAT address on the packets leaving from Interface3 to Gateway3?
Title: [Solved] Changed Source NAT behavior in 26.7
Post by: netotter on July 27, 2026, 10:28:20 AM
Solved. This was probably an upgrade quirk. Solved by doing a fresh bootstrap install. Source NAT works as expected with same config as in 26.1.