New Build - 07/20/2021 - r47074

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 846
Location: Hung Hom, Hong Kong

PostPosted: Wed Jul 21, 2021 11:21    Post subject: Reply with quote
I hit Factory Default -> Restore Factory Defaults. Then enabled USB storage and Samba in Services->NAS.

Samba 3 was still denying Win 10 connections. smbclient in Linux had no problem accessing it.

Both Encryption and Users were not relevant.

I noticed that DD-WRT was not using NAS->Samba->User String as computer name, but Setup->Router Name!

In Basic Setup->Optional Settings, no menu item for CTF and FA!

BTW, I forgot to backup \jffs before doing the reset and lost all files there including my unbound.conf! Smile

Update:

I found that if I changed [global] parameter in /tmp/smb.conf "map to guest = never" to "map to guest = bad user", samba3 worked. Even public folders worked without prompting for passwords, and non-public shares asked for passwords as expected.

All other parameters in smb.conf were not relevant.

The default value for "map to guest" is indeed "never", according to the Samba docs I found via Google.

Mr. BrainSlayer, please take note and fix it. When did you set it to "never"? Since which build?

Did programmers of ksmbd.mountd changed the default?

Alternatively, could you add an option in the WEBUI for "map to guest"? Let users decide whether to use "never" or "bad user". Smile

Update 2:

To properly test the share login from Windows, you need to "net use * /delete" then logout and log back in. Otherwise, the credential to DD-WRT's samba3 would be remembered and be used automatically.

You might also need to run "netsh winsock reset" and reboot, but less likely.

I think the following might be the reason for "never":

use "map to guest = never" · Issue #41 · bertvv/ansible-role-samba · GitHub
https://github.com/bertvv/ansible-role-samba/issues/41

The credential memory was more a problem of Windows, not Samba.

Other relevant threads I found via Google:

"map to guest" parameter
https://lists.samba.org/archive/samba/1999-October/015158.html

ubuntu - How to make Windows 7 remember credentials for a Samba network drive? - Super User
https://superuser.com/questions/240052/how-to-make-windows-7-remember-credentials-for-a-samba-network-drive/262598

How can I clear the "authentication cache" in Windows 7 to a password protected samba share? - Server Fault
https://serverfault.com/questions/326255/how-can-i-clear-the-authentication-cache-in-windows-7-to-a-password-protected

Windows 10 login information for accessing samba share protected directory located on Ubuntu 18.04 - Ask Ubuntu
https://askubuntu.com/questions/1093290/windows-10-login-information-for-accessing-samba-share-protected-directory-locat

Guest access in SMB2 disabled in Windows 10 | TrueNAS Community
https://www.truenas.com/community/threads/guest-access-in-smb2-disabled-in-windows-10.72097/


_________________
Router: Asus RT-N18U (rev. A1)

May the Force and farces be with you! Live long and proper!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832


Last edited by mwchang on Wed Jul 21, 2021 16:14; edited 12 times in total
Sponsor
msj100
DD-WRT Novice


Joined: 30 Jul 2007
Posts: 33
Location: Melbourne, Australia

PostPosted: Wed Jul 21, 2021 12:33    Post subject: Reply with quote
Router/Version: Asus RT-N16
File/Kernel: dd-wrt.v24-47074_NEWD-2_K3.x-big-RT-N16.trx / Linux 4.4.274 #10667 Tue Jul 20 04:47:44 +07 2021 mips
Previous/Reset: DD-WRT v3.0-r47073 big / Yes
Mode/Status: Simple configuration (mainly defaults - nvram output attached) / In test
Issues/Errors: Router fails to reboot consistently - sometimes the full network comes back up, sometimes not, somtimes the initial 'bootloader'(?) network pings, sometimes not, sometimes you can telnet in, sometimes not (O/S is unable to allocate pty) - I am just repeatedly rebooting from the Web UI or power cycle (if network becomes unavailable) - there is seemingly little or no pattern to the failures

I note when the router boots "well" (so I see 'bootloader' pings, followed by a gap then the full network being brought up, the LED light sequence appears to have changed significantly on the RT-N16 - now, the LAN and WAN ports all light up immediately prior to bringing up the full network - this is completely different to r46446 and earlier where this never happened.

Have attached messages and ps output from multiple reboots (although I don't believe syslog successfully starts when the network fails to start) - have also include nvram settings.



tests.tar.bz2
 Description:

Download
 Filename:  tests.tar.bz2
 Filesize:  17 KB
 Downloaded:  33 Time(s)


_________________
Asus RT-AC87U - dd-wrt
Asus RT-AC68U - dd-wrt
Asus RT-N16 - dd-wrt
TP-Link TL-MR3020 - OpenWRT
VAPs / VLANs / PBR / Entware
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 10001
Location: Texas, USA

PostPosted: Wed Jul 21, 2021 13:01    Post subject: Reply with quote
Logs would be helpful. May require attaching a USB-TTL-UART adapter and setting up a serial console with PuTTY.
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is?
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
msj100
DD-WRT Novice


Joined: 30 Jul 2007
Posts: 33
Location: Melbourne, Australia

PostPosted: Wed Jul 21, 2021 13:41    Post subject: Reply with quote
kernel-panic69 wrote:
Logs would be helpful. May require attaching a USB-TTL-UART adapter and setting up a serial console with PuTTY.


Yup - will need to work out how to do that to capture any logging when the network (or O/S) fails to start.

I have included /var/log/messages from tests when the network does start (in the archive in my previous post), however guess this doesn't show anything of value.

One other data point - the same router consistently (always) reboots successfully when running r46446 - so, unlikely to be a hardware issue.

_________________
Asus RT-AC87U - dd-wrt
Asus RT-AC68U - dd-wrt
Asus RT-N16 - dd-wrt
TP-Link TL-MR3020 - OpenWRT
VAPs / VLANs / PBR / Entware
saphirely
DD-WRT User


Joined: 13 Dec 2020
Posts: 71

PostPosted: Wed Jul 21, 2021 16:52    Post subject: Reply with quote
Router/Version: Netgear R6250
Firmware: DD-WRT v3.0-r47074 std (07/20/21)
Kernel: Linux 4.4.274 #3699 SMP Tue Jul 20 01:43:55 +07 2021 armv7l
Mode: Gateway, Wireless AP, unbound
Reset: No, not this time
Previous : r47073
Upgrade: Web and 1st succeed without reset.
Temperatures CPU 76.9 °C / WL1 56.1 °C
Load: 0.08, 0.09, 0.04
Uptime 2.5h
Errors: No, not at this moment.

After this upgrade, Basic Setup returned CTF and Disable.
So change Flow Acceleration to CTF & FA, save then reboot.

Here is the result:
root@DD-WRT:~# dmesg | grep FA
attaching FA
attaching FA
FA Core Detected!
root@DD-WRT:~# dmesg | grep ctf
create ctf proc
attach ctf for eth%d
_ctf_attach:attach eth%d
bind ctf to eth if
_ctf_attach:attach wl0
_ctf_attach:attach wl1

Working well.
thommy181
DD-WRT User


Joined: 16 Mar 2019
Posts: 223
Location: Szczecin, Poland EU

PostPosted: Wed Jul 21, 2021 18:58    Post subject: New Build - 07/20/2021 - r47074 Reply with quote
Router: Netgear WNR3500L v2
Kernel: Linux 4.4.274 #10655 Tue Jul 20 04:11:45 +07 2021 mips
Previous: Firmware: DD-WRT v3.0-r47073 giga
Reset: Yes
Mode: Internet gateway, WIFI AP, Dns server (dnsmasq)
Issues: Poor WAN performance. I can't have 300+ mbit internet connection speed
Status: Working
Uptime: more than 18h

Router is updated via ssh. Main problem is WAN poor performance. On SFE mode and stock CPU internet max speed is 190 - 200 mbit/s. After OC to 533 MHz max transfer is 260 - 270 mbit/s. On CTF situation is a bit better, but utilisation of sources are higher Router have gigabit WAN and 4 LAN ports gigabit too. Router performance is actually weak. For tests I'm restore factory defaults after update. It's not fix situation. I'm attach syslog.

Quote:

Jan 1 01:00:12 Myrouter syslog.info syslogd started: BusyBox v1.33.1
Jan 1 01:00:13 Myrouter kern.notice kernel: klogd started: BusyBox v1.33.1 (2021-07-20 04:06:44 +07)
Jan 1 01:00:13 Myrouter kern.notice kernel: Linux (LTO) version 4.4.274 (root@linux) (gcc version 11.1.0 (OpenWrt GCC 11.1.0 r16896+6-3c46ba053d) ) #10655 Tue Jul 20 04:11:45 +07 2021
Jan 1 01:00:13 Myrouter kern.info kernel: prom_init:194
Jan 1 01:00:13 Myrouter kern.info kernel: CPU0 revision is: 00019749 (MIPS 74Kc)
Jan 1 01:00:13 Myrouter kern.warn kernel: Found a AMD NAND flash with 2048B pages or 128KB blocks; total size 128MB
Jan 1 01:00:13 Myrouter kern.info kernel: Using bcma bus
Jan 1 01:00:13 Myrouter kern.info kernel: Determined physical RAM map:
Jan 1 01:00:13 Myrouter kern.info kernel: memory: 07fff000 @ 00000000 (usable)
Jan 1 01:00:13 Myrouter kern.warn kernel: Primary instruction cache 32kB, 4-way, VIPT, I-cache aliases, linesize 32 bytes.
Jan 1 01:00:13 Myrouter kern.warn kernel: Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Jan 1 01:00:13 Myrouter kern.info kernel: Zone ranges:
Jan 1 01:00:13 Myrouter kern.info kernel: Normal [mem 0x0000000000000000-0x0000000007ffefff]
Jan 1 01:00:13 Myrouter kern.info kernel: HighMem empty
Jan 1 01:00:13 Myrouter kern.info kernel: Movable zone start for each node
Jan 1 01:00:13 Myrouter kern.info kernel: Early memory node ranges
Jan 1 01:00:13 Myrouter kern.info kernel: node 0: [mem 0x0000000000000000-0x0000000007ffefff]
Jan 1 01:00:13 Myrouter kern.info kernel: Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffefff]
Jan 1 01:00:13 Myrouter kern.debug kernel: On node 0 totalpages: 32767
Jan 1 01:00:13 Myrouter kern.debug kernel: free_area_init_node: node 0, pgdat 80403300, node_mem_map 81007000
Jan 1 01:00:13 Myrouter kern.debug kernel: Normal zone: 256 pages used for memmap
Jan 1 01:00:13 Myrouter kern.debug kernel: Normal zone: 0 pages reserved
Jan 1 01:00:13 Myrouter kern.debug kernel: Normal zone: 32767 pages, LIFO batch:7
Jan 1 01:00:13 Myrouter kern.debug kernel: pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Jan 1 01:00:13 Myrouter kern.debug kernel: pcpu-alloc: [0] 0
Jan 1 01:00:13 Myrouter kern.info kernel: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32511
Jan 1 01:00:13 Myrouter kern.notice kernel: Kernel command line: console=ttyS0,115200 root=1f05 rootfstype=squashfs noinitrd init=/bin/sh
Jan 1 01:00:13 Myrouter kern.info kernel: PID hash table entries: 512 (order: -1, 2048 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: Writing ErrCtl register=00000000
Jan 1 01:00:13 Myrouter kern.info kernel: Readback ErrCtl register=00000000
Jan 1 01:00:13 Myrouter kern.info kernel: Memory: 124868K/131068K available (3438K kernel code, 195K rwdata, 472K rodata, 232K init, 648K bss, 6200K reserved, 0K cma-reserved, 0K highmem)
Jan 1 01:00:13 Myrouter kern.info kernel: SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Jan 1 01:00:13 Myrouter kern.info kernel: NR_IRQS:128
Jan 1 01:00:13 Myrouter kern.info kernel: CPU: BCM5357 rev 2 at 533 MHz
Jan 1 01:00:13 Myrouter kern.info kernel: clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7171708994 ns
Jan 1 01:00:13 Myrouter kern.info kernel: sched_clock: 32 bits at 266MHz, resolution 3ns, wraps every 8058100222ns
Jan 1 01:00:13 Myrouter kern.info kernel: console [ttyS0] enabled
Jan 1 01:00:13 Myrouter kern.info kernel: Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
Jan 1 01:00:13 Myrouter kern.info kernel: pid_max: default: 32768 minimum: 301
Jan 1 01:00:13 Myrouter kern.info kernel: Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: BRCM Errata: Enable CPU_WAIT
Jan 1 01:00:13 Myrouter kern.info kernel: clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Jan 1 01:00:13 Myrouter kern.info kernel: futex hash table entries: 256 (order: -1, 3072 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: NET: Registered protocol family 16
Jan 1 01:00:13 Myrouter kern.warn kernel: PCI: no core
Jan 1 01:00:13 Myrouter kern.warn kernel: PCI: no core
Jan 1 01:00:13 Myrouter kern.info kernel: PCI: scanning bus
0
Jan 1 01:00:13 Myrouter kern.info kernel: PCI host bridge to bus 0000:00
Jan 1 01:00:13 Myrouter kern.info kernel: pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
Jan 1 01:00:13 Myrouter kern.info kernel: pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
Jan 1 01:00:13 Myrouter kern.info kernel: pci_bus 0000:00: root bus resource [bus 00-ff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:00.0: [14e4:0800] type 00 class 0x050100
Jan 1 01:00:13 Myrouter kern.warn kernel: PCI: Fixing up bridge
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:00.0: reg 0x10: [mem 0x18000000-0x18000fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:01.0: [14e4:4329] type 00 class 0x028000
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:01.0: reg 0x10: [mem 0x18001000-0x18001fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:01.0: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:02.0: [14e4:4715] type 00 class 0x020000
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:02.0: reg 0x10: [mem 0x18002000-0x18002fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:02.0: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:04.0: [14e4:471a] type 00 class 0x0c0310
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:04.0: reg 0x10: [mem 0x18009000-0x18009fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:04.0: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:04.1: [14e4:471a] type 00 class 0x0c0320
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:04.1: reg 0x10: [mem 0x18004000-0x18004fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:04.1: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:05.0: [14e4:082e] type 00 class 0x050000
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:05.0: reg 0x10: [mem 0x18005000-0x18005fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:05.0: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:06.0: [14e4:4711] type 00 class 0x040100
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:06.0: reg 0x10: [mem 0x18006000-0x18006fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:06.0: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:07.0: [14e4:080e] type 00 class 0x050000
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:07.0: reg 0x10: [mem 0x18007000-0x18007fff]
Jan 1 01:00:13 Myrouter kern.debug kernel: pci 0000:00:07.0: reg 0x30: [mem 0x00000000-0x000007ff pref]
Jan 1 01:00:13 Myrouter kern.warn kernel: PCI: Fixing up bus 0
Jan 1 01:00:13 Myrouter kern.info kernel: clocksource: Switched to clocksource MIPS
Jan 1 01:00:13 Myrouter kern.info kernel: NET: Registered protocol family 2
Jan 1 01:00:13 Myrouter kern.info kernel: IP idents hash table entries: 2048 (order: 2, 16384 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: TCP established hash table entries: 1024 (order: 0, 4096 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: TCP: Hash tables configured (established 1024 bind 1024)
Jan 1 01:00:13 Myrouter kern.info kernel: UDP hash table entries: 256 (order: 0, 4096 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Jan 1 01:00:13 Myrouter kern.info kernel: NET: Registered protocol family 1
Jan 1 01:00:13 Myrouter kern.debug kernel: PCI: CLS 0 bytes, default 32
Jan 1 01:00:13 Myrouter kern.info kernel: squashfs: version 4.0 (2009/01/31) Phillip Lougher
Jan 1 01:00:13 Myrouter kern.info kernel: io scheduler noop registered (default)
Jan 1 01:00:13 Myrouter kern.info kernel: HDLC line discipline maxframe=4096
Jan 1 01:00:13 Myrouter kern.info kernel: N_HDLC line discipline registered.
Jan 1 01:00:13 Myrouter kern.info kernel: serial8250_init
Jan 1 01:00:13 Myrouter kern.info kernel: Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
Jan 1 01:00:13 Myrouter kern.info kernel: serial8250: ttyS0 at MMIO 0x0 (irq = 8, base_baud = 1250000) is a U6_16550A
Jan 1 01:00:13 Myrouter kern.info kernel: brd: module loaded
Jan 1 01:00:13 Myrouter kern.err kernel: pflash: found no supported devices
Jan 1 01:00:13 Myrouter kern.warn kernel: ERROR: Unknown flash, device_id:0x00
Jan 1 01:00:13 Myrouter kern.err kernel: bcmsflash: found no supported devices
Jan 1 01:00:13 Myrouter kern.debug kernel: Bad block table found at page 65472, version 0x01
Jan 1 01:00:13 Myrouter kern.debug kernel: Bad block table found at page 65408, version 0x01
Jan 1 01:00:13 Myrouter kern.notice kernel: Creating 2 MTD partitions on "brcmnand":
Jan 1 01:00:13 Myrouter kern.notice kernel: 0x000000500000-0x000002000000 : "linux"
Jan 1 01:00:13 Myrouter kern.notice kernel: 0x000004000000-0x000007f00000 : "ddwrt"
Jan 1 01:00:13 Myrouter kern.warn kernel: Boot partition size = 524288(0x80000)
Jan 1 01:00:13 Myrouter kern.warn kernel: lookup_nflash_rootfs_offset: offset = 0x500000
Jan 1 01:00:13 Myrouter kern.notice kernel: found trx at 500000, len =25493504
Jan 1 01:00:13 Myrouter kern.notice kernel: scan filesys at 65B000
Jan 1 01:00:13 Myrouter kern.notice kernel: nflash: squash filesystem with lzma found at offset 500000
Jan 1 01:00:13 Myrouter kern.notice kernel: Creating 4 MTD partitions on "nflash":
Jan 1 01:00:13 Myrouter kern.notice kernel: 0x000000000000-0x000000080000 : "cfe"
Jan 1 01:00:13 Myrouter kern.notice kernel: 0x000000080000-0x000000200000 : "nvram"
Jan 1 01:00:13 Myrouter kern.notice kernel: 0x000000500000-0x000002000000 : "nandimage"
Jan 1 01:00:13 Myrouter kern.notice kernel: 0x00000065b000-0x000002000000 : "rootfs"
Jan 1 01:00:13 Myrouter kern.notice kernel: mtd: partition "rootfs" set to be root filesystem
Jan 1 01:00:13 Myrouter kern.info kernel: add netgear boarddata for pflash if exists
Jan 1 01:00:13 Myrouter kern.info kernel: add netgear boarddata for sflash if exists
Jan 1 01:00:13 Myrouter kern.info kernel: PPP generic driver version 2.4.2
Jan 1 01:00:13 Myrouter kern.info kernel: PPP BSD Compression module registered
Jan 1 01:00:13 Myrouter kern.info kernel: PPP Deflate Compression module registered
Jan 1 01:00:13 Myrouter kern.info kernel: PPP MPPE Compression module registered
Jan 1 01:00:13 Myrouter kern.info kernel: NET: Registered protocol family 24
Jan 1 01:00:13 Myrouter kern.info kernel: Broadcom Watchdog Timer: 0.07 initialized.
Jan 1 01:00:13 Myrouter kern.info kernel: GACT probability NOT on
Jan 1 01:00:13 Myrouter kern.info kernel: Mirror/redirect action on
Jan 1 01:00:13 Myrouter kern.info kernel: Simple TC action Loaded
Jan 1 01:00:13 Myrouter kern.info kernel: netem: version 1.3
Jan 1 01:00:13 Myrouter kern.info kernel: u32 classifier
Jan 1 01:00:13 Myrouter kern.info kernel: Performance counters on
Jan 1 01:00:13 Myrouter kern.info kernel: input device check on
Jan 1 01:00:13 Myrouter kern.info kernel: Actions configured
Jan 1 01:00:13 Myrouter kern.info kernel: Netfilter messages via NETLINK v0.30.
Jan 1 01:00:13 Myrouter kern.info kernel: nf_conntrack version 0.5.0 (1951 buckets, 7804 max)
Jan 1 01:00:13 Myrouter kern.warn kernel: nf_conntrack_rtsp v0.7 loading
Jan 1 01:00:13 Myrouter kern.info kernel: xt_time: kernel timezone is -0000
Jan 1 01:00:13 Myrouter kern.info kernel: gre: GRE over IPv4 demultiplexor driver
Jan 1 01:00:13 Myrouter kern.warn kernel: nf_nat_rtsp v0.7 loading
Jan 1 01:00:13 Myrouter kern.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan 1 01:00:13 Myrouter kern.info kernel: NET: Registered protocol family 17
Jan 1 01:00:13 Myrouter kern.info kernel: bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Jan 1 01:00:13 Myrouter kern.notice kernel: Bridge firewalling registered
Jan 1 01:00:13 Myrouter kern.info kernel: 8021q: 802.1Q VLAN Support v1.8
Jan 1 01:00:13 Myrouter kern.info kernel: startup nvram driver
Jan 1 01:00:13 Myrouter kern.emerg kernel: found nvram
Jan 1 01:00:13 Myrouter kern.info kernel: max nvram space = 65536
Jan 1 01:00:13 Myrouter kern.info kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
Jan 1 01:00:13 Myrouter kern.info kernel: Freeing unused kernel memory: 232K
Jan 1 01:00:13 Myrouter kern.info kernel: create ctf proc
Jan 1 01:00:13 Myrouter kern.warn kernel: et_module_init: passivemode set to 0x0
Jan 1 01:00:13 Myrouter kern.warn kernel: et_module_init: txworkq set to 0x0
Jan 1 01:00:13 Myrouter kern.warn kernel: et_module_init: et_txq_thresh set to 0xce4
Jan 1 01:00:13 Myrouter kern.warn kernel: et_module_init: et_rxlazy_timeout set to 0x3e8
Jan 1 01:00:13 Myrouter kern.warn kernel: et_module_init: et_rxlazy_framecnt set to 0x20
Jan 1 01:00:13 Myrouter kern.warn kernel: et_module_init: et_rxlazy_dyn_thresh set to 0
Jan 1 01:00:13 Myrouter kern.info kernel: robo attach
Jan 1 01:00:13 Myrouter kern.info kernel: robo id 3115
Jan 1 01:00:13 Myrouter kern.info kernel: attach ctf for eth%d
Jan 1 01:00:13 Myrouter kern.info kernel: _ctf_attach:attach eth%d
Jan 1 01:00:13 Myrouter kern.info kernel: bind ctf to eth if
Jan 1 01:00:13 Myrouter kern.warn kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 7.14.164.18 (r692288)
Jan 1 01:00:13 Myrouter kern.warn kernel: wl: module license 'Proprietary' taints kernel.
Jan 1 01:00:13 Myrouter kern.warn kernel: Disabling lock debugging due to kernel taint
Jan 1 01:00:13 Myrouter kern.info kernel: _ctf_attach:attach wl0
Jan 1 01:00:13 Myrouter kern.info kernel: switch id 15
Jan 1 01:00:13 Myrouter kern.info kernel: switch id32 53115
Jan 1 01:00:13 Myrouter kern.info kernel: b5301x_common: found switch: BCM53115, rev 8
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=1, vlan->members=0x11e, vlan->untag=0x1e
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=1 2 3 4 8t
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=2, vlan->members=0x101, vlan->untag=0x101
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=0 8
Jan 1 01:00:13 Myrouter user.info : resetbutton : resetbutton daemon successfully started
Jan 1 01:00:13 Myrouter kern.info kernel: device eth0 entered promiscuous mode
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=1, vlan->members=0x118, vlan->untag=0x18
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=3 4 8t
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=2, vlan->members=0x101, vlan->untag=0x1
Jan 1 01:00:13 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=0 8t
Jan 1 01:00:13 Myrouter user.info : bridge : bridge br0 successfully added
Jan 1 01:00:14 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=1, vlan->members=0x11e, vlan->untag=0x1e
Jan 1 01:00:14 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=1 2 3 4 8t
Jan 1 01:00:14 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=2, vlan->members=0x101, vlan->untag=0x101
Jan 1 01:00:14 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=0 8
Jan 1 01:00:14 Myrouter user.info : bridge : bridge br0 successfully added
Jan 1 01:00:14 Myrouter kern.info kernel: device br0 entered promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: device eth0 left promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: device eth0 entered promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: device eth0 left promiscuous mode
Jan 1 01:00:14 Myrouter user.info : bridge : interface vlan1 successfully added to bridge br0
Jan 1 01:00:14 Myrouter kern.info kernel: device eth0 entered promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: device vlan1 entered promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: br0: port 1(vlan1) entered forwarding state
Jan 1 01:00:14 Myrouter kern.info kernel: br0: port 1(vlan1) entered forwarding state
Jan 1 01:00:14 Myrouter user.info : bridge : interface eth1 successfully added to bridge br0
Jan 1 01:00:14 Myrouter kern.info kernel: device eth1 entered promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: br0: port 2(eth1) entered forwarding state
Jan 1 01:00:14 Myrouter kern.info kernel: br0: port 2(eth1) entered forwarding state
Jan 1 01:00:14 Myrouter kern.info kernel: device br0 left promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: device br0 entered promiscuous mode
Jan 1 01:00:14 Myrouter kern.info kernel: device br0 left promiscuous mode
Jan 1 01:00:15 Myrouter kern.info kernel: device eth0 left promiscuous mode
Jan 1 01:00:15 Myrouter kern.info kernel: br0: port 1(vlan1) entered disabled state
Jan 1 01:00:15 Myrouter user.info : bridge : interface vlan1 successfully added to bridge br0
Jan 1 01:00:15 Myrouter kern.info kernel: device eth0 entered promiscuous mode
Jan 1 01:00:15 Myrouter kern.info kernel: br0: port 1(vlan1) entered forwarding state
Jan 1 01:00:15 Myrouter kern.info kernel: br0: port 1(vlan1) entered forwarding state
Jan 1 01:00:15 Myrouter kern.info kernel: device eth0 left promiscuous mode
Jan 1 01:00:15 Myrouter kern.info kernel: br0: port 1(vlan1) entered disabled state
Jan 1 01:00:15 Myrouter kern.info kernel: device eth0 entered promiscuous mode
Jan 1 01:00:15 Myrouter kern.info kernel: br0: port 1(vlan1) entered forwarding state
Jan 1 01:00:15 Myrouter kern.info kernel: br0: port 1(vlan1) entered forwarding state
Jan 1 01:00:15 Myrouter user.info : bridge : interface vlan1 successfully added to bridge br0
Jan 1 01:00:15 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=1, vlan->members=0x118, vlan->untag=0x18
Jan 1 01:00:15 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=3 4 8t
Jan 1 01:00:15 Myrouter kern.info kernel: bcm_robo_config_vlan_fun vid=2, vlan->members=0x101, vlan->untag=0x1
Jan 1 01:00:15 Myrouter kern.info kernel: bcm_robo_config_vlan_fun ports=0 8t
Jan 1 01:00:16 Myrouter kern.info kernel: device vlan2 entered promiscuous mode
Jan 1 01:00:16 Myrouter user.info : klogd : kernel log daemon successfully stopped
Jan 1 01:00:16 Myrouter user.info : sfe : shortcut forwarding engine successfully stopped
Jan 1 01:00:16 Myrouter kern.info kernel: CTF: disabled
Jan 1 01:00:16 Myrouter kern.notice kernel: klogd: exiting
Jan 1 01:00:17 Myrouter user.info : syslogd : syslog daemon successfully stopped
Jan 1 01:00:17 Myrouter syslog.info syslogd exiting
Jan 1 01:00:17 Myrouter syslog.info syslogd started: BusyBox v1.33.1
Jan 1 01:00:17 Myrouter kern.notice kernel: klogd started: BusyBox v1.33.1 (2021-07-20 04:06:44 +07)
Jan 1 01:00:17 Myrouter user.info : wland : daemon successfully started
Jan 1 01:00:17 Myrouter user.info : cron : daemon successfully started
Jan 1 01:00:17 Myrouter cron.info cron[1407]: (CRON) STARTUP (fork ok)
Jan 1 01:00:20 Myrouter user.info : dnsmasq : daemon successfully started
Jan 1 01:00:21 Myrouter daemon.info httpd[1405]: httpd : httpd SSL server started at port 443
Jan 1 01:00:22 Myrouter kern.alert kernel: fast-classifier (PBR safe v2.1.6b): starting up
Jan 1 01:00:22 Myrouter kern.alert kernel: fast-classifier: registered
Jan 1 01:00:22 Myrouter user.info : sfe : shortcut forwarding engine successfully started
Jan 1 01:00:23 Myrouter kern.info kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
Jan 1 01:00:24 Myrouter user.info : sfe : shortcut forwarding engine successfully started
Jan 1 01:00:24 Myrouter kern.info kernel: device vlan2 left promiscuous mode
Jan 1 01:00:24 Myrouter user.info : ttraff : traffic counter daemon successfully started
Jan 1 01:00:25 Myrouter user.info : nas : wait for network init
Jan 1 01:00:29 Myrouter kern.info kernel: br0: port 2(eth1) entered forwarding state
Jan 1 01:00:30 Myrouter kern.info kernel: br0: port 1(vlan1) entered forwarding state
Jan 1 01:00:35 Myrouter user.info : nas : start nas lan
Jan 1 01:00:35 Myrouter user.info : nas : start nas for wl0
Jan 1 01:00:36 Myrouter user.info : nas : NAS lan (wl0 interface) successfully started
Jan 1 01:00:37 Myrouter user.info : nas : daemon successfully stopped
Jan 1 01:00:37 Myrouter user.info : nas : start nas lan
Jan 1 01:00:37 Myrouter user.info : nas : start nas for wl0
Jan 1 01:00:37 Myrouter user.info : nas : NAS lan (wl0 interface) successfully started
Jan 1 01:00:37 Myrouter user.info : httpd : daemon successfully stopped
Jan 1 01:00:37 Myrouter daemon.info httpd[1405]: httpd : httpd server shutdown
Jan 1 01:00:37 Myrouter user.info : httpd : https daemon successfully started
Jan 1 01:00:37 Myrouter daemon.info httpd[1603]: httpd : httpd SSL server started at port 443
Jan 1 01:01:03 Myrouter kern.notice kernel: random: nonblocking pool is initialized
Jan 1 01:01:03 Myrouter user.info : dropbear : ssh daemon successfully started
Jan 1 01:01:03 Myrouter authpriv.info dropbear[1614]: Running in background
Jan 1 01:01:03 Myrouter user.info : httpd : https daemon successfully started
Jan 1 01:01:03 Myrouter user.info : resetbutton : daemon successfully stopped
Jan 1 01:01:03 Myrouter user.info : resetbutton : resetbutton daemon successfully started
Jan 1 01:01:08 Myrouter daemon.info httpd[1618]: httpd : Authentication fail
Jan 1 01:01:08 Myrouter daemon.err httpd[1618]: httpd : Request Error Code 401: Authorization required. Wrong username and/or password!
Jan 1 01:01:53 Myrouter authpriv.info dropbear[1796]: Child connection from x
Jan 1 01:02:13 Myrouter authpriv.notice dropbear[1796]: Password auth succeeded for 'root' from x
xraive
DD-WRT User


Joined: 08 Mar 2016
Posts: 127

PostPosted: Thu Jul 22, 2021 5:00    Post subject: Reply with quote
mwchang wrote:
I hit Factory Default -> Restore Factory Defaults. Then enabled USB storage and Samba in Services->NAS.

Samba 3 was still denying Win 10 connections. smbclient in Linux had no problem accessing it.

Both Encryption and Users were not relevant.

I noticed that DD-WRT was not using NAS->Samba->User String as computer name, but Setup->Router Name!

In Basic Setup->Optional Settings, no menu item for CTF and FA!

BTW, I forgot to backup \jffs before doing the reset and lost all files there including my unbound.conf! Smile

Update:

I found that if I changed [global] parameter in /tmp/smb.conf "map to guest = never" to "map to guest = bad user", samba3 worked. Even public folders worked without prompting for passwords, and non-public shares asked for passwords as expected.

All other parameters in smb.conf were not relevant.

The default value for "map to guest" is indeed "never", according to the Samba docs I found via Google.

Mr. BrainSlayer, please take note and fix it. When did you set it to "never"? Since which build?

Did programmers of ksmbd.mountd changed the default?

Alternatively, could you add an option in the WEBUI for "map to guest"? Let users decide whether to use "never" or "bad user". Smile

Update 2:

To properly test the share login from Windows, you need to "net use * /delete" then logout and log back in. Otherwise, the credential to DD-WRT's samba3 would be remembered and be used automatically.

You might also need to run "netsh winsock reset" and reboot, but less likely.

I think the following might be the reason for "never":

use "map to guest = never" · Issue #41 · bertvv/ansible-role-samba · GitHub
https://github.com/bertvv/ansible-role-samba/issues/41

The credential memory was more a problem of Windows, not Samba.

Other relevant threads I found via Google:

"map to guest" parameter
https://lists.samba.org/archive/samba/1999-October/015158.html

ubuntu - How to make Windows 7 remember credentials for a Samba network drive? - Super User
https://superuser.com/questions/240052/how-to-make-windows-7-remember-credentials-for-a-samba-network-drive/262598

How can I clear the "authentication cache" in Windows 7 to a password protected samba share? - Server Fault
https://serverfault.com/questions/326255/how-can-i-clear-the-authentication-cache-in-windows-7-to-a-password-protected

Windows 10 login information for accessing samba share protected directory located on Ubuntu 18.04 - Ask Ubuntu
https://askubuntu.com/questions/1093290/windows-10-login-information-for-accessing-samba-share-protected-directory-locat

Guest access in SMB2 disabled in Windows 10 | TrueNAS Community
https://www.truenas.com/community/threads/guest-access-in-smb2-disabled-in-windows-10.72097/



I tried your suggestion on my Netgear XR500 and it worked, I was able to access my shares. Although it doesn't make sense since the exact same config that didn't work on my XR500 works on my Linkys EA8500.

Thanks for the helpful info.
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1675
Location: Canada

PostPosted: Thu Jul 22, 2021 6:40    Post subject: Reply with quote
OffSite #1

Router/Version: R7000
File/Kernel: DD-WRT v3.0-r47074 std (07/20/21)
Previous/Reset: r47033 / No, Remote CLI Update
Mode/Status: GW & AP / Working Well
Issues/Errors: none / none
Services Used: DHCP WAN,IPv6-6to4,NTP,WG Client,VLANx,BRx,SSH,Syslog,Cron,USB Storage,Entware DNSCrypt v2.0.45,YAMon3.4.7
Services Disabled: SFE,QoS,ttraff,Telnet,NAS,Samba


TESTING at Home for OffSite #2

Router/Version: R7000
File/Kernel: DD-WRT v3.0-r47074 std (07/20/21)
Previous/Reset: r47033 / No, CLI Update
Mode/Status: GW & AP / Working Well
Issues/Errors: none /none
Services Used: DHCP WAN,IPv6-PD,NTP,VLANx,BRx,SSH,Syslog,Cron,USB Storage,Entware DNSCrypt v2.0.45,YAMon3.4.7
Services Disabled: SFE,QoS,ttraff,Telnet,NAS,Samba
This Router is NOT Deployed to Off-Site #2 yet, TESTING.


Thank-you BrianSlyer for your Great Work and everyone else who makes DD-WRT Great on the Forum!

_________________
Home Network on Telus PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r47377 Std
R7000 - Wired ISP 4K IPTV Gateway - DDWRT r47117 Std

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r47117 Std
E3000 - Client Bridge - DDWRT r46979 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r47117 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 846
Location: Hung Hom, Hong Kong

PostPosted: Thu Jul 22, 2021 16:09    Post subject: Reply with quote
xraive wrote:
I tried your suggestion on my Netgear XR500 and it worked, I was able to access my shares.

Although it doesn't make sense since the exact same config that didn't work on my XR500 works on my Linkys EA8500.

I don't know whether XR500 runs ksmbd+wsdd2... Were you talking about ReadyShare? Or ReadyNAS?

https://www.google.com/search?q=Netgear+XR500+samba


_________________
Router: Asus RT-N18U (rev. A1)

May the Force and farces be with you! Live long and proper!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
PowerPoldi
DD-WRT User


Joined: 15 Oct 2016
Posts: 69

PostPosted: Fri Jul 23, 2021 5:52    Post subject: Reply with quote
@MWCHANG:
Checked my older running dd-wrt version:
R46380 (April 17, 2021) has already "map to guest = never" by default in smb.conf
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 846
Location: Hung Hom, Hong Kong

PostPosted: Sat Jul 24, 2021 12:59    Post subject: Reply with quote
PowerPoldi wrote:
@MWCHANG:
Checked my older running dd-wrt version:
R46380 (April 17, 2021) has already "map to guest = never" by default in smb.conf


Thanks!


_________________
Router: Asus RT-N18U (rev. A1)

May the Force and farces be with you! Live long and proper!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum