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.

已提问 5 个月前435 查看次数
2 回答
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
已回答 5 个月前
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
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则