OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: Stilez on February 02, 2019, 04:59:33 PM

Title: 1:1 NAT not forwarding - checking what the NAT entry should look like
Post by: Stilez on February 02, 2019, 04:59:33 PM
I understand the principles and have read various man pages + posts, but I'm still not geting 1:1 NAT working in this scenario.

I have two LANs - one trusted (office) and the other untrusted (domestic/family).There's a a single device that unavoidably has to be physically connected via the untrusted network, but needs to behave as if it's connected to the trusted network's subnet.
 
Getting the device to behave as if on the trusted LAN should be easy (virtual IP + 1:1 NAT) but isn't working for me.
 
To make it simple, let's give some hypothetical IPs:In theory, all that's left is creating a 1:1 BINAT (symmetrical) entry on OFFICE_NET, so thatBut I can't get this to work - meaning, I can ping the virtual IP at 10.20.0.100 from the LAN, and I can access http://10.51.0.100 (http://10.51.0.100) from the LAN, but I can't access http://10.20.0.100 (http://10.20.0.100) from the LAN.
 
I'm not sure what I'm doing wrong, or what else might be needed.  It shouldn't have a routing problem, as I can reach the device via its VLAN 7 IP 10.51.0.100. It's just that when I access the virtual IP, whether or not it's NATing it to dest=10.51.0.100, it's not then forwarding it to VLAN 7, as it does when I enter that IP directly.
 

What should I have in my NAT config, to make this last step work?