New BS Beta Build 11-21-2019 (r41586)

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


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

PostPosted: Sun Dec 01, 2019 18:24    Post subject: Reply with quote
kumurikage wrote:
help the vpn page when selecting leaves blank nothing is shown i have a tp link mr3220 v1


It's a 4MB flash router. It likely won't have VPN, but if it does, there could be an issue with the webUI for that device in this build, BUT, I am leaning towards it not having VPN included in the build since it's only a 4MB flash.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Sponsor
mwchang
DD-WRT Guru


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

PostPosted: Mon Dec 02, 2019 4:20    Post subject: Re: Windows SMB 1.0 protocol (CIFS) Reply with quote
dragonC wrote:
I strongly recommend against you turning SMB1.0 back on in your Windows 8, 8.1 and 10 systems. It is a really old protocol and there are already known exploits out there anyone diligent enough to google around can find. You risk exposing your network and potentially getting your data encrypted by some ransomware floating around.

More on this part of your reply:

The reason to enable SMBv1 *client* in Win 10 is because you need it to use the NET VIEW command and to show all network shares in the Network browser. Otherwise, NET VIEW will report system error 1231, and the Network browser will not list DD-WRT's Samba SMB2 shares, and possibly your other NAS shares.

SMBv1 is not installed by default in Windows 10 Fall Creators Update and Windows Server, version 1709 and later versions
https://support.microsoft.com/en-us/help/4034314/smbv1-is-not-installed-by-default-in-windows


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

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

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
GitHub: https://github.com/changmw/changmw
mwchang
DD-WRT Guru


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

PostPosted: Mon Dec 02, 2019 4:40    Post subject: Re: Windows SMB 1.0 protocol (CIFS) Reply with quote
dragonC wrote:

Even before this, I run my own custom smb.conf to set the "min server protocol" to SMB2. So this change has no effect on my setup other than there's now a GUI way to do this.

OK, found an old message (shown below). Is it the official way? But where should you store 'my new smb.conf with wins' to make sure that it's available when DD-WRT boots?

wins support
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=312865&sid=dbef04cdce2de294a0f688618c2df532
Quote:

cat /tmp/smb.conf
i copy all settings with changed name with "wins support = yes" to samba3_conf

nvram set samba3_conf='my new smb.conf with wins'
nvram set samba3_advanced=1
nvram commit
reboot

OK, found another message that mentioned saving the modified smb.conf into "/opt" folder.

Using Samba as WINS server to resolve NETBIOS names
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1076234&sid=835846e8cc7214a94883e550ffc4e19b
Quote:
Copy the smb.conf to /opt/etc/samba
mkdir -p /opt/etc/samba/
cp -a /tmp/smb.conf /opt/etc/samba/

But by default, /opt is read-only filesystem!

The solution is /jffs. It's very much like a ramdisk! I put a file there and it's still there after a reboot.

The question becomes: does DD-WRT respect "nvram set samba3_conf='/jffs/my_smb.conf'" when loading Samba during its init?

So I went "nvram get samba3_conf", nothing returned. Does this parameter exist at all? And... notice the strange entry "size: 30123 bytes (35413 left)"! Why was that returned? Macro execution???? Bug?
Quote:
root@dd-wrt~# nvram show | grep samba3

samba3_dirpath=/jffs
samba3_users=[]
size: 30123 bytes (35413 left)
samba3_workgrp=WORKGROUP
samba3_pubacl=1
samba3_advanced=0
samba3_pub=0
samba3_shares=[{"mp":"/mnt/sda1","sd":"Music","label":"Music","public":1,"perms":"ro","users":[]}]
samba3_enable=1
samba3_srvstr=dd-wrt



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

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

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
GitHub: https://github.com/changmw/changmw
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Mon Dec 02, 2019 7:06    Post subject: Reply with quote
Well we are gong off topic I will have to slap myself for this.
But this is from very old notes, I once tried to use DDWRT as a WINS server, take note of one of the last sentences, if you enable /jffs (or use USB with jfss), just place your own smb.conf in /jffs/etc/smb.conf then that should be used when smb starts.
So no need to kill and restart the process.

Quote:
It is possible to configure the DDWRT Samba server as a Wins server by hacking the /tmp/smb.conf:

Copy the smb.conf to /opt/etc/samba
mkdir -p /opt/etc/samba/
cp -a /tmp/smb.conf /opt/etc/samba/


Add these lines to the global section of the smb.conf:
[global]
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no
wins support = yes

# What naming service and in what order should we use to resolve host names
# to IP addresses
# name resolve order = lmhosts host wins bcast
name resolve order = wins lmhosts host bcast

#Optional Settings
# This will allow nmbd to search for NetBIOS names through DNS.
dns proxy = yes

#More Optional Settings
domain master = yes
local master = yes
preferred master = yes
os level = 65


Add these lines to startup script:
killall smbd
killall nmbd
smbd -D -s /opt/etc/samba/smb.conf #ipv -s kan ook --configfile=
nmbd -D -s /opt/etc/samba/smb.conf

Much easier if " /jffs/etc/smb.conf " is present that will be used

Reboot Router (to implement startup script)
Reboot all clients

Check with CMD promp: nbtstat –c

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Eventer
DD-WRT User


Joined: 10 Jan 2015
Posts: 52

PostPosted: Mon Dec 02, 2019 10:44    Post subject: Reply with quote
Hi,

flashed yesterday this BS firmware over the latest kong fw. I have now one problem. My Sonos could not find any music on my USB drive connected to my Asus RT68U. Is it possible to use SMBv1 for NAS?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Mon Dec 02, 2019 12:45    Post subject: Reply with quote
Eventer wrote:
Hi,

flashed yesterday this BS firmware over the latest kong fw. I have now one problem. My Sonos could not find any music on my USB drive connected to my Asus RT68U. Is it possible to use SMBv1 for NAS?


I am confused what version is in what build and even if there are builds which are using 4.11 altogether Sad

On my R7800 you can set min and max protocol (Services /NAS ), defaults are both set at SMB2, set the min protocol at NT1 (= SMB1) and if that does not work then set to LANMAN1.
If that does not work try to set the max protocol at NT1.

However SMB1 is really insecure try using local DNS.

SMB2 does not have Netbios discovery SMB2/Windows have a new discovery service WSD, which is and probably will not be incorporated in Samba, the alternative is adding WSD to DDWRT I have written a proposal to do so but it was rejected https://svn.dd-wrt.com/ticket/6879 (actually this time on good grounds, although a lot of distributions (like my QNAP pro NAS) are using this WSD)

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Eventer
DD-WRT User


Joined: 10 Jan 2015
Posts: 52

PostPosted: Mon Dec 02, 2019 13:42    Post subject: Reply with quote
NT1 is smb1? Great Very Happy

Sonos can’t find my dad-wrt nas when smb is higher than 1. there is no smb2 or higher support from Sonos:-/ And yes that’s really big bulls...

Plex is supported but I don’t know if and how I can run Plex on my RT68U
dragonC
DD-WRT User


Joined: 23 May 2015
Posts: 272

PostPosted: Mon Dec 02, 2019 15:50    Post subject: Re: Windows SMB 1.0 protocol (CIFS) Reply with quote
mwchang wrote:
dragonC wrote:
I strongly recommend against you turning SMB1.0 back on in your Windows 8, 8.1 and 10 systems. It is a really old protocol and there are already known exploits out there anyone diligent enough to google around can find. You risk exposing your network and potentially getting your data encrypted by some ransomware floating around.

More on this part of your reply:

The reason to enable SMBv1 *client* in Win 10 is because you need it to use the NET VIEW command and to show all network shares in the Network browser. Otherwise, NET VIEW will report system error 1231, and the Network browser will not list DD-WRT's Samba SMB2 shares, and possibly your other NAS shares.

SMBv1 is not installed by default in Windows 10 Fall Creators Update and Windows Server, version 1709 and later versions
https://support.microsoft.com/en-us/help/4034314/smbv1-is-not-installed-by-default-in-windows



I'd rather not use 'NET VIEW' if its prerequisite is to enable an insecure protocol. Have you tried migrating to PowerShell instead -- I use 'Get-SmbConnection' there to return information on all network shares in my Windows 10 scripts.

For launching Samba on your own, egc's suggestion is more straight forward and requires less scripting. But I prefer to completely turn-off Samba in the GUI, and spawning my own process in startup scripts. Here's what I posted before (https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1152980#1152980) on launching smbd & nmbd -- assuming you have a smbd/nmbd installation somewhere in a mounted drive (i.e. /jffs, /opt or just /usb for a custom mount point):

# For smbd
counter=0
while ( ! (ps | grep -q [s]mbd) ); do
if [[ $counter -gt 5 ]]; then
exit 1
fi
/usb/sbin/smbd -D --configfile=<config_path>
counter=$((counter+1))
sleep 15
done

# For nmbd
counter=0
while ( ! (ps | grep -q [n]mbd) ); do
if [[ $counter -gt 5 ]]; then
exit 1
fi
/usb/sbin/nmbd -D --configfile=<config_path>
counter=$((counter+1))
sleep 15
done
kumurikage
DD-WRT Novice


Joined: 06 Sep 2019
Posts: 14

PostPosted: Mon Dec 02, 2019 16:54    Post subject: Reply with quote
kernel-panic69 wrote:
kumurikage wrote:
help the vpn page when selecting leaves blank nothing is shown i have a tp link mr3220 v1


It's a 4MB flash router. It likely won't have VPN, but if it does, there could be an issue with the webUI for that device in this build, BUT, I am leaning towards it not having VPN included in the build since it's only a 4MB flash.



it may be that, I have 2 doubts you know how to share the printer via the router's usb (enable the usb module and the print support but it does not detect it checked with this command "dmesg | grep usb"), the other if I use a pendrive As external storage can I add more features?
Goto page Previous  1, 2, 3 Display posts from previous:    Page 3 of 3
Post new topic   Reply to topic    DD-WRT 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