Hi, this is my situation.
We want some subnets can access cifs, some other subnets can't.
So we enable export policy for our SVM.
==========================================================
cifs options show -vserver NFS-SVM -fields is-exportpolicy-enabled
vserver is-exportpolicy-enabled
------- -----------------------
NFS-SVM true
=========================================================
This is the export policy output.
================================
vserver export-policy rule show -vserver NFS-SVM -policyname cifs-policy -fields ruleindex,protocol,clientmatch,rorule,rwrule,anon,superuser
vserver policyname ruleindex protocol clientmatch rorule rwrule anon superuser
------- ----------- --------- -------------- -------------- ------ ------ ----- ---------
NFS-SVM cifs-policy 1 nfs3,nfs4,cifs 192.168.1.0/24 any any 65534 any
NFS-SVM cifs-policy 2 nfs3,nfs4,cifs 192.168.20.0/24
any any 65534 any
NFS-SVM cifs-policy 3 nfs3,nfs4,cifs 192.168.21.0/24
any any 65534 any
NFS-SVM cifs-policy 4 cifs 192.168.60.0/23
any any 65534 any
NFS-SVM cifs-policy 5 cifs 192.168.80.0/23
any any 65534 any
5 entries were displayed.
====================================
befor enable export policy, user can access cifs from all subnet.
After enable the export policy, user can access cifs only from 1 subnet(192.168.1.0/24), all of the others can't access cifs. It shows "Access is denied".
Would you please provide advice? Thank in advance.