Score:1

pfsense NAT DNS to different LAN IPs

cd flag

I have a pfsense firewall, and I need to NAT connection on WAN port 80 to LAN servers.

Ex:

server1.mydomain.com to 192.168.100.200

server2.mydomain.com to 192.168.100.201

I have no idea how to do that.

I have created the Host overrides like this example:

Then I have created a NAT rule with source any, destination wan interface and port 80, Redirect LAN address port 80 like this example:

But this is not fine.

The same rule with single host is working but obviously not differentiate hosts.

in flag
You have one external IP and want port 80 from there go to 2 different internal IPs?
cd flag
Yes, i have only one external ip
in flag
You can not use NAT to have one destination port go to multiple internal machines. If you want this to be done on hostname, what you want is probably a reverse proxy doing the routing.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.