lynn wrote:
On Thursday 09 April 2009 06:41:50 David C. Rankin wrote:
lynn wrote:
I have writted a /etc/smb.conf to connect to a multimedia NAS (please don't laugh. I now nothing about Samba):
[global] workgroup = MSHOME security = share [lynnsmb] path = /home/lsmb public = yes guest ok = yes read only = no browseable = yes
I have SuSEfirewall2 running with ports 135 137 138 139 and 445 found by Googleing open but it won't connect to me. The NAS gives me a password prompt. With the firewall _disabled_ It connects fine without password and enables me to watch films and listen to mp3's etc which are stored on my laptop. /var/log/warn nor /var/log/messages nor /var/log/firewall give any clue. Could someone tell me which ports I need to open?
L x L,
Try adding the following as a global option in smb.conf:
smb ports = 139
Give that man a big cigar:
Apr 9 18:13:29 hh2 kernel: SFW2-IN-ACC-EST IN=eth0 OUT= MAC=00:12:f0:06:9c:da:00:21:27:cb:46:4e:08:00:00 SRC=192.168.1.4 DST=192.168.1.3 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=15886 DF PROTO=TCP SPT=1955 DPT=139 WINDOW=15660 RES=0x00 ACK URGP=0 OPT (0101080A0016A4F40022FBEC)
NAS connects to laptop through firewall!
L x
Whoop! I'll take a Macenudo (sp? I don't smoke) "Even a blind squirrel finds a nut -- every once in a while." Setting smb ports = 139 gets rid of a bunch of chatter in your logs as well by telling samba to stick with the standard ports. For some reason, and I forget when, MS started trying to talk smb over port 445 which caused nothing but headaches: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/cfgsmarts.html <quote> If run using NetBIOS mode (the most common method) it is important that the parameter smb ports = 139 should be specified in the primary smb.conf file. Failure to do this will result in Samba operating over TCP port 445 and problematic operation at best, and at worst only being able to obtain the functionality that is specified in the primary smb.conf file. The use of NetBIOS over TCP/IP using only TCP port 139 means that the use of the %L macro is fully enabled. If the smb ports = 139 is not specified (the default is 445 139, or if the value of this parameter is set at 139 445 then the %L macro is not serviceable. </quote> -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org