gnuton / asuswrt-merlin.ng

Extends the support of Merlin firmware to more ASUS routers
Other
1.48k stars 84 forks source link

guest login MUST be enabled to have access to my ext. NAS #668

Open feiercrack opened 2 months ago

feiercrack commented 2 months ago

Router Model Affected Models: RT-AX82U v1

Firmware Version Affected 004.388.8_2-gnuton1

Is this bug present in upstream Merlin releases too? dunno

Describe the bug when i like to access my external SSD (NAS) i have to enable the guest login, otherwise windows 11 pro x64 24H2 cant connect with my login/passwd - error: 0x80070043

In windows i simply cant activate the network discovery and the file / printer sharing option. i can turn them on, both, but nothing happens. when i reopen the network & internet tab, all my settings are gone -.-

i had invested the whole day to find a solution, but nothing helps

merlin

also, 2nd issue:

i cant open the gui via asusrouter.com - not possible -certificate installed

Nullvoid3771 commented 1 month ago

@feiercrack @gnuton

This isn’t a bug. This is a function of you using smb2-3 on windows which requires encryption, and signing. By enabling guest without authentication you’re allowing smb2-3 to function to not use encryption and file signing.

samba4 is not available on ASUS routers without installing the entware. Meaning smb3 isn’t supported which is default on windows I believe. Smb1 is disabled by default on windows 10 & 11.

Your best option is to either install and use samba4 or lock your smb to type smb2 in your smb.conf global configuration.

IMG_0004

feiercrack commented 1 month ago

where to find that "smb.conf"?

Nullvoid3771 commented 1 month ago

SSH into your router.

Do this:

You can look for examples online for the smb.conf configuration note that this file handles all of your shares meaning with using this it may ignore the shares already setup. This file should override anything the gui says. By default ASUS Merlin/gnuton would overwrite the normal smb.conf file each reboot so you need an add this config file to replace the smb.conf file the gui uses. This configuration file will be used each reboot replacing the content of the tmp smb.conf file the system uses by default.

I’m not sure off the top of my head the location of the main smb.conf file (check the tmp directory) the built in Samba server uses but you can copy its contents to the smb.conf.add file to make your life easier.

By the same respects if you use entware samba4 it will likely ignore the gui and rely solely on the entwares smb.conf file which is likely separate from the built in smb.conf file or the smb.conf.add file. Samba4 entware may also need a startup script to tell it to start each boot. (Not needed for the built in samba server)

Refer to this: https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts

The smb.conf configuration file is how you’d setup samba on any Linux machine without a gui. But because this router is for the most part read-only you need to use jffs or equivalent to have a writable file.

You can refer to the man file for additional parameters. Avoid the tutorials that tell you how to tune or optimize samba they are usually incorrect or obsolete functions with modern samba versions.

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

codyrocco commented 1 month ago

wouldn't it be nice to have this possibility in asus' default firmware? :) just for server / client_min_protocol 1 ... [later edit] why? for those older, but still expensive Oppo media players.

feiercrack commented 1 month ago
...snip > SSH into your router. > > Do this: > > * have jffs enabled > * have ssh or telnet access to your router enabled > * log in using either of the two > * create the file /jffs/configs/smb.conf.add > * add the parameters to smb.conf.add > * reboot router > > You can look for examples online for the smb.conf configuration note that this file handles all of your shares meaning with using this it may ignore the shares already setup. This file should override anything the gui says. By default ASUS Merlin/gnuton would overwrite the normal smb.conf file each reboot so you need an add this config file to replace the smb.conf file the gui uses. This configuration file will be used each reboot replacing the content of the tmp smb.conf file the system uses by default. > > I’m not sure off the top of my head the location of the main smb.conf file (check the tmp directory) the built in Samba server uses but you can copy its contents to the smb.conf.add file to make your life easier. > > By the same respects if you use entware samba4 it will likely ignore the gui and rely solely on the entwares smb.conf file which is likely separate from the built in smb.conf file or the smb.conf.add file. Samba4 entware may also need a startup script to tell it to start each boot. (Not needed for the built in samba server) > > Refer to this: https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts > > The smb.conf configuration file is how you’d setup samba on any Linux machine without a gui. But because this router is for the most part read-only you need to use jffs or equivalent to have a writable file. > > You can refer to the man file for additional parameters. Avoid the tutorials that tell you how to tune or optimize samba they are usually incorrect or obsolete functions with modern samba versions. > > https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

...snap

        **Awesome, that helps alot, ty!**