templem@abclabs.com
2003-Nov-11 14:57 UTC
[Samba] 3.0.0 problem: smbd and nmbd only works with lo
RedHat 9.0, kernel 2.4.20-8bigmem I can't get Samba 3.0.0 to talk to anything except lo. ./configure --prefix=/usr/share --exec-prefix=/usr --silent --with-logfilebase=/var/log/samba --with-privatedir=/etc/samba/private --with-configdir=/etc/samba --with-lockdir=/var/lock/subsys/samba --enable-cups --with-acl-support --with-winbind --with-pam_smbpass --with-ldapsam --with-localstatedir=/var/lock/subsys/samba #ps ax|egrep mbd: 1807 ? S 0:00 smbd -D 1811 ? S 0:00 nmbd -D # 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 //----------------------------------------------- # tcpdump -i eth0 port 139 tcpdump: listening on eth0 // there are many smb systems on our network nmblookup only sees lo. # findsmb IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION --------------------------------------------------------------------- 10.2.1.3 RHO *[ ABCR ] // no output with tcpdump -i eth0 port 139, but here is what I get with: tcpdump -i lo tcpdump: listening on lo 08:27:36.418044 10.2.1.3.netbios-ns > 10.2.1.3.32773: NBT UDP PACKET(137): QUERY; POSITIVE; RESPONSE; UNICAST (DF) 08:27:36.745162 10.2.1.3.32774 > 10.2.1.3.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; UNICAST (DF) 08:27:36.746787 10.2.1.3.netbios-ns > 10.2.1.3.32774: NBT UDP PACKET(137): QUERY; POSITIVE; RESPONSE; UNICAST (DF) 08:27:36.895434 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: S 1138608783:1138608783(0) win 32767 <mss 16396,sackOK,timestamp 892625 0,nop,wscale 0> (DF) 08:27:36.895480 10.2.1.3.microsoft-ds > 10.2.1.3.32860: S 1137764682:1137764682(0) ack 1138608784 win 12288 <mss 16396,sackOK,timestamp 892625 892625,nop,wscale 0> (DF) [tos 0x10] 08:27:36.895509 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: . ack 1 win 32767 <nop,nop,timestamp 892625 892625> (DF) 08:27:36.911574 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: P 1:184(183) ack 1 win 32767 <nop,nop,timestamp 892627 892625> (DF) [tos 0x10] 08:27:36.911619 10.2.1.3.microsoft-ds > 10.2.1.3.32860: . ack 184 win 12105 <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] 08:27:36.911909 10.2.1.3.microsoft-ds > 10.2.1.3.32860: P 1:6(5) ack 184 win 12105 <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] 08:27:36.911925 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: . ack 6 win 32762 <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] 08:27:36.912367 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: P 184:249(65) ack 6 win 32762 <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] 08:27:36.922802 10.2.1.3.microsoft-ds > 10.2.1.3.32860: R 6:6(0) ack 249 win 12105 <nop,nop,timestamp 892628 892627> (DF) [tos 0x10] /etc/samba/smb.conf: [global] workgroup = ABCR server string = Rho Samba Server netbios name = rho hosts allow = 127.0.0.0 10.2.0 interfaces = eth0 lo printcap name = /etc/printcap load printers = yes printing = cups log file = /var/log/samba/samba_error_log log level = 4 max log size = 2000000 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* pam password change = yes obey pam restrictions = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 os level = 99 domain logons = yes logon path dns proxy = no /var/log/samba/samba_error_log: [2003/11/11 08:27:36, 3] smbd/oplock.c:init_oplocks(1226) open_oplock_ipc: opening loopback UDP socket. [2003/11/11 08:27:36, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(303) Linux kernel oplocks enabled [2003/11/11 08:27:36, 3] smbd/oplock.c:init_oplocks(1257) open_oplock ipc: pid = 14637, global_oplock_port = 32774 [2003/11/11 08:27:36, 4] lib/time.c:get_serverzone(122) Serverzone is 21600 [2003/11/11 08:27:36, 3] lib/access.c:check_access(313) check_access: no hostnames in host allow/deny list. [2003/11/11 08:27:36, 0] lib/access.c:check_access(328) Denied connection from (10.2.1.3) [2003/11/11 08:27:36, 1] smbd/process.c:process_smb(883) Connection denied from 10.2.1.3 [2003/11/11 08:27:36, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2003/11/11 08:27:36, 2] smbd/server.c:exit_server(558) Closing connections [2003/11/11 08:27:36, 3] smbd/connection.c:yield_connection(69) Yielding connection to [2003/11/11 08:27:36, 3] smbd/connection.c:yield_connection(76) yield_connection: tdb_delete for name failed with error Record does not exist. [2003/11/11 08:27:36, 3] smbd/server.c:exit_server(601) Server exit (connection denied) # smbstatus doing parameter max log size = 2000000 doing parameter security = user doing parameter encrypt passwords = yes doing parameter smb passwd file = /etc/samba/smbpasswd doing parameter unix password sync = Yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* doing parameter pam password change = yes doing parameter obey pam restrictions = yes doing parameter socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 doing parameter interfaces = eth0 lo doing parameter os level = 99 doing parameter domain logons = yes doing parameter logon path doing parameter dns proxy = no Processing section "[homes]" doing parameter comment = Home Directories doing parameter browseable = no doing parameter writable = yes doing parameter valid users = %S doing parameter create mode = 0664 doing parameter directory mode = 0775 Processing section "[printers]" doing parameter comment = All Printers doing parameter path = /var/spool/samba doing parameter browseable = no doing parameter guest ok = no doing parameter writable = no doing parameter printable = yes Processing section "[tmp]" doing parameter comment = Temporary file space doing parameter path = /tmp doing parameter read only = no doing parameter public = yes pm_process() returned Yes sessionid.tdb not initialised Service pid machine Connected at ------------------------------------------------------- No locked files # ifconfig: eth0 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 inet addr:10.2.1.3 Bcast:10.3.255.255 Mask:255.254.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 eth0:0 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 inet addr:10.2.5.4 Bcast:10.3.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 eth0:1 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 inet addr:10.2.1.209 Bcast:10.3.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 eth0:2 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 inet addr:10.2.5.3 Bcast:10.3.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:5576 errors:0 dropped:0 overruns:0 frame:0 TX packets:5576 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2692449 (2.5 Mb) TX bytes:2692449 (2.5 Mb) There must be something simple I am doing wrong, but I can't find it. Pings work ing all directions e.g. client -> server, server -> client. Thanks for any help.
Well people, I found my own problem. You'll find the key to the solution near the bottom of my message. Notice the Bcast mask on all of the interfaces except the lo interface. The Bcast mask does not match the address. e.g. addr:10.2.1.3 Bcast:10.3.255.255. I found that the person who set up this computer (not I) failed to set the proper broadcast mask. Correcting this fundamental problem, and re-building samba finds her fat and happy. Please pardon the bit-way-static. :-) On Tue, 2003-11-11 at 08:57, templem@abclabs.com wrote:> RedHat 9.0, kernel 2.4.20-8bigmem > I can't get Samba 3.0.0 to talk to anything except lo. > > ./configure --prefix=/usr/share --exec-prefix=/usr --silent > --with-logfilebase=/var/log/samba --with-privatedir=/etc/samba/private > --with-configdir=/etc/samba --with-lockdir=/var/lock/subsys/samba > --enable-cups --with-acl-support --with-winbind --with-pam_smbpass > --with-ldapsam --with-localstatedir=/var/lock/subsys/samba > > #ps ax|egrep mbd: > 1807 ? S 0:00 smbd -D > 1811 ? S 0:00 nmbd -D > > > # 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 > > //----------------------------------------------- > # tcpdump -i eth0 port 139 > tcpdump: listening on eth0 > // there are many smb systems on our network nmblookup only sees lo. > # findsmb > > IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION > --------------------------------------------------------------------- > 10.2.1.3 RHO *[ ABCR ] > > // no output with tcpdump -i eth0 port 139, but here is what I get with: > tcpdump -i lo > tcpdump: listening on lo > > 08:27:36.418044 10.2.1.3.netbios-ns > 10.2.1.3.32773: NBT UDP PACKET(137): > QUERY; POSITIVE; RESPONSE; UNICAST (DF) > 08:27:36.745162 10.2.1.3.32774 > 10.2.1.3.netbios-ns: NBT UDP PACKET(137): > QUERY; REQUEST; UNICAST (DF) > 08:27:36.746787 10.2.1.3.netbios-ns > 10.2.1.3.32774: NBT UDP PACKET(137): > QUERY; POSITIVE; RESPONSE; UNICAST (DF) > 08:27:36.895434 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: S > 1138608783:1138608783(0) win 32767 <mss 16396,sackOK,timestamp 892625 > 0,nop,wscale 0> (DF) > 08:27:36.895480 10.2.1.3.microsoft-ds > 10.2.1.3.32860: S > 1137764682:1137764682(0) ack 1138608784 win 12288 <mss 16396,sackOK,timestamp > 892625 892625,nop,wscale 0> (DF) [tos 0x10] > 08:27:36.895509 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: . ack 1 win 32767 > <nop,nop,timestamp 892625 892625> (DF) > 08:27:36.911574 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: P 1:184(183) ack 1 win > 32767 <nop,nop,timestamp 892627 892625> (DF) [tos 0x10] > 08:27:36.911619 10.2.1.3.microsoft-ds > 10.2.1.3.32860: . ack 184 win 12105 > <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] > 08:27:36.911909 10.2.1.3.microsoft-ds > 10.2.1.3.32860: P 1:6(5) ack 184 win > 12105 <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] > 08:27:36.911925 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: . ack 6 win 32762 > <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] > 08:27:36.912367 10.2.1.3.32860 > 10.2.1.3.microsoft-ds: P 184:249(65) ack 6 > win 32762 <nop,nop,timestamp 892627 892627> (DF) [tos 0x10] > 08:27:36.922802 10.2.1.3.microsoft-ds > 10.2.1.3.32860: R 6:6(0) ack 249 win > 12105 <nop,nop,timestamp 892628 892627> (DF) [tos 0x10] > > /etc/samba/smb.conf: > > [global] > workgroup = ABCR > server string = Rho Samba Server > netbios name = rho > hosts allow = 127.0.0.0 10.2.0 > interfaces = eth0 lo > printcap name = /etc/printcap > load printers = yes > printing = cups > log file = /var/log/samba/samba_error_log > log level = 4 > max log size = 2000000 > security = user > encrypt passwords = yes > smb passwd file = /etc/samba/smbpasswd > unix password sync = Yes > passwd program = /usr/bin/passwd %u > passwd chat = *New*password* %n\n *Retype*new*password* %n\n > *passwd:*all*authentication*tokens*updated*successfully* > pam password change = yes > obey pam restrictions = yes > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > os level = 99 > domain logons = yes > logon path > dns proxy = no > > /var/log/samba/samba_error_log: > > [2003/11/11 08:27:36, 3] smbd/oplock.c:init_oplocks(1226) > open_oplock_ipc: opening loopback UDP socket. > [2003/11/11 08:27:36, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(303) > Linux kernel oplocks enabled > [2003/11/11 08:27:36, 3] smbd/oplock.c:init_oplocks(1257) > open_oplock ipc: pid = 14637, global_oplock_port = 32774 > [2003/11/11 08:27:36, 4] lib/time.c:get_serverzone(122) > Serverzone is 21600 > [2003/11/11 08:27:36, 3] lib/access.c:check_access(313) > check_access: no hostnames in host allow/deny list. > [2003/11/11 08:27:36, 0] lib/access.c:check_access(328) > Denied connection from (10.2.1.3) > [2003/11/11 08:27:36, 1] smbd/process.c:process_smb(883) > Connection denied from 10.2.1.3 > [2003/11/11 08:27:36, 3] smbd/sec_ctx.c:set_sec_ctx(288) > setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 > [2003/11/11 08:27:36, 2] smbd/server.c:exit_server(558) > Closing connections > [2003/11/11 08:27:36, 3] smbd/connection.c:yield_connection(69) > Yielding connection to > [2003/11/11 08:27:36, 3] smbd/connection.c:yield_connection(76) > yield_connection: tdb_delete for name failed with error Record does not exist. > [2003/11/11 08:27:36, 3] smbd/server.c:exit_server(601) > Server exit (connection denied) > > > # smbstatus > doing parameter max log size = 2000000 > doing parameter security = user > doing parameter encrypt passwords = yes > doing parameter smb passwd file = /etc/samba/smbpasswd > doing parameter unix password sync = Yes > doing parameter passwd program = /usr/bin/passwd %u > doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n > *passwd:*all*authentication*tokens*updated*successfully* > doing parameter pam password change = yes > doing parameter obey pam restrictions = yes > doing parameter socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 > SO_SNDBUF=8192 > doing parameter interfaces = eth0 lo > doing parameter os level = 99 > doing parameter domain logons = yes > doing parameter logon path > doing parameter dns proxy = no > Processing section "[homes]" > doing parameter comment = Home Directories > doing parameter browseable = no > doing parameter writable = yes > doing parameter valid users = %S > doing parameter create mode = 0664 > doing parameter directory mode = 0775 > Processing section "[printers]" > doing parameter comment = All Printers > doing parameter path = /var/spool/samba > doing parameter browseable = no > doing parameter guest ok = no > doing parameter writable = no > doing parameter printable = yes > Processing section "[tmp]" > doing parameter comment = Temporary file space > doing parameter path = /tmp > doing parameter read only = no > doing parameter public = yes > pm_process() returned Yes > sessionid.tdb not initialised > > Service pid machine Connected at > ------------------------------------------------------- > No locked files > > > # ifconfig: > eth0 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 > inet addr:10.2.1.3 Bcast:10.3.255.255 Mask:255.254.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 > TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) > Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 > > eth0:0 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 > inet addr:10.2.5.4 Bcast:10.3.255.255 Mask:255.0.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 > TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) > Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 > > eth0:1 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 > inet addr:10.2.1.209 Bcast:10.3.255.255 Mask:255.0.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 > TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) > Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 > > eth0:2 Link encap:Ethernet HWaddr 00:E0:81:23:E0:87 > inet addr:10.2.5.3 Bcast:10.3.255.255 Mask:255.0.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:259555 errors:0 dropped:0 overruns:0 frame:0 > TX packets:267985 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:41494651 (39.5 Mb) TX bytes:106749960 (101.8 Mb) > Interrupt:48 Base address:0xdc80 Memory:fe9e0000-fea00000 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:5576 errors:0 dropped:0 overruns:0 frame:0 > TX packets:5576 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:2692449 (2.5 Mb) TX bytes:2692449 (2.5 Mb) > > There must be something simple I am doing wrong, but I can't find it. Pings > work ing all directions e.g. client -> server, server -> client. > > Thanks for any help.