--- title: "Enabling IP filtering using the CLI" slug: "enabling-ip-filtering-using-the-cli-5" tags: ["Product Usage", "CMS 11.x", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Customer", "Network Security"] updated: 2026-09-07T20:58:12Z published: 2026-09-07T20:58:12Z canonical: "docs.trellix.com/enabling-ip-filtering-using-the-cli-5" --- > ## 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. # Enabling IP filtering using the CLI Use the commands in this section to enable IP filtering. > [!NOTE] > Note > > - The default rules do not place any restrictions on incoming and outgoing packets on ether* interfaces. You may add rules using the CLI. Use caution to not block access to needed network services. > - IP filtering is automatically enabled when you connect to Managed Defense, described in the *Managed Defense Quick Start Guide*. **To view the active rules:** 1. Go to CLI enable mode: `hostname > enable` 2. View the rules: ``` hostname # show ip filter ``` ``` hostname # show ipv6 filter ``` **To enable IP filtering:** 1. Go to CLI configuration mode: `hostname > enable` `hostname # configure terminal` 2. Enable IP filtering: `hostname (config) # ip filter enable` `hostname (config) # ipv6 filter enable` 3. Save your changes: `hostname (config) # write memory`