Controlling SMB access based on hosts' IP/name

Content Software for File CLI Reference

Version
4.2.x
Audience
anonymous
Part Number
MK-HCSF001-03
It is possible to control which hosts are permitted to access the SMB service or share.
Note:

SMB-W does not yet support access based on hosts' IP/name.

Command:

weka smb cluster host-access list

weka smb share host-access list

Use the following command line to add a host to the allow/deny list (at either cluster level or share level):

wekasmb cluster host-access add <mode> <--ips ips> <--hosts hosts>

wekasmb share host-access add <share-id> <mode> <--ips ips> <--hosts hosts>

Parameters

Name Type Value Limitation Mandatory Default
share-id String The ID of the share to update.

Mandatory for the share-level command.

     
mode   The access mode of the host. Possible values: allow , deny      
ips   Host IP addresses to allow or deny.

Must provide at least one of the ips or containers . A comma-separated list of IPs.

Format example for multiple IPs:

192.

192.168.

192.168.1

192.168.1.1/24

     
hosts   Host names to allow/deny.

Must provide at least one of the ips or containers . A comma- separated list of IPs.

     

Command:

weka smb cluster host-access remove

weka smb share host-access remove

Parameters

Name Type Value Limitation Mandatory Default
share-id String The ID of the share to update.

Mandatory for the share-level command.

     
hosts   The hosts to remove from the host-access list. Space-separated list of hosts.

It must be the exact name as shown under the HOSTNAME column in the equivalent list command.

     

Command:

weka smb cluster host-access reset

weka smb share host-access reset

Parameters

Name Type Value Limitation Mandatory Default
share-id String The ID of the share to update.

Mandatory for the share-level command.

     
mode   All hosts with this access mode will be removed from the list.

Possible values: allow , deny