Subnet Route table edge associations error

0

Hello,

I'm trying to setup edge association in the subnet route table where I have inbound/outbound traffic to my appliance. I alredy have routes like 0.0.0.0/0 to nat gateway for outbound internet access. and I'm adding edge association to igw, so that inbound traffic from internet can reach to appliance. Is there any documentation about rules for edge association.

Error message: have igw-xxx1234 - Route table contains unsupported route destination. The unsupported route destination is less specific than or non-overlapping with VPC local CIDR.

feita há 5 meses436 visualizações
2 Respostas
0

You cannot associate a route table with a gateway if any of the following applies:

  • The route table contains existing routes to CIDR blocks outside of the ranges in your VPC.

Additionally,

  • You cannot add routes to any CIDR blocks outside of the ranges in your VPC, including ranges larger than the individual VPC CIDR blocks.
  • You can only specify local, a Gateway Load Balancer endpoint, or a network interface as a target. You cannot specify any other types of targets, including individual host IP addresses.
  • When you route traffic through a middlebox appliance, the return traffic from the destination subnet must be routed through the same appliance. Asymmetric routing is not supported.

Say:

  • VPC: 10.0.0.0/16
  • Protected Subnet: 10.0.0.0/24 [ NAT GW subnet would be Protected subnet, if you are using NAT]
  • MiddleBox Appliance: eni-xxxxx

Gateway route table routes must be:

DestinationTarget
10.0.0.0/24eni-xxxxx

 

  • Forward : IGW >> Appliance AZ_A >> NAT GW >> EC2
  • Reverse : EC2 >> NAT GW >> Appliance AZ_A >> IGW

Reference:

[1] https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html#gateway-route-table-rules

profile picture
bijay_k
respondido há 5 meses
0

Hello @Himanshu,

if you implementation is Like EC2 >> Nat gateway >> Appliance >> IGW, So you need to associate Routing table with the IGW is a route like :

DestinationTarget IP
NATGATEWAY SubnetAppliance IP
AWS
Shmosa
respondido há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas

Conteúdo relevante