How to connect to outside world from amazon vpc?

后端 未结 11 1207
甜味超标
甜味超标 2020-12-22 15:38

I have amazon VPC set through wizard as \"public only network\", so all my instances are in public subnet.

Instances within VPC that have Elastic IP assigned connect

11条回答
  •  不知归路
    2020-12-22 16:16

    Or create a NAT Instance within the public VPC and add a static route to that NAT instance

    route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.0.5 eth0

    where 10.0.0.5 is your nat instance, just make sure your the security group which contains the NAT instance can accept internal traffic from the boxes you require internet access

提交回复
热议问题