--- title: "Enabling IP filtering using the CLI" slug: "enabling-ip-filtering-using-the-cli-2" updated: 2026-08-25T21:18:03Z published: 2026-08-25T21:18:03Z canonical: "docs.trellix.com/enabling-ip-filtering-using-the-cli-2" --- > ## 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 - 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` :