--- title: "Ringfence rules" slug: "ringfence-rules-v7-0" description: "Ringfencing enhances security by controlling inbound and outbound traffic on devices, reducing malware risks on public networks." tags: ["Access Management", "Ringfence Rules", "Ringfencing"] updated: 2026-10-13T17:40:17Z published: 2026-10-13T17:40:17Z canonical: "support.appgate.com/ringfence-rules-v7-0" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.appgate.com/llms.txt > Use this file to discover all available pages before exploring further. # Ringfence rules Ringfencing reduces the risk of malware spreading between user devices on public networks. Ringfence rules control local inbound and outbound traffic on client devices while allowing the traffic required to establish tunnels to AppGate Gateways. > [!NOTE] > **NOTE** > > Ringfence rules cannot use conditions. --- ## Configuring ringfence rules Ringfence rules control local inbound and outbound connections on client devices. When configuring rules, keep the following in mind: - By default, after all configured rules are applied, the client enforces two implicit actions, in this order: allow outbound traffic, then block inbound traffic. These actions have the lowest priority. To allow inbound connections, add an explicit allow inbound action earlier in your rules. - Ringfence rules can be used with the default route. Excluded subnets are respected and are not blocked. - When a device location changes, AppGate reevaluates the policy and renews entitlement tokens. You can apply a different policy with different ringfence rules, such as when a user connects to an untrusted network (for example, a public Wi‑Fi hotspot). - You can create any number of ringfence rules, and each rule can include multiple actions. To create or edit a rule: 1. In the **Ringfence Rules** page (Access > Ringfence Rules), select **+ Add** to create a new rule, or select an existing rule to edit. 2. Complete the following fields: - ***Name***. Enter a name for the rule. - ***Notes***. Optional. Add any notes for the rule. - ***Tags***. Select **+Add** to apply tags. - ***Actions***. Select **+Add** to define one or more actions: - *Protected Hosts.* Specify IP addresses or IP ranges. - *Rule.* Choose **ALLOW** or **BLOCK**. - *Protocol.* Select protocol and direction. You can allow or block inbound or outbound TCP, UDP, or ICMP traffic for IPv4 and IPv6. - *Ports.* Specify ports or port ranges. ### Action Evaluation Order When multiple actions apply, AppGate evaluates them using the following rules: - The most specific IP range takes precedence. For example, `ALLOW 1.2.3.4/32` overrides `BLOCK 1.2.3.0/24`. - If two actions specify the same IP range, BLOCK takes precedence over **ALLOW**. For example, `BLOCK 1.2.3.4/32` overrides `ALLOW 1.2.3.4/32`. --- ## Applying ringfence rules Ringfence rules are applied in device policies. For more information, see the section on [configuring device policies](/v1/docs/configuring-policies-v7-0#device-policy). --- ## Managing ringfence rules On the **Ringfence Rules** page, select one or more rules and use the **Actions** menu to do the following: - Add Tag - Remove Tag - Delete On the **Add/Edit Ringfence Rule** page, use the Actions menu to clone or delete a rule. Use the action button—the three dots icon (![Three circular shapes stacked vertically on a dark background, selected to access a menu.](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/three_dots.png?sv=2026-02-06&spr=https&st=2026-11-21T21%3A39%3A52Z&se=2026-11-21T22%3A39%3A52Z&sr=b&sp=r&sig=hqv3Wr8w3oCc8Qou9oHvfel6av%2B4c07iP3rKe8gGW3M%3D)) to the right of each line item—to access the following option: - ***View Linked Policies.*** Displays the policies linked to that rule.