You need port mapping on the router.
On the router, set an external port, such as 8 1, to map to port 80 of NAS.
Then, on the external network, you can access it in the following ways:
XXX。 XXX.XXX.XXX:8 1
That is, add port 8 1 access at the back.