Skip to main content
API Version:

Anapaya appliance configuration (nat only)

nat object

Top-level configuration and state for NAT.

dnats object[]

Top-level configuration and state for the destination NAT.

  • Array [
  • addressstring<ip-address>

    The IP address that needs to be translated. This is an exact match on the destination IP of packets received from the IP-in-SCION tunnel.

    descriptionstring

    An optional textual description of the destination NAT configuration.

    destination_addressstring<ip-address>

    The mapped destination IP address. The destination IP of matched packets is replaced by this IP.

    port_mappings object[]

    The list of port mappings for the destination NAT. Mandatory when ingress source NAT is enabled as well.

  • Array [
  • descriptionstring

    An optional textual description of the port mapping configuration.

    destination_portinteger<uint16>

    The mapped destination port. The destination port of matched packets is replaced by this port.

    portinteger<uint16>

    The destination port that needs to be translated. This is an exact match on the destination port of packets received from the IP-in-SCION tunnel.

    protocolstring

    Transmission layer protocol. Supported protocols are (tcp, udp).

  • ]
  • ]
  • snat object

    Top-level configuration and state for the source NAT.

    address_poolstring<ip-prefix>[]

    The list of IP prefixes to use as the source NAT pool.

    excludestring<ip-prefix>[]

    The list of IP prefixes to exclude from the NAT. The number of IP addresses that can be excluded is limited.

    interfacesstring[]

    The list of interfaces to do the NAT. These are typically interfaces connected to the local network

    Config_Nat_Wrapped
    {
    "nat": {
    "dnats": [
    {
    "address": "string",
    "description": "string",
    "destination_address": "string",
    "port_mappings": [
    {
    "description": "string",
    "destination_port": 0,
    "port": 0,
    "protocol": "string"
    }
    ]
    }
    ],
    "snat": {
    "address_pool": [
    "string"
    ],
    "exclude": [
    "string"
    ],
    "interfaces": [
    "string"
    ]
    }
    }
    }