You may be missing some port-forwarding port configuration expected by the Mac, but not by the iPhone. You’ll also need to be sure of whether you’re selecting and running SMB or AFP, as well. And any security that the NAS might provide.
I’d move to public IP addresses for all your equipment, if you want this to work the way you’re seemingly envisioning. (I’m not fond of opening up ports to an unrestricted internal network.)
Or move to a firewall-based VPN server, as that’ll both secure your NAS traffic, and will keep miscreants from poking directly at your internal network without having first breached your VPN server.
Expect most miscreants will also be probing all accessible devices here too, either at public IP addresses without firewall protection, or on private IP addresses with port-forwarding (and with no other security measures) enabled.
TCP and UDP ports used by Apple software products - Apple Support