LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2008, 11:37 AM   #1
nathacof
Member
 
Registered: Aug 2004
Location: Bear, DE, USA
Distribution: Slackware 11, CentOS 5.2, Ubuntu
Posts: 124

Rep: Reputation: 17
Samba - Windows client cannot connect to Linux Server.


I'm having a problem connecting from a Windows client to my home Samba server.

Code:
> testparm /etc/samba/smb.conf
[global]
        workgroup = MYGROUP
        server string = Samba Server @ dev.neranjara.org
        log file = /var/log/samba.%m
        max log size = 50
        dns proxy = No
        valid users = nathacof
        hosts allow = 192.168.1., 209.41.163.23

[homes]
        comment = Home Directories
        read only = No
>
When I attempt to connect from my Windows workstation and enter my password from work I'm getting thrown back to the authentication prompt, whereas from home I can connect with out issue.

My Router has the following ports forwarding to the Samba server:

Code:
 Port 135/TCP
 Port 137/UDP
 Port 138/UDP
 Port 139/TCP
 Port 445/TCP

root@dev:/var/log# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
root@dev:/var/log#
As per the instructions here, http://samba.org/samba/docs/man/Samb...#firewallports.

So since I'm able to connect to the remote server, and it prompts me for authentication, I would assume I'd be able to check the logs for this particular connection.

But when I check the logs for this host they do not exist:

Code:
root@dev:/var/log# ls -l /var/log/ | grep samba
drwxr-xr-x 3 root   root       4096 2007-08-19 12:16 samba/
-rw-r--r-- 1 root   root          0 2007-10-08 18:58 samba.0.0.0.0
-rw-r--r-- 1 root   root       7956 2008-02-09 20:31 samba.192.168.1.100
-rw-r--r-- 1 root   root        408 2008-02-09 00:04 samba.192.168.1.101
-rw-r--r-- 1 root   root      16452 2008-02-08 13:18 samba.192.168.1.102
-rw-r--r-- 1 root   root       3876 2008-02-09 02:02 samba.192.168.1.103
-rw-r--r-- 1 root   root          0 2007-08-28 20:19 samba.192.168.1.104
-rw-r--r-- 1 root   root          0 2008-02-07 21:00 samba.192.168.1.80
-rw-r--r-- 1 root   root          0 2008-02-07 21:00 samba.dev
-rw-r--r-- 1 root   root        153 2008-02-10 11:49 samba.smbd
root@dev:/var/log#
Any one know what the heck is going on here?

Last edited by nathacof; 02-10-2008 at 01:41 PM.
 
Old 02-11-2008, 02:21 PM   #2
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
Is it valid to have a partial IP ("192.168.1.") in the hosts allow config?
 
Old 02-11-2008, 04:42 PM   #3
nathacof
Member
 
Registered: Aug 2004
Location: Bear, DE, USA
Distribution: Slackware 11, CentOS 5.2, Ubuntu
Posts: 124

Original Poster
Rep: Reputation: 17
Appears to be. As I said I can connect from home, and it works fine, using that subnet. As a matter of fact it was included in the default smb.cnf file.

The problem is with the connection from the external IP.
 
Old 02-11-2008, 04:46 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does you work firewall let the necessary ports access?
 
Old 02-11-2008, 05:41 PM   #5
bassel
LQ Newbie
 
Registered: Dec 2007
Location: Saudi Arabia
Distribution: RHEL, Fedora, Ubuntu
Posts: 9

Rep: Reputation: 0
Question two issues

I think you should check two issues: external connectivity and sitting of the PC in your work.

1- check the connectivity from work to home. You may enable pinging (ICMP forwarding) in you router or use any other simple services such as apache (port 80). in apache, just add the routing record in your router and try to access it from your work, of course, after testing the apache in your home network. Do you have a firewall at work? Usually, YES. Do the connectivity (tcp ports 139, 445 …etc) to a share folder is allowed? Usually, NO. Is your work connectivity to the internet through proxy or routing? Usually, via proxy. In proxy case, you should check the restriction of the proxy!

2- are you using ms windows active directory in your work? if yes, there are a sitting in the active directory security policy which will prevent some type of connectivity (e.g. file sharing) between the your domain and other domain or even stand alone machine. if your are the admin in your work, i may guide you how to check this sitting.

I highly suggest to try to access your samba from another network rather than your work like internet café. Usually, the PCs there are not part of a domain, there is no firewall, no proxy (routed connection).

Hope that I did not confuse you . I will check your replay to proceed in solving your problem.
Regards,
 
Old 04-17-2008, 02:46 PM   #6
nathacof
Member
 
Registered: Aug 2004
Location: Bear, DE, USA
Distribution: Slackware 11, CentOS 5.2, Ubuntu
Posts: 124

Original Poster
Rep: Reputation: 17
Yeah I need to speak with my Network Operations team to see if they can open up those ports to our headquarters from my home IP. I've got an Apache Server running already on my home box everything is fine with that.

But fundamentally you guys are right the problem most likely lies with my work's network ACLs.

Thanks for the input.
 
Old 04-18-2008, 02:45 PM   #7
bassel
LQ Newbie
 
Registered: Dec 2007
Location: Saudi Arabia
Distribution: RHEL, Fedora, Ubuntu
Posts: 9

Rep: Reputation: 0
Smile

Anytime, nathacof.

but please, inform me if the problem is solved...

regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect LINUX client to WINDOWS 2003 server linuxy2 Linux - Networking 8 07-29-2009 05:02 AM
How to connect two pc's via modem? (server = linux, client = windows) seraph-seph Slackware 15 07-11-2008 03:58 PM
can not connect to my pureftp server from Linux client, but i can from windows client bonito SUSE / openSUSE 5 03-16-2005 09:45 PM
windows client, linux nfs server how to connect feetyouwell Linux - Software 1 06-09-2004 03:35 AM
Help me to Configure a Linux Client connect to Network with Windows Server! tthai01 Linux - Networking 1 11-05-2002 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration