LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-08-2006, 02:29 PM   #1
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Rep: Reputation: 15
Samba help required


I've been trying to get a Samba server going for some time now, so far it's only partially working.
I'm using FC4, and I've got samba configured and running on it, but I can't browse it remotely. I can browse it with smbclient using both 127.0.0.1 and the IP address of the machine itself. Remotely I'm trying to connect using a WinXP SP2 box (also a SuSE 10.1 laptop, but I'm not concerned with it at the moment). At first I thought it might be a router problem, but I have a Win2k3 server running on the same network and everything can connect to it just fine. (I want this Samba server to replace it eventually). I don't have the box in front of me right now, but later on this evening I will post the contents of smb.conf just in case it's an error there. In the mean time, any suggestions?
 
Old 06-08-2006, 02:34 PM   #2
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 30
What error/message do you get on the client when you try to browse the server?

Since you can connect to the server using loopback but not remotely, I'd suggest starting by checking the firewall (iptables??) rules on the SMB server.
 
Old 06-09-2006, 11:26 AM   #3
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
What should I do to check that?
 
Old 06-10-2006, 02:42 AM   #4
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 30
On the SMB server do a:
Code:
#iptables -nvL
and post the results you get.

Also, on the Zindows machine try to browse the SMB server using its IP, not the machine name. Do you get any username/password prompt? Do you get any messages at all? What are they?
 
Old 06-11-2006, 12:14 PM   #5
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Also, on the Zindows machine try to browse the SMB server using its IP, not the machine name.
I always use the IP, it just makes life easier.

Here is the result from iptables:

Code:
Chain RH-Firewall-1-INPUT (2 references)
 pkts  bytes  target    prot  opt in  out source    destination
  94   7104   ACCEPT    all   --  lo  *   0.0.0.0/0 0.0.0.0/0

  0       0   ACCEPT    icmp  --  *   *   0.0.0.0/0 0.0.0.0/0
      icmp type 255
  0       0   ACCEPT    esp   --  *   *   0.0.0.0/0 0.0.0.0/0

  0       0   ACCEPT    ah    --  *   *   0.0.0.0/0 0.0.0.0/0

  17   1683   ACCEPT    upd   --  *   *   0.0.0.0/0 224.0.0.251
       udp dpt:5353
  0       0   ACCEPT    udp   --  *   *   0.0.0.0/0 0.0.0.0/0
       udp dpt:631
  0       0   ACCEPT    all   --  *   *   0.0.0.0/0 0.0.0.0/0
       state RELATED, ESTABLISHED
  0      0    ACCEPT    tcp   --  *   *   0.0.0.0/0 0.0.0.0/0
       state NEW tcp dpt:22
  0      0    ACCEPT    tcp   --  *   *   0.0.0.0/0 0.0.0.0/0
       state NEW tcp dpt:21
  17   2012   REJECT    all   --  *   *   0.0.0.0/0 0.0.0.0/0
       reject-with icmp-host-prohibited
I don't have windows in front of me right now, but when I try to connect it gives me no user name prompts, it just tells me the host is unreachable or cannot be found.

I just realized I never posted smb.conf, so here it is:

Code:
[global]
   workgroup = HYRULE
   netbios name = SAMBA

[share1]
   path = /tmp

[share2]
   path = /tmp/public
This is not the configuration I plan to use once I get it running, I just wanted to get it going first then configure it properly.
 
Old 06-12-2006, 05:26 AM   #6
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 30
Well, it does seem like your problem is with the firewall on the SMB server.

The Samba service uses the following ports:
Port 135/TCP - used by smbd
Port 137/UDP - used by nmbd
Port 138/UDP - used by nmbd
Port 139/TCP - used by smbd
Port 445/TCP - used by smbd

So you'll need to open these (allow access from the INTERNAL NETWORK ONLY to these ports).

For more info check out:
http://us5.samba.org/samba/docs/man/...TO-Collection/

And google around for info on IPTABLES (the firewall used by FC4).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help required with samba... deny delete but allow write? NuLLiFiEd Linux - Networking 5 07-04-2005 05:53 PM
Samba - required to network to xp? MainframeGuy Linux - Newbie 8 12-11-2004 04:16 PM
URL required for samba-common file br_sriram Linux - Software 1 09-18-2004 03:11 PM
Samba Mount - Root Required pkraus109 Linux - Software 0 03-16-2004 01:50 PM
Is samba required to connect to a Windows Advanced server from RedHat 8.0 server? NemesisStar Linux - Hardware 1 10-20-2003 01:32 AM


All times are GMT -5. The time now is 08:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration