DNS forward: including ports
I am running an email server behind pfSense. The email server has webmail (say webmail.mydomain.net) and pop/imap.
Accessing the email server from external works all fine but there is a problem from within the LAN.
An email client on a laptop is set to access the server from the outside but cannot access from the inside. So I used DNS forward to forward an internal request for webmail.mydomain.net to the LAN address of the email server. This works fine for port 80 but not for others like 110. Of course I can access the other ports using the LAN address but that would require reconfiguring the email client every time.
Is there a way to also forward other ports?
Not really sure what are you trying to do there with "DNS forward". In fact not really sure what you mean. Normally you point your clients to your local LAN DNS servers via DHCP so that the FQDN resolves to internal IPs when needed. If the same DNS server is used for both WAN and LAN, it needs to be one that can implement "views" - such as bind.