Multiple Devices behind NAT communicating
-
I have had this issue on multiple routers and was hoping pfsense may have a way around.
A pfsense box with 3 interfaces. Imaginary IPs. Lan (192.168.1.1/24), Wan (203.100.100.1/30), DMZ (192.168.2.1/24). Also the ISP has assigned a subnet (203.100.101.1/29)
DMZ is there to publish services to the internet that I would rather didn't exist on the Lan.
This is a rather secure environment and there is generally NO Lan to Wan direct comms.
I placed the ISP secondary subnet as a Virtual IP so that devices living in the DMZ can have NATs (port forward or 1:1) associated to them.
This all works as planned. DMZ devices can publish services which are then given Public Domain A records.
My issue is that I sometimes need a device in the DMZ to use DNS to call another device inside the DMZ.
Unfortunately the NAT doesn't allow an outbound and inbound connection on addresses that are both being translated which is fair enough when you consider how it is working.
Other than playing with a DNS forwarder/server and faking A records to use a DMZ address rather then the Public address is there a better way to setup a route that can recognize I have DMZ to DMZ requests? -
@greenpeter2 that would be a nat reflection.
If you have a routed /29 why you not just put those right on the devices, and then just firewall what want to allow vs doing any nat on those IPs?
-
Sounds perfect.
I didn't know pfsense had the technology.
Thanks -
Hi johnpos,
I completed the NAT Reflection setup.
It works as advertised both on Port Forward and 1:1 NATs
Perfect result.
Thanks