Yes, I know that sounds very crazy. I am trying to make an SMB connection over WAN, it is a W10 client.
But it is impossible for me to make the connection, I called my ISP to find out if for security they were blocking the SMB/CIFS ports but they do not, only port 25. But still external SMB packets don't route to my Truenas. With the NFS service it does work over the WAN.
I correctly set the ports for redirection, I even put my Truenas in a DMZ but without result.
I understand that the smb config file is as follows /etc/local/smb4.conf It is as follows:
Adding the following rule but without result:
Restarted the service:
But without any result I have used tcpdump to see if any smb packet arrives from outside, but negative again. Also it seems when I reboot my machine the smb4.conf file gets overwritten, and removes all the options I added.
So guys I don't understand where the problem is, does the default SMB client of W10 have any restrictions to make remote SMB connections?
Any extra settings in my smb4.conf that I'm ignoring?
Finally, that the firewall of my ISP's router is doing some blocking, according to them no, but well I can't see the logs of the firewall, it's pure garbage. If I understand again that what I am doing is crazy, but they are only tests. I will not implement VPN or security policies, when it does not work in plain text.
Thanks.
Edit:
But without any results, the packages are not arriving.
But it is impossible for me to make the connection, I called my ISP to find out if for security they were blocking the SMB/CIFS ports but they do not, only port 25. But still external SMB packets don't route to my Truenas. With the NFS service it does work over the WAN.
I correctly set the ports for redirection, I even put my Truenas in a DMZ but without result.
I understand that the smb config file is as follows /etc/local/smb4.conf It is as follows:
[global]
dns proxy = No
aio max threads = 2
max log size = 5120
load printers = No
printing = bsd
disable spoolss = Yes
dos filemode = Yes
kernel change notify = No
directory name cache size = 0
server multi channel support = No
nsupdate command = /usr/local/bin/samba-nsupdate -g
unix charset = UTF-8
log level = 1 auth_json_audit:3@/var/log/samba4/auth_audit.log
obey pam restrictions = False
enable web service discovery = True
logging = file
server min protocol = SMB2_02
unix extensions = No
restrict anonymous = 2
server string = TrueNAS Server
bind interfaces only = Yes
netbios name = truenas
netbios aliases =
server role = standalone
workgroup = WORKGROUP
idmap config *: backend = tdb
idmap config *: range = 90000001-100000000
registry shares = yes
include = registry
Adding the following rule but without result:
host allow = 0.0.0.0/0
Restarted the service:
service smbd restart
But without any result I have used tcpdump to see if any smb packet arrives from outside, but negative again. Also it seems when I reboot my machine the smb4.conf file gets overwritten, and removes all the options I added.
So guys I don't understand where the problem is, does the default SMB client of W10 have any restrictions to make remote SMB connections?
Any extra settings in my smb4.conf that I'm ignoring?
Finally, that the firewall of my ISP's router is doing some blocking, according to them no, but well I can't see the logs of the firewall, it's pure garbage. If I understand again that what I am doing is crazy, but they are only tests. I will not implement VPN or security policies, when it does not work in plain text.
Thanks.
Edit:
tcpdump -i bge0 > capture
cat capture | grep SMB
But without any results, the packages are not arriving.
Last edited: