Accessing NAS services with same URL from LAN and WAN

  • Hello,

    currently I use dyndns and NAT on my home router to access my NAS from WAN.
    Let's say my dyndns address is <> and my NAS name is "omv". My router already resolves omv.<> to the same IP from inside LAN and WAN. Accessing services from WAN via omv.<>:<port> works, but gives failures if I try to open this addresses from the LAN.

    FTP: From LAN, logging into "ftp://omv.<>" gives "530 Login incorrect." but "ftp://omv" works.

    Owncloud: Accessing owncloud from WAN at "https://omv.<>:<port>" does work, but times out with the same url from inside the LAN. In the special case of owncloud I am not even able to access it from the inside, because I needed to configure "'overwrite.cli.url' => 'https://omv.<>:<port>'".

    Any idea, what could be the reason for that?


  • Don't know the plugin. But you'll have to face this complications:
    Your NAS will be the DNS server in your network; that means "always-on".
    The router has to propagate your NAS box as DNS server via dhcp.
    Should work, I would prefer to buy another router...

    (you are forced by German providers to use crappy routers)

    This is exactly the reason why I do not use the fritzbox of my ISP.

  • I do not use exactly the service but another dynamic DNS provider, which is not in the plugin.

    I think the owncloud configuration is correct in general. There is only a problem to reach the FTP and the owncloud service form inside by the global address.
    I guess I have to turn my NAS into a DNS and DHCP server for my LAN or buy a professional and configurable router.

  • Cause my ISP would give me a fritzbox with a built-in cablemodem and a very special image.
    You cant't configure too much in especially these boxes.
    It was not my intention to bash fritzboxes in general. I know a lot of people who are very happy with them.

  • Accessing services from WAN via omv.<>:<port> works, but gives failures if I try to open this addresses from the LAN.

    The reason for this is that your router is not performing NAT reflection. There are ways to solve the problem. Here are two.

    1) If your router can do NAT reflection, then enable it. Almost all SOHO type routers do NOT have this capability. Maybe yours does?

    2) Edit the hosts file for each PC on your LAN where you want this to work. Add records like this, but use the correct local private IP address of the OMV machine. You may have to reboot or restart the networking service after editing the hosts file. Then you can use either or omv and reach the server from the LAN. omv

    Google is your friend and Bob's your uncle!

    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

    Edited once, last by gderf ().

  • If your router can do NAT reflection

    NAT reflection sounds more advanced :D , like pfsense. His probably not gonna find it anywhere with that name. In most soho routers this is called the NAT loopback. It depends I guess of the router and if is ISP branded or not. On the fritzbox a quick googlefu tells me some have others not, and that was apparently removed for "security reasons".

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!