Skip to main content
This topic describes how to edit and configure a Megaport NAT Gateway (NAT Gateway). Before you begin, you need to create a NAT Gateway, as described in Creating a NAT Gateway. After a NAT Gateway is deployed, you can change its configuration on the Configuration tab of the NAT Gateway details page. The rate limit and session count are fixed for the duration of the service.
You can add your NAT Gateway to your Megaport Marketplace profile. For more information about how to make your service visible to the Megaport Marketplace, see Adding services to your profile.
You can edit the NAT Gateway ASN after deployment, but only when there are no VXCs attached. You need to move or remove all VXCs before editing the ASN. For more information, see Moving VXCs.
To edit a NAT Gateway
  1. Log in to the and choose Services.
  2. In the Actions section for the NAT Gateway you want to edit, click Details.
  3. Select the Configuration tab. The sections of the tab are listed on the left. You can edit any field except the rate limit and session count. To change the Megaport Marketplace visibility, update your Megaport Marketplace profile.
  4. In the ASN & BGP section, update these fields as required:
    • AS Number — The ASN of the NAT Gateway. This field is unavailable while VXCs are attached to the NAT Gateway.
    • Initial BGP State — Select whether newly created BGP connections are enabled or shut down by default. Select Enabled (the default) to activate new BGP sessions immediately when you save the configuration. Select Shut Down to place new BGP sessions in a shut-down state when you save the configuration. For example, you might want to select the Shut Down option if you plan to add several BGP sessions across your Virtual Cross Connects (VXCs) but need to complete other router setup before they exchange route information. After you finish configuring your routers, navigate to the relevant BGP sessions and enable them. For more information about overriding the BGP state for an individual connection, see Shutting down a BGP connection.
    Click Save in the ASN & BGP section to apply these changes. Each section of the tab has its own Save button.
  5. Update the other sections of the tab as required:
    • Prefix filter lists — Use the Prefix Filter Lists section to manage the prefix filter lists on this NAT Gateway.
      For more information, see Megaport NAT Gateway BGP Prefix Filtering.
    • Packet filter lists — Use the Packet Filter Lists section to manage the packet filter lists on this NAT Gateway.
      For more information, see Using Packet Filters with NAT Gateway.
    • Resource Tags — You can use resource tags to add your own reference metadata to a Megaport service.
      To add a tag:
      1. Click Add Tags.
      2. Click Add New Tag.
      3. Enter details into the fields:
        • Key — String, maximum length 128 characters. Valid values are a-z 0-9 _ : . / \ -
        • Value — String, maximum length 256 characters. Valid values are a-z A-Z 0-9 _ : . @ / + \ - and spaces
      4. Click Save.
        If you already have resource tags for that service, you can manage them by clicking Manage Tags.
      Never include sensitive information in a resource tag. Sensitive information includes commands that return existing tag definitions and information that will identify a person or company.
  6. (Optional) To change the NAT Gateway name, click (Edit) next to the name at the top of the NAT Gateway details page, update the name, then click Save.
  7. (Optional) To change the service level reference or the contract term, select the Billing tab.
    For more information, see NAT Gateway Pricing and Contract Terms.

Helpful references

Last modified on October 27, 2026