SMB-W does not yet support access based on hosts' IP/name.
Command:
weka smb cluster host-access listweka 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 removeweka 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 resetweka 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 |