Help with Hairpin NAT

Hello,

I’m having issues accessing parts of the network, but I’m not sure why. (Now I think it’s NAT Reflection or Hairpin NAT)

Here is the thing, I have the WAN interface which has few IPv4s. One of them assigned to one DHCP address, and the other one is assigned to another DHCP address, something like this:
89.90.40.10 - > 172.16.40.1
89.90.40.11 → 172.16.40.2
The network 172.16.40.0/24 is called VLAN40 in my mikrotik -If this is relevant in anyway-.

I’m using NAT to connect the external to internal IPs.

So, when I try to use 89.90.40.10:9000 from a different network, say the 5G of my phone, I’m able to connect. But when I try to do it from 172.16.40.2 which supposed to be 89.90.40.11, I get blocked.

I’m using Ubiquity OLT to provide the service, I’m not sure if this is important or not.
Does anyone have any idea what could the issue be?
And if it’s really Hairpin NAT, can someone please suggest the correct rule in the firewall in order to make this work without issues?

Thank you very ,much!

Sure/
https://help.mikrotik.com/docs/spaces/ROS/pages/3211299/NAT
—> https://www.youtube.com/results?search_query=hairpin+nat
—> https://forum.mikrotik.com/search.php?keywords=hairpin+nat