Native FPolicy File Blocking
Native FPolicy File Blocking
https://kb.netapp.com/on-prem/ontap/da/NAS/NAS-KBs/Native_FPolicy_File_Blocking
Updated: Mon, 16 Dec 2024 16:16:12 GMT
Applies to
ONTAP 9
Answer
Overview:
Certain administrators want to have policies that do not allow certain file types to be stored on the file server
basically requesting for file filter request. These could be music, video or other such file types. The scan for such
files can be either based on:
Based on file extensions (native support in Data ONTAP) - for example, block all files matching *.mp3. This is a
'NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations
provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations
provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or 1
techniques herein is a customers responsibility and depends on the customers ability to evaluate and integrate them into the customers operational
environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this
document.'
less reliable approach. It does not need data access to files. Native support for file blocking based on file
extensions does not require a connection to any external FPolicy server.
Based on file magic signature (requires external server) - for example, block all files with magic and signature
matching mp3 format. This is more accurate as signature matching is done, similar to what anti-virus scanners
do to detect viruses.
The administrator enables event for CREATE, OPEN, CLOSE and RENAME requests. When the FPolicy server
is notified of these event triggers, it can run checks based on either of the two mechanisms (file extension or file
signature) and DENY requests if match is found.
Sample Configuration:
2. Configure Policy:
© 2023 NetApp.No part of this document covered by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior written permission of the copyright owner. For more
information, see Legal Notices. 2
Vserver: SvmName
Policy: blockext
Events to Monitor: Event
FPolicy Engine: native
Is Mandatory Screening Required: true
Allow Privileged Access: no
User Name for Privileged Access: -
Is Passthrough Read Enabled: false
Configure Policy Scope:
3. Enable Policy: Cannot assign same sequence number to multiple policies under the single vserver, but for
the policy in different vserver same sequence numbers which were used in previous vserver can be used.
© 2023 NetApp.No part of this document covered by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior written permission of the copyright owner. For more
information, see Legal Notices. 3
Cluster::> event log show -time > 2m
Time Node Severity Event
------------------- ------------ ------------- --------------------------
3/27/2017 10:35:34 cm2520n2-ams INFORMATIONAL
mgmt.fpolicy.policy.enabled: FPolicy policy blockext is enabled on Vserver
SvmName.
Attempt to rename a file using mp3, mp4, flv, or wmv extension is Denied
Attempt to open a file with mp3, mp4, flv, or wmv extension is Denied
Attempt to delete a file with mp3, mp4, flv, or wmv extension is Denied
Attempt to copy a file with mp3, mp4, flv, or wmv extension to the share
is Denied
For more information, see the CIFS and NFS Auditing Guide for your version of ONTAP.
Additional Information
© 2023 NetApp.No part of this document covered by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior written permission of the copyright owner. For more
information, see Legal Notices. 4