Tunnel from Office to Internet through AWS VPC

二次信任 提交于 2019-12-11 04:38:40

问题


I gonna create a secure tunnel from my Office (Static IP) to AWS VPC and then Internet Gateway. I have a VPC, private and public subnets. Office connects to private subnet via VPN tunnel.

How can i route all private (VPN) traffic to public and Internet gateway?

Office <--VPN--> Private subnet <--> Public subnet <--InternetGateway--> Internet

If this is not a good solution, what's the best practice for having a dedicated, simple and secure tunnel from Office to Internet?


回答1:


This is not possible.

Your office VPN connection routes traffic to the Amazon VPC. The target address range should be within the CIDR range of the VPC.

There is no capability for the VPC to 'forward' your traffic through the Internet Gateway.

Traffic originating from the VPC will use the associated Route Table to direct traffic to a NAT or the Internet Gateway, but this is not available via a VPN connection.



来源:https://stackoverflow.com/questions/44480733/tunnel-from-office-to-internet-through-aws-vpc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!