> ## 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.

# Enabling Local Egress

> On the Security > Egress > Egress VPC/VNets tab you can enable Local Egress on selected Spoke VPC/VNets that do not already have Egress enabled, and that are not attached to a Transit FireNet gateway.

On the Security > Egress > Egress VPC/VNets tab you can enable Local Egress on
selected Spoke VPC/VNets that do not already have Egress enabled, and that are
not attached to a Transit FireNet gateway.

![egress vpc vnets tab](https://mintcdn.com/aviatrix-14b37c43/mOZ0lmP7pRPIryx3/images/guides/security/egress/egress-vpc-vnets-tab.png?fit=max\&auto=format\&n=mOZ0lmP7pRPIryx3\&q=85\&s=75211d6ec21b1e1655fcac489ac48cd9)

The following occurs when you add Local Egress on a VPC/VNet:

* The default route on the VPC/VNet changes to point to the Spoke Gateway.
* SNAT is enabled.

If a WebGroup is already configured on a VPC/VNet, make sure its instances meet
at least the following instance size before enabling Local Egress:

* VPC (AWS): t3.medium
* VNet (Azure): Standard\_B2ms

Ensure that additional CPU resources are created on the Spoke gateway to support
Local Egress.

> [!NOTE]
>
> Controller 8.0 and the enablement of the DCF feature are required to enable
> Local Egress as described below. If neither of these is present, you click the
> *Local Egress on VPC/VNets* button on the Egress VPC/VNets tab and then select
> the VPC/VNets.

To enable Local Egress:

1. Ensure that you have deployed a Spoke gateway in the VPC/VNet that you want
   to enable Local Egress on. If you have not done this, see
   [Deploying a Spoke Gateway in a VPC/VNet for Secure Egress](https://legacy.docs.aviatrix.com/documentation/latest/security/egress-deploy-spoke-gateway.html).

2. On the Security > Egress > Egress VPC/VNets tab, do one of the following:

   * Select one or more VPC/VNets and then select *Enable Local Egress* from the
     Actions menu.
   * Click the vertical ellipsis next to a VPC/VNet and select *Enable Local
     Egress*.

   The Enable Local Egress on VPC (VNets) dialog displays.

   ![300](https://mintcdn.com/aviatrix-14b37c43/mOZ0lmP7pRPIryx3/images/guides/security/egress/local-egress.png?fit=max\&auto=format\&n=mOZ0lmP7pRPIryx3\&q=85\&s=192b9c9acd806e62f1066102387e873c)

3. Click *Enable* to acknowledge that enabling local egress changes the default
   route and enables SNAT.

After enabling local egress, the status of the VPC/VNet changes from No Egress
to Unprotected.

> [!NOTE]
>
> If you select a VPC/VNet that is part of a Transit Egress, enabling Local Egress
> overrides the Transit Egress. You cannot enable egress on Global VPCs because
> SNAT is not currently supported for Global VPCs.

## Disabling Local Egress

The following occurs when you disable Local Egress:

* SNAT is disabled
* Default route is reset to Transit Egress (if the Spoke gateway is attached to
  a Transit FireNet that has Egress enabled) or Native Cloud Egress
* VPC/VNets are removed from Monitored and Protected SmartGroups
* (in Controller 8.0) The status of the VPC/VNet changes back to No Egress after
  the hourly reconciliation of the Egress status

To disable Local Egress on a Spoke gateway:

1. On the Security > Egress > Egress VPC/VNets tab, do one of the following:

   * Select one or more VPC/VNets and then select *Disable Local Egress* from
     the Actions menu.
   * Click the vertical ellipsis next to a VPC/VNet and select *Disable Local
     Egress*.

   The Disable Local Egress on VPC (VNets) dialog displays.

2. In the Disable Egress on VPC/VNet dialog, select the *I understand that
   \<vpc/vnet name> may no longer be able to reach the Internet* checkbox.

3. Click *Disable*.

## Related Topics

* [Monitoring Egress Traffic](https://docs.aviatrix.com/docs/enterprise/8.2/guides/security/egress/egress-monitor-vpc-vnets.md)
* [Egress Traffic Overview](https://legacy.docs.aviatrix.com/documentation/latest/security/egress-traffic-overview.html?expand=true)


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