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
Forum Moderator
Posts: 2719
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
Forum Moderator
Posts: 23870
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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

billwest
Posts: 138
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
Forum Moderator
Posts: 23870
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".
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

billwest
Posts: 138
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: 1033
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