OPNsense Forum

English Forums => General Discussion => Topic started by: elvinmammadov on February 15, 2022, 04:53:31 pm

Title: Outbound NAT not working
Post by: elvinmammadov on February 15, 2022, 04:53:31 pm
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?
Title: Re: Outbound NAT not working
Post by: FlangeMonkey on February 24, 2022, 05:39:33 pm
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.