Reputation: 166
I'm using a AWS EC2 instances on VPC with an Internet Gateway and I need to connect my companies network which only accept connections from specific IP addresses(Firewall). The Outbound Traffic of my IP Address is the Internet gateway's IP Address. I have tried using a NAT Gateway, but the NAT Gateway Still uses an Internet Gateway.Is it possible to have Elastic IP for all outgoing traffic on AWS?
Upvotes: 11
Views: 18206
Reputation: 2991
If you have as a destination a set of static IP addresses (the ones of your company), I solved the same by doing the following (based on this post):
This way you can route any request to your company IPs through the NAT Gateway. All other requests are routed through the default Internet Gateway.
Upvotes: 9