logo elektroda
logo elektroda
X
logo elektroda

Access to the NAS from the outside without a public IP

noel200 9054 49
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19542196
    noel200
    Level 27  
    Hello,
    I know there have been topics like this before, but I didn't understand much reading them, besides, everyone's situation is different.
    Hardware description: at home I have an asus router with asuswrt uploaded. The router is connected to the internet via cable. The operator is KOBA (Bialystok).
    my address is not public. A NAS on OpenMediaVault4 with disks is connected to the router.
    I would like to be able to access the data on the NAS from the outside. I have a VPN service on Windscribe, a router configured in the VPN/Clients tab and sometimes I turn it on, but not always, because the TVN Player page is rebelling (wife watches something there).
    Can you help me by explaining how "cows on a ditch" what and how to set so that I have access to photos stored on the NAS from my phone?
    Will it work without paying for a public IP address? I read that it is safer and better not to put the NAS outside. I would just like to configure my equipment at home, set up what is needed on Android to access data from the outside via a secure connection.
    Thank you in advance and best regards.
  • ADVERTISEMENT
  • Helpful post
    #2 19542429
    IC_Current
    Network and Internet specialist
    Either way, you'll have to pay. Either for a public IP address or for VPS hosting or for a VPN proxy server.
    Probably best to pay for a public IP address. Of course, you don't put the NAS outside, because that would be hardcore. If you have a public IP, then you put a VPN server on the router. Then you connect from Android to the VPN server on the router to establish a secure connection. Once you have set up a VPN connection, you connect to the NAS server.
    Helpful post? Buy me a coffee.
  • Helpful post
    #3 19542478
    KOCUREK1970
    Network and Internet specialist
    @noel200
    The public IP address is not everything, because this one is most often variable, so each time you change this IP, you lose the server over the Internet (you have to reconfigure the link with the correct IP and it will work, and so every time the IP changes). It would have to be a public permanent IP address, then the problems mentioned above fall away.

    And additionally, what is your upload (sending to the Internet)?
  • ADVERTISEMENT
  • #4 19542501
    noel200
    Level 27  
    Ah, I think I understand. Public IP is PLN 5 / month, so there is no tragedy. As long as they do not block anything in traffic and this address will not change often, because then it makes no sense.
    Upload is about 50mb.
  • Helpful post
    #5 19542520
    IC_Current
    Network and Internet specialist
    noel200 wrote:
    Upload is about 50mb.

    So very decent

    noel200 wrote:
    As long as they don't block anything in traffic and this address doesn't change often, because then it's pointless.

    This problem is solved by using Dynamic DNS. There are many services that provide paid or free DDNS services. Client issue on the router. On the stock firmware it is for sure, on DD-WRT too. How on this asuswrt I do not know, but rather it will be.
    Helpful post? Buy me a coffee.
  • Helpful post
    #6 19542630
    KOCUREK1970
    Network and Internet specialist
    noel200 wrote:
    Public IP is PLN 5 / month, so there is no tragedy. As long as they don't block anything in traffic and this address doesn't change often, because then it's pointless.

    I know people who have a public dynamic IP and have had the same IP for several years (they do not turn off the opa router), I know people whose dynamic IP changes when op does something in their network and I know people who at least once a week the public IP changes and it doesn't matter what they do on the web - there is no rule what op is a different philosophy and approach.
    noel200 wrote:
    Upload is about 50mb.

    Nice, but divide it by 8 and you have real transfer - it's +/- 5.2MB of real transfer.
    You must remember that he will not allocate all the up in your network to you, so in reality it will be less.
    You also need to remember that the upload decreases when someone is downloading something at home, and you "in town" will want to hit the server. You want to go to the server on your mobile, and there will not always be fast LTE and logging in to the server may be difficult, not to mention the transfer from the server.
    It seems to be trivial and individually unrelated, but it creates a chain of mutual dependencies and has an impact on the whole.
  • #7 19542646
    jarek7714
    Level 27  
    noel200 wrote:

    I know there have been topics like this before, but I didn't understand much reading them, besides, everyone's situation is different.
    Hardware description: at home I have an asus router with asuswrt uploaded. The router is connected to the internet via cable. The operator is KOBA (Bialystok).
    my address is not public
    The address as above was written by colleagues - public / does not have to be static, DDNS solves the problem of change, there is certainly a client on AsusWRT (it should be on the WAN interface of the router). 50Mbps upload speed is pretty cool (as far as real you can verify, I had a connection from a local ISP, I gave it up - well, a dozen or so Mbps with great pings on the light, as in an encrypted connection, only unstable few Mbps - until I discovered it, I blamed main router and clients that it was probably too weak / TV stream in SD could cut ...).
  • #8 19543143
    noel200
    Level 27  
    I checked my transfer on speedtest.pl/net by choosing different servers outside the province and even outside the country and the values are sufficient for me.
    So I will be in touch next week about the public IP. And when I receive it, I will write here and with your help I hope I will be able to set everything up.
  • #9 19556637
    noel200
    Level 27  
    Welcome back. I already have a public IP address. I guess. This is what my ISP says, although the public address is different than the one given to the WAN on the router.
    They have a NAT redirect, right?
    The address supposedly changes sometimes but they gave me a free dyndns straight away which always stays the same.
    Now how to configure the router to access NAS openmediavault disks via ftp?
    Regards.
  • ADVERTISEMENT
  • #10 19556647
    KOCUREK1970
    Network and Internet specialist
    noel200 wrote:
    the public address is different from what the WAN got on the router.

    It should be the same on the WAN of the router and on the checking pages.
    Is the same?:
    https://whatismyipaddress.com/pl/moj-ip
  • ADVERTISEMENT
  • #11 19556651
    noel200
    Level 27  
    No, it's different. But just from a phone with WiFi turned off, I was able to access the NAS configuration page using the DynDNS they gave me.
    Using the address as it has the WAN port, I can access my network. Just something else to put? any port forwarding?
    And what do I type in the browser to get a specific network drive or, for example, an ip camera connected to my network?

    I can only access the NAS OMV configuration page. Probably because by default it is on port 80. In the router I have enabled forwarding to port 80 to the router's address and that's why it works. But I enabled Ftp on port 21, enabled port 21 forwarding on the router to our address and it doesn't work. I guess. I type in the browser ftp://xxxxdyndns.koba.pl:21 Okay?
    Regards.
  • #12 19558234
    noel200
    Level 27  
    I have now managed to set up the router so that I have an external connection to its configuration page with an encrypted connection.
    But for these services on OMV, I still don't know how to do it. I set up redirects and it doesn't work, I don't know what to do next.
  • Helpful post
    #13 19560572
    takijasiu
    Level 25  
    Since you managed to successfully redirect TCP/80 from the router's WAN to the NAS interface, it's probably cool, right?

    Now check what kind of access the software on the phone you use to view photos needs - in short, what port it connects to the NAS on your local network - there may be more than one port, although this is unlikely.

    Once you find the port you need, forward it on your router as you forwarded port 80.

    In general, it may be that the ISP allows access only to a set of ports by default - e.g. 80, 443 - and if the NAS uses some unusual port, then this port may not be reachable from the outside despite active redirection on the Cb router. In this case, you can test redirect this unusual port to port 80 on the router - then you will connect from the outside and check if it works this way.

    Oh - and the port is just a number, but 80 will be actively scanned by all kinds of Internet scanners - it's also best to put these services on unusual ports - avoid 80, 443 and other typical ones. And in the configuration of the clients on the phone, just specify the port numbers.

    Regarding the revelation that in order to receive traffic coming to a given public IP, you must have it on the interface, I recommend my colleagues to familiarize themselves with such technology as DNAT / SNAT. In short - by setting DNAT and/or SNAT from a given private address in the local network to a certain public address, the router serving the local network (in this case, the router of the ISP operator) changes the destination (DNAT) or source (SNAT) IP address in the routed packet. As a result, a given packet either reaches a specific private IP, although it was directed to a different IP (DNAT) or leaves the router towards another network (e.g. public) with a source IP address, e.g. from this network, although it reached the router with the source address on the local network (SNAT).
  • #14 19564690
    noel200
    Level 27  
    takijasiu wrote:
    Once you find the port you need, forward it on your router as you forwarded port 80.

    That's what I did and I managed to install cloud commander via docker and it's ok. Now I need to get a more multimedia program so that others can also watch.
    takijasiu wrote:

    Oh - and the port is just a number, but 80 will be actively scanned by all kinds of Internet scanners - it's also best to put these services on unusual ports - avoid 80, 443 and other typical ones. And in the configuration of the clients on the phone, just specify the port numbers.

    Valuable note, thank you.
  • #15 19564745
    przeqpiciel
    Network and Internet specialist
    noel200 wrote:
    Now I need to get a more multimedia program so that others can watch it too.

    - embs
    - plex
    - jellyfin
  • #16 19564819
    noel200
    Level 27  
    Oh, thanks for the hint. I will definitely check :-)
  • #17 19566091
    voxck
    Level 8  
    Try zerotier.com Works great even when there is no public IP and above all very easy to configure. That's all you need
  • #18 19570103
    noel200
    Level 27  
    przeqpiciel wrote:
    emby

    Installed, enabled, configured, added folders to the library.
    This is it :) cool thanks.
    voxck wrote:
    Try zerotier.com Works great even when there is no public IP and above all very easy to configure. That's all you need

    I read, watched, tried to connect the phone to the PC for a test. I don't understand what this is about. Can you somehow briefly explain in Polish in simple words how it works?
  • #20 19570205
    Anonymous
    Level 1  
  • #21 19570210
    voxck
    Level 8  
    Erbit wrote:
    voxck wrote:

    Take a look here...


    Did I understand correctly that "this" needs to be installed on every device we want to access?


    Well, there's no other way. As with a traditional VPN, you also need to configure it on each device.
  • #22 19570228
    noel200
    Level 27  
    And really packets from our devices don't go through some central server somewhere in barbados? Nobody's going to pick up on this?
  • #23 19570231
    Anonymous
    Level 1  
  • #24 19570238
    voxck
    Level 8  
    noel200 wrote:
    And really packets from our devices don't go through some central server somewhere in Barbados? Is no one going to pick up on this and eavesdrop?


    But there is no central server here. You connect directly to your device
  • #25 19570245
    Anonymous
    Level 1  
  • #26 19570255
    noel200
    Level 27  
    voxck wrote:
    But there is no central server here. You connect directly to your device

    Ah, cool.
    Erbit wrote:
    You install a VPN server (not a VPN client) on your router, configure routes accordingly and have access to the entire network and all devices without having to install anything on them.

    Exactly. I have such a VPN server tab in the asus router on AsusWrt. Us with OMV set, ports forwarded and it works. Can I turn off port forwarding and set up a VPN connection on devices from which I want to connect to my network and connect to my network only with an encrypted tunnel connection? Equipment at home would be safer, right?
  • #27 19570262
    Anonymous
    Level 1  
  • #28 19570265
    noel200
    Level 27  
    Erbit wrote:
    Dude is 100% right. Since there is a VPN server, it should work exactly as the colleague described.

    Purely theoretically (I don't know the configuration of this AsusWRT) if my colleague has a public address on the router, it should be possible to configure it in such a way that after connecting to the VPN server, the colleague should have access via IP addresses to each device without any dangerous redirections. By simply connecting from the outside "the computer virtually appears inside the network" as if it were physically connected to it.

    I will pursue the topic in my free time. Thanks.
  • #29 19570267
    Anonymous
    Level 1  
  • #30 19570273
    noel200
    Level 27  
    Erbit wrote:
    Since a colleague already has a VPN server configured (that's how I understood)

    I do not have it yet. I have a tab in my router. I will read and try to do this because:
    Erbit wrote:
    A colleague in the subject has "no public IP" and I clearly wrote that the VPN server requires a public IP.

    I already have a public IP and a permanent dyndns address.

Topic summary

Accessing a NAS (Network Attached Storage) device externally without a public IP can be achieved through various methods. Users discussed the necessity of a public IP or alternatives like Dynamic DNS (DDNS) to maintain consistent access. The conversation highlighted the importance of configuring a VPN server on the router (specifically Asus routers with AsusWRT) to securely connect to the NAS. Users shared experiences with different VPN protocols, including PPTP and OpenVPN, and emphasized the need for port forwarding to access NAS services. Additionally, Zerotier was suggested as a viable solution for users without a public IP, allowing for easy configuration and direct device access. The discussion also touched on upload speeds and potential performance issues when accessing media files remotely.
Summary generated by the language model.
ADVERTISEMENT