--- title: "Creating a custom IPS policy (CLI)" slug: "creating-a-custom-ips-policy-cli" tags: ["Network Security (NX)", "Product Usage"] updated: 2026-10-02T10:39:51Z published: 2026-10-02T10:39:51Z canonical: "docs.trellix.com/creating-a-custom-ips-policy-cli" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Creating a custom IPS policy (CLI) You can create a custom IPS policy by specifying the name of the new policy. ##### Prerequisites - Log in to the CLI of the IPS platform as Operator or Admin. To create a custom IPS policy: 1. Enable the CLI configuration mode. ```plaintext hostname > enable hostname # configure terminal ``` 2. Create a custom IPS policy. The following example creates a custom policy named **myCustom1**. ```plaintext hostname (config) # ips policy myCustom1 ``` 3. Display the rule-matching attributes of the new IPS policy. In the following example, the new custom policy has the same match attributes as the **Comprehensive** default IPS policy, which does not specify rule exclusion or inclusion attributes. For more information, see [Attributes of IPS policies](/network-and-platform/docs/attributes-of-ips-policies). ```plaintext hostname (config) # show ips policies myCustom1 Policy attributes :        active : no        writable : yes        modified_date : 2014/09/26 09:51/36        version : 1 Match attributes of policy :        attack-target : client        attack-target : server        min-severity : 1        max-severity : 10 Fingerprint of policy :x 2014/09/26 09:51:36 | 791c1c0bcd3b604630616acac14a96b1 ``` 4. (Optional) To modify the rule-matching attributes of the new IPS policy, see [Editing the rule match attributes of an IPS policy (CLI)](/network-and-platform/docs/editing-an-ips-policy-cli). 5. (Optional) To modify the rule exclusion and inclusion attributes of the new policy, see [Editing the rule inclusion and exclusion attributes of an IPS policy (CLI)](/network-and-platform/docs/editing-an-ips-policy-cli). 6. Save your changes. ```plaintext hostname (config) # write memory ``` :