LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba help required (https://www.linuxquestions.org/questions/linux-networking-3/samba-help-required-452899/)

mastersword 06-08-2006 01:29 PM

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?

Notwerk 06-08-2006 01:34 PM

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.

mastersword 06-09-2006 10:26 AM

What should I do to check that?

Notwerk 06-10-2006 01:42 AM

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?

mastersword 06-11-2006 11:14 AM

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.

Notwerk 06-12-2006 04:26 AM

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).


All times are GMT -5. The time now is 07:51 PM.