IPSec over DirectConnect

Hi,

Can someone help understand, as to how we get IPSEC done over DirectConnect Connection?

As I understand, we need Private VIF to connect into VPC (connecting to VGW), and then to have IPSEC over same DirectConnect Connection, we need to have Public VIF connecting to VGW.

How can we have both public and private VIF connecting to same VGW?

Any guidance / pointers, will help!


Related discussions:

/u/neeaws A public VIF doesn’t connect into a VGW (internally)

A public VIF provides access to AWS public space services/IP ranges … SNS/SQS/S3 etc

When you create a VGW and VPN connection, you are allocated a pair of external IP addresses (in the AWS public space networks) which you normally connect to over the internet.

You can connect to these over a public VIF .. meaning your on-premises router can initiate an IPSEC tunnel between it and the public addresses the VGW has, over the public VIF .. in effect its the same architecture as using the internet, only you use the DX as transit to the AWS public space network

So its

On-premrouter → publicVIF → AWS Public zone IPs → VGW

rather than

On-premrouter → internet → AWS Public Zone IPs → VGW

That means you could have private VIFS to a VPC and public VIF + IPSEC tunnel to the VGW attached to the VPC..

You probably wouldn’t want too though. The whole point of public VIF + IPSEC is to get the benefits of direct connect in terms of performance, and the security/encryption provided by IPSEC. If you use a private VIF and PublicVIF + Ipsec.. all the privateVIF gives you is a less secure version.