NAT port forward webmail
-
I can access the webmail through it's public ip but not by domain name.
My webmail is in my LAN NAT port forward through virtual IP of pfsense of WANpinging my webmail domain name gets the correct response which is the public ip.
-
@lonmarlon
Add an host override to your internal DNS server and point it to the local IP of the webmail host. -
@viragomann thanks for your reply, yes but my concern is from outside not in the LAN. i can access the public ip but not the domain name
-
@lonmarlon Set the hostname to resolve to that public IP...? Or if it is already set, then likely the webmail server isn't set to use that hostname. Unless you've installed a reverse proxy, there's nothing in pfSense that knows what hostname was used. The packet arrives for IP "n" and pfSense processes it.