Outbound NAT not working

Started by elvinmammadov, February 15, 2022, 04:53:31 PM

Previous topic - Next topic
February 15, 2022, 04:53:31 PM Last Edit: February 15, 2022, 04:55:32 PM by elvinmammadov
Hello,

In OPNsense we have two WAN interfaces. WAN for Opnsense and WAN for VMs. We are using 1to1 NAT. VMs with 1to1 NAT are working well. The problem is one VM should use OPNsese default gateway public IP. and it doesn't have 1to1 NAT rule. But it shows 2nd WAN interface public IP.  What I checked:

1. I check Upstream Gateway in OPNsense WAN IP gateway. In this case VMs shows OPNsense Public IP including 1to1 NAT.
2. I uncheck Upstream Gateway, then VMS with 1to1 NAT show correct IP, but the VM which is not 1to1 NAT show 2nd WAN interface Public IP.

Just in case I change Automatic Outbound to Hybrid NAT, added a rule, but it didn't also help. How can make it working correct?

Did you find a solution to this?  I have just deployed a new opnsense VM using KVM and NAT rules are not automatically being generated.