Static destination IP translation
Im want to setup a destination with pool so I can translate 172.16.10.0/24 to 10.0.0.0/24. For example: destination 172.16.10.5 get translated to 10.0.0.5 and destination 172.16.10.20 gets translated to 10.0.0.20 and so forth. I tried using outbound NAT, but this only translates the source IP.
Does Anyone have an idea how i can achieve this?
Thanks for the reply!
I tried that before and it did not work , see attachments.
The translation doesnt seem to happen.
msnetwork is the external intefac btw
No idea what's that second screenshot supposed to mean. It matches none of the 1:1 subnets, what exactly should get translated there?!
On what interface and in what direction do you want the destination translated?
Can you translate the outside local to outside global (cisco speak) address in pfSense?
Meaning if I have:
Host A1: 172.26.0.100
pfSense LAN: 172.26.0.1
pfSense WAN: 172.27.0.5
Host A1 attempts a connection to 10.0.0.5. Can pfSense translate that destination address from 10.0.0.5 to 172.16.10.5, while also translating the source address from 172.26.0.100 to 172.27.0.5 on its way out WAN?
I want the NAT translation to take place on the WAN interface. Basically i want the following to happen:
LAN Subnet 10.0.0.0/24
HostB on LAN: 10.0.0.5
HostC on LAN: 10.0.0.10
WAN subnet: 192.168.190.0/24
HostA on WAN:192.168.190.20
Host A has a static route to 172.16.10.0/24 with next hop 192.168.190.10
Host A attempts to connect with HostB on 172.16.10.5, pfsense(192.168.190.10) translates the destination to 10.0.0.5. HostB sends a reply back to 192.168.190.20(hostA) with source 10.0.0.5, pfsense(192.168.190.10) translates the source to 172.16.10.5.
Host A attempts to connect with HostC on 172.16.10.10, pfsense(192.168.190.10) translates the destination to 10.0.0.10. HostC sends a reply back to 192.168.190.20(hostA) with source 10.0.0.10, pfsense(192.168.190.10) translates the source to 172.16.10.10.