Hi,
I want to access the shared smb-folders via internet, so I opened the smb-port 445 in my fritzbox. But when I enter in windows-explorer : \\dyns-dns (or public ip adress)\folder it won't connect. If I do it within the home-network (\\internal ip or name of the Nas\shared folder) it works fine.
Do I have to open other ports or am I doing something wrong?
Thanks for your help in advance.
How to connect to smb-shares via internet
Re: How to connect to smb-shares via internet
Can you access other services on your network via ddns/public ip? {There may be isp blocking or CGNAT at the isp to take into account}.
F5-221 TOS7.0.0777 - 4x4TB (Ironwolf) Traid
F2-424 TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (HGST) Traid
F2-221 TOS7.0.0777 - 1x3TB Ext4, 1x4TB Btrfs
F2-425+ TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (EXOS) Traid
F2-424 TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (HGST) Traid
F2-221 TOS7.0.0777 - 1x3TB Ext4, 1x4TB Btrfs
F2-425+ TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (EXOS) Traid
Re: How to connect to smb-shares via internet
Port 445 is a high-risk port commonly targeted by malware and ransomware. Most ISPs block it for security reasons. If you need to use it, I’d recommend setting up a VPN to securely access your services.
Re: How to connect to smb-shares via internet
Or use a non-blocked, unused port and forward that at your router to port 445 on the server - so you would access ddns|ip:{chosen_port} --> nas:445
Caveat: every port forwarded carries some risk.
Caveat: every port forwarded carries some risk.
F5-221 TOS7.0.0777 - 4x4TB (Ironwolf) Traid
F2-424 TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (HGST) Traid
F2-221 TOS7.0.0777 - 1x3TB Ext4, 1x4TB Btrfs
F2-425+ TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (EXOS) Traid
F2-424 TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (HGST) Traid
F2-221 TOS7.0.0777 - 1x3TB Ext4, 1x4TB Btrfs
F2-425+ TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (EXOS) Traid
Re: How to connect to smb-shares via internet
Thanks for your replies. Well other Service are accessible. I run a Webserver on a raspi or I also opened up the Port for the emby Server. This all works fine so I don't think the Provider has blocked something
Re: How to connect to smb-shares via internet
I tried to do it with this tutorial
viewtopic.php?t=5997
but when I entered the smb ports in the config file and restarted the smbd service I got the following messages:
I had to remove the smb ports line again because otherwise the samba wouldn't have recognized the nas in the windows explorer anymore. So what can I do?
Please help me - I'm still trying to access the smb shares from outside the home network
viewtopic.php?t=5997
but when I entered the smb ports in the config file and restarted the smbd service I got the following messages:
Code: Select all
script samba get lock
Restart samba: ERROR: 'ldap admin dn' not defined! Please check your smb.conf
There already is a passdb backend registered with the name NDS_ldapsam!
There already is a passdb backend registered with the name ldapsmbpasswd!
Failed to find entry for user guest.
0
0Please help me - I'm still trying to access the smb shares from outside the home network
Re: How to connect to smb-shares via internet
Is there maybe another Instruktion how to do it as I still have no Club why this doesn't work. I am thankful for All hinter.
Thanks in advance.
Thanks in advance.


