How to configure native Fpolicy in ONTAP to block extensions
How to configure native Fpolicy in ONTAP to block extensions
https://kb.netapp.com/on-prem/ontap/da/NAS/NAS-KBs/How_to_configure_native_Fpolicy_in_ONTAP_…
Updated: Mon, 16 Dec 2024 11:14:51 GMT
Applies to
• ONTAP 9
• Data ONTAP 7-Mode
Description
This article describes the procedure to configure native Fpolicy in ONTAP in order to block a saving of files with
certain extensions: mp3, mp4, flv, wmv and some known ransomware extensions (Technical Report: The NetApp
Solution for Ransomware ). Also allows deletion of existing files.
'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.'
Procedure
ONTAP 9
• Perform the following steps to configure a Native Fpolicy in order to block particular file extensions.
Note: In the above command If the protocol is specified as CIFS , then SVM should have CIFS server
created before FPOLICY can be enabled in step 4
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
3. Configure Policy Scope:
Note: Only file extensions are matched, not file names (e.g. filename.ext -> all files with .ext get blocked)
4. Enable Policy:
• From ONTAP 9.1+, FPolicy is not applied to files or directories with extension greater than 16 characters,
© 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
see 1019880
◦ After the fix, the max length of a file extension is 256 characters, there is no limit on number of
extensions
◦ Dot character (.) is not supported in file extension.
◦ To ensure that the directory access succeeds while using the native engine, as per the provided
instruction, set the '-is-file-extension-check-on-directories-enabled' parameter to 'true' in the scope
of the policy
• From ONTAP 9.3+ (CONTAP-26863), this value is defaulted to TRUE.
7-Mode:
Additional Information
7-Mode:
• Using fpolicy
© 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
• Configuring native file blocking
© 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. 5