Trying to mount a Fritz.Box NAS via Internet

Fast Forward Freddy

New Member
Joined
Jan 11, 2023
Messages
5
Reaction score
1
Credits
47
Hello *,

I got a HDD connected as NAS to my FritzBox. I can easily mount it in my home network using the local IP-address. On my Laptop, I would like to mount the NAS via the Internet, so I can access my own private home-cloud ;o)

I did configure the Fritz!NAS so I can access it via https://>cryptical-alphanumerical-address<.myfritz.net:>my-selected-portnumber</nas

Access via Browser works fine. I would like to mount that Address like I do in my home network. Replacing the local IP-Number in /etc/fstab by the https-String doesn't work.
What can I do?

Thanks,

Freddy

==
running Manjaro on a HP Elitebook
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,923
Reaction score
1,517
Credits
13,252
Has your ISP given you a public IP address? Have they opened the correct port on your router?
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
6,261
Reaction score
4,732
Credits
46,000
If you can do it on your lan it's probably a port forward on your isp router that needs to be configured.
 
OP
Fast Forward Freddy

Fast Forward Freddy

New Member
Joined
Jan 11, 2023
Messages
5
Reaction score
1
Credits
47
Hi guys, thx for trying to help, much obliged.

>cryptical-alphanumerical-address< in my first post ist the fixed public address given by my ISP. It looks something like this: "r5e2z67t687qwe7z82.myfritz.net"
So, even if my IP-address changes (usually every other week), this address is always the same.
>my-selected-portnumber< in my first post is the portnumber that I myself configured on my router (let's say 12345).

Typing https://r5e2z67t687qwe7z82.myfritz.net:12345/nas in my browser, I can log in via internet to my NAS => that means, address & port work fine, right?!

This is the entry in my /etc/fstab for a local mount:
Code:
//192.168.178.1/mynasdir /mnt/mynas cifs credentials=/home/ricky/.smbcredentials,vers=3.0,uid=1000,gid=1001,noserverino,x-systemd.requires=network-online.target,x-systemd.automount 0 0

This works fine. If I replace "//192.168.178.1/mynasdir" with "https://r5e2z67t687qwe7z82.myfritz.net:12345/nas" I get "mount.cifs: bad UNC".

If I cut out the "https:", I get "mount error: could not resolve address for (...)"

any ideas?!
 

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,164
Reaction score
8,727
Credits
84,175
There's free (and paid) dynamic DNS services. You run a lightweight client that updates your DNS when it changes and you get a static address like mydevice.dyn.dns or the likes.
 
OP
Fast Forward Freddy

Fast Forward Freddy

New Member
Joined
Jan 11, 2023
Messages
5
Reaction score
1
Credits
47
Hi Kgill,
not sure, if you noticed my last post: That cryptical address is my static address. It doesn't change and I can access the NAS via internet (browser) with this address anytime.
I suspect that the error lies with the fstab entry. I guess something is missing?! Maybe the portnumber has to go somewhere else (i.e. not part of the address)?
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
6,261
Reaction score
4,732
Credits
46,000
It's not very smart to mount smb shares of the internet, if you are wanting to mount a share from your nas over the internet it's probably best to use https but your nas would have to support webdav to be able to mount it.
 
Last edited:

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,164
Reaction score
8,727
Credits
84,175
OP
Fast Forward Freddy

Fast Forward Freddy

New Member
Joined
Jan 11, 2023
Messages
5
Reaction score
1
Credits
47
Hi ... well ... dm-bits,

I tried davfs, unfortunately it is not supported by the fritzbox. Why is smb a problem?
 

Members online


Top