Page 1 of 1

Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/13 01:23:59
by floods7
I have a file server setup with samba on a centos 6.6. I can access it inside the network but it is not accessable over WAN. I have all ports forwarded properly through my router. Here is a nmap I ran:

PORT STATE SERVICE
53/tcp open domain
80/tcp open http
443/tcp filtered https
5900/tcp open vnc
8081/tcp open blackice-icecap
10000/tcp open snet-sensor-mgmt


I think I am missing port 138 but I don't know how to set that to open seeing as I disabled the firewall to make troubleshooting a little easier. What am I missing for WAN access to samba

Re: Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/13 05:12:04
by avij
You really should yum update. 6.6 is nearly four years old, and you are missing a ton of security updates.

Many ISPs filter out access to SMB due to security concerns (and rightly so), especially on residential connections. You may need to set up a VPN, or use something other than SMB.

Re: Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/13 07:33:13
by TrevorH
Modern Windows shares use ports tcp/445 and udp/137. And using samba over the internet is asking for trouble.

Re: Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/13 11:50:32
by billwest
I assume you have both samba (smb) and namba (nmb) running?

Re: Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/13 16:52:33
by TrevorH
To be honest, I'm not really sure we are helping if we're assisting someone with a 4 year out of date system to enable an insecure file sharing protocol over the internet. The answer should really be "just no, don't do it".

Re: Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/13 23:34:55
by billwest
I agree.

Re: Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/21 20:57:32
by floods7
Well those are some helpful posts and some high and mighty posts. Hope you are enjoying the view from up there.

Im just trying to learn more about linux as a hobby and would like to set up some kind of file sharing system for WAN access.

I can update my Centos version. No problem. If not for smb for WAN file sharing what would you guys recommend?

Re: Samba not accessabe over WAN - Does not show that port 138 is open / firewall is disabled still not working

Posted: 2018/09/22 22:21:32
by Whoever
floods7 wrote:
2018/09/21 20:57:32
Well those are some helpful posts and some high and mighty posts. Hope you are enjoying the view from up there.

Im just trying to learn more about linux as a hobby and would like to set up some kind of file sharing system for WAN access.

I can update my Centos version. No problem. If not for smb for WAN file sharing what would you guys recommend?
To summarize the comments above:
1. Using SMB or any other file sharing over the Internet is insecure.
2. Your ISP may be blocking access to the appropriate ports, so what you are trying to do may never work.

These are not "high and mighty" points. They are practical issues that mean your attempt is both a bad idea and doomed to failure.

A suggestion was already given: use a VPN.