Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosts filtering not working #249

Open
arter97 opened this issue Jun 21, 2022 · 0 comments
Open

Hosts filtering not working #249

arter97 opened this issue Jun 21, 2022 · 0 comments

Comments

@arter97
Copy link

arter97 commented Jun 21, 2022

From Documentation/configuration.txt:

	- hosts allow (default: none)
		This parameter is a comma, space, or tab delimited set of hosts
		which are permitted to access a service

It appears that it's not working, at least when Samba styles are followed.

The server is running at 10.150.21.10, and the client is running at 10.150.3.61.

All these syntax cause the client mount to fail with Permission denied:

hosts allow = 10.150.3.61
hosts allow = 10.150.3.61/32
hosts allow = 10.150.3.0/24
hosts allow = 10.150.21.69, 10.150.21.51, 10.150.21.48, 10.150.21.47, 10.150.3.61
root@arter97-x1:~# mount -t cifs -o guest,nobrl,ro,cache=loose,linux,setuids,perm,cifsacl,locallease //10.150.21.10/mirror /tmp/smb
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

When "hosts allow" is removed, it's working as intended.

The configuration I'm using currently binds ksmbd to one interface, but that doesn't seem to be affecting anything.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant