Can't access local PABX through registered domain name from LAN

Hi All

First post on here! I have very basic knowledge of Mikrotik and networking so please bare with me.

I have a locally hosted 3cx PABX with a FQDN assigned to it.

The issue I am having is that I cannot access the PABX through a browser from any local device but I can access it from an external connection. I have tried implementing a hairpin NAT to fix this with no success.

I can access the PABX locally but only if I specify a port behind the domain in the browser, eg - domain.3cx.com:5001

I think it is worth mentioning that the domain resolves to the same public IP as the router, not sure if this could be the issue.

I think it is worth mentioning that the domain resolves to the same public IP as the router, not sure if this could be the issue.

Yea, then you need hairpin nat.

Hi, thanks for the reply.

I have the below setup on the router but it doesn’t seem to be working.

/ip firewall nat
add action=dst-nat chain=dstnat comment="Destination NAT" dst-address=PublicIP dst-port=443 protocol=tcp \
    to-addresses=192.168.89.148
add action=masquerade chain=srcnat comment="Hairpin NAT" dst-address=PublicIP out-interface=bridge \
    protocol=tcp src-address=192.168.88.0/24
add action=masquerade chain=srcnat comment="Hairpin NAT" dst-address=PublicIP out-interface=bridge \
    protocol=tcp src-address=192.168.89.0/24

Is this correct?