Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • You mention a target server, a remote server, and then a little later down, the server. Can you clarify which one's which, please. Which one owns PublicIPv4? Where does the router fit it, and is this a consumer grade device that does NAT too, or is it really just a router? Commented Aug 7, 2020 at 19:27
  • @roaima Right, sorry for the lack of clarity on that front. "Remote machine" is the laptop from which I'm attempting to access the NAS. "Target machine" is the NAS itself. The NAS and other home machines are connected to a single linksys router with, if memory serves, NAT support. The router owns PublicIPv4, and, in all cases except the RDP aside, LocalIPv4 is the local ipv4 address assigned to the NAS by the router. I'm not on-site and won't be for another 3 days, so, unfortunately, I am not able to confirm router NAT support. I will edit the question to be more clear, thanks. Commented Aug 7, 2020 at 20:19
  • 1
    @roaima Ahh, a few wiki pages later and, yes, the router definitely does NAT. The machines connected to it are all assigned 192.168.X.X addresses. I was ignorant to the fact that NAT was responsible for doing that. Commented Aug 7, 2020 at 20:36
  • Are you testing the PublicIPv4 connectivity from inside your own network? If so that may be the reason why it's not working - many consumer grade NAT devices can't handle "hairpin NAT" (internal network to external address that's mapped neck to a device on the same internal network) Commented Aug 7, 2020 at 22:07
  • Have you made any settings to the router to forward traffic? You need to instruct it to forward incoming ssh or rdp traffic from the Internet, destined to your public IP, to the NAT IP (the local IP) of your devices. Just disabling the router firewall is not enough. Commented Aug 7, 2020 at 22:13