I'm currently struggling to make my NAS server reachable via the public IP address.
I can reach it just fine within my own network, but if I wanted to share a file with a friend or family member than that NAS server is unreachable.
Steps I've done thus far:
within the NAS server setup everything that should forward the traffic outside as well
in OpenWRT configured port forwarding rules to two specific ports that I wanted reachable from the internet
in OpenWRT set the zones to
lan => wan => accept (input, output, forward)
wan => lan => accept (input, output, forward) (masquerading)
Before you say anything, I know setting up an OpenVPN server would be the safer to expose it....but I'd ideally like to share files with friends who are not so tech-savvy.
Is there any other way, or am I doing something wrong here?
Aside this being dangerous as you noted, you didn't mention the protocol.
If it's Samba, you ISP likely blocks it. Within the last few years, malware were discovered to use the same ports. To mitigate such a global propagation, a lot of ISPs simply block this traffic.