Joined: 08 May 2018 Posts: 14221 Location: Texas, USA
Posted: Sun Dec 01, 2019 18:24 Post subject:
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
Joined: 26 Mar 2013 Posts: 1857 Location: Hung Hom, Hong Kong
Posted: Mon Dec 02, 2019 4:20 Post subject: Re: Windows SMB 1.0 protocol (CIFS)
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.
Joined: 26 Mar 2013 Posts: 1857 Location: Hung Hom, Hong Kong
Posted: Mon Dec 02, 2019 4:40 Post subject: Re: Windows SMB 1.0 protocol (CIFS)
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?
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?
Joined: 18 Mar 2014 Posts: 12884 Location: Netherlands
Posted: Mon Dec 02, 2019 7:06 Post subject:
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
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?
Joined: 18 Mar 2014 Posts: 12884 Location: Netherlands
Posted: Mon Dec 02, 2019 12:45 Post subject:
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
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.
Posted: Mon Dec 02, 2019 15:50 Post subject: Re: Windows SMB 1.0 protocol (CIFS)
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.
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
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?