Question : I cannot remotely access Samba server

I am trying to access a remote system. The remote system is behind a firewall that takes all incoming connections and routes the ports 22, 137, 138 and 139 to the system we want to access, at IP address 172.27.1.12.

The port 22 mapping is working fine, because now I can access the system with SSH.
But I also need to access Samba server (ports 137, 138 and 139). Unfortunately, this is just refusing to work. I have a VERY simple samba config. No selinux or Linux firewalling is active. Password security is as loose as I can make it (we are depending on the firewall appliance for all the security we need). I use this same smb.conf file for all my other Linux servers and it works 100% of the time. The file is attached. The only change I made to our standard smb.conf file is to change the hosts allow line to 172.27.1.1 (the address the firewall presents to Samba for all incoming requests).

hosts allow 172.27.1.1 127.0.0.1

We get "Network error: connection refused" every time we try to connect to the remote machine.

Our Linux kernel is CentOS 5.3

[172.27.1.12:Tehachipi /]# uname -a
Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux


 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
[global]
        workgroup = LINUX
        netbios name = TEHACHIPI
        server string = Samba Server
        security = SHARE
        hosts allow = 172.27.1.1, 127.0.0.1

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0666
        directory mask = 0775

[development]
        path = /beacon/development
        read only = No
        guest ok = Yes

[datalogs]
        path = /beacon/datalogs
        read only = No
        guest ok = Yes

[root]
        path = /root
        read only = No
        guest ok = Yes

[sysroot]
        path = /
        read only = No
        guest ok = Yes

[beacon]
        path = /beacon
        read only = No
        guest ok = Yes

Answer : I cannot remotely access Samba server

@fklein23:
i am happy to hear that you spotted the problem and found your way through this issue!

But what points do you speak about that I earned? You gave the points unfortunately to pony10us, not to me :-)

Random Solutions  
 
programming4us programming4us