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

Issues related to applications and software problems
Post Reply
floods7
Posts: 2
Joined: 2018/09/13 01:21:34

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

Post by floods7 » 2018/09/13 01:23:59

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

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

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

Post by avij » 2018/09/13 05:12:04

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.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/09/13 07:33:13

Modern Windows shares use ports tcp/445 and udp/137. And using samba over the internet is asking for trouble.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

billwest
Posts: 154
Joined: 2006/11/19 10:50:31
Location: Perth, Western Australia

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

Post by billwest » 2018/09/13 11:50:32

I assume you have both samba (smb) and namba (nmb) running?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/09/13 16:52:33

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".
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

billwest
Posts: 154
Joined: 2006/11/19 10:50:31
Location: Perth, Western Australia

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

Post by billwest » 2018/09/13 23:34:55

I agree.

floods7
Posts: 2
Joined: 2018/09/13 01:21:34

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

Post by floods7 » 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?

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

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

Post by Whoever » 2018/09/22 22:21:32

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.

Post Reply