> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Blocking Traffic from Countries using Geoblocking

> Geoblocking is deprecated in Aviatrix CoPilot 4.37. New configuration is no longer available in the CoPilot UI; migrate existing deployments to Distributed Cloud Firewall.

> [!WARNING]
>
> **Geoblocking is deprecated in Aviatrix CoPilot 4.37.**
>
> * You cannot create new Geoblocking configurations from the CoPilot UI. The
>   **Security > ThreatIQ > Geoblocking** page is removed from the CoPilot
>   navigation in 4.37 and later.
> * Existing Geoblocking configurations continue to operate on the backend.
>   Aviatrix gateways still enforce previously instantiated country-block firewall
>   rules.
> * Aviatrix recommends migrating to
>   [Distributed Cloud Firewall with ExternalGroups](https://docs.aviatrix.com/docs/enterprise/10.0/guides/security/threatiq-geo-dcf-migration-guidelines.md)
>   to block traffic from geographical regions. You cannot use ThreatIQ or
>   Geoblocking in conjunction with DCF and ExternalGroups.
>
> This page is retained for reference for customers with existing Geoblocking
> configurations.

> [!NOTE]
>
> The Geoblocking tab is only displayed if you had Geoblocking enabled and configured prior to Controller version 7.2.4820.

This section describes the Geoblocking feature of Aviatrix CoPilot. You access
Geoblocking in CoPilot by going to Home > Security > ThreatIQ > Geoblocking.

Geoblocking allows you to select a country to block IP traffic coming into and
coming from the country. When Geoblocking is enabled for a country, a tag-based
security policy is implemented on each gateway to deny traffic for IP addresses
associated with the country.

All gateways in your VPC/VNets will block.

When you unblock a country, the tag is removed from all gateways and the
stateful firewall rules instantiated on them for that country are removed.

> [!NOTE]
>
> If Geoblocking is disabled (from Setting > Configuration > License tab under
> Feature Previews) this feature is not available. When you disable Geoblocking
> you are prompted that all blocking IPs will be removed.
>
> * Users with admin permissions can enable the feature (prior to Controller
>   7.2.4820 only; in 7.2.4820 and later, if the Geoblocking feature is disabled,
>   it cannot be re-enabled).
> * When you enable Geoblocking on the License tab, you are informed that a
>   tag-based security policy will be implemented on each gateway, to deny traffic
>   for IP addresses associated with the country. All gateways in those VPC/VNets
>   will be blocked.

## Configuring Geoblocking

Configure Geoblocking to block IP traffic coming into and coming from a country.

> [!NOTE]
>
> A cloud-region IP may be blocked if that region is in the blocked country. For
> example, if the public IP for your service is registered in a specific country
> by the cloud and you block that country, the IP may be blocked as well.

By clicking on the country name, you can view recent IP traffic going to or
coming from that selected country in the time range you specify.

To configure Geoblocking, you must log in to CoPilot with a user account that
belongs to a group that has either `all_write` or `all_security_write`
permissions.

To configure Geoblocking, use the following steps:

1. In CoPilot, go to **Security > ThreatIQ > Geoblocking**.

   A list of the countries you can block and unblock displays. The IPs Observed
   column shows you the number of IP addresses CoPilot observed from each
   country when scanning Netflow records over the last seven days. If you click
   on a country name, you can view recent IP traffic going to or coming from
   that selected country in the time range you specify.

2. In the Status column, toggle the switch to **Blocked** for each country you
   want to block IP traffic.

3. Click **Save**.

   IP traffic coming into and coming from that country will be blocked on each
   Aviatrix gateway.

   > [!NOTE]
   >
   > Each time you toggle the switch for a country to block or unblock, you must
   > click **Save** for your changes to take effect.

## Related Topics

* [Blocking Known Threat IP Traffic using ThreatIQ](https://docs.aviatrix.com/docs/enterprise/10.0/guides/security/threatiq)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.