VPN server in VPC

0

Just a quick question:

Network A <---> DirectConnect <---> VPC1

If I set up an OpenVPN server on EC2 in VPC1, I can't use it to access network A because I can't route the traffic from/to the VPN network through the VPC - is that correct or am I missing something?

Thanks,
Marc

Marc
질문됨 4년 전334회 조회
2개 답변
0
수락된 답변

Hi Marc,

Pat K from the Cohesive Networks team here.

To the best of my understanding you are correct - but you still have some options.

Lets pretend:
VPC - 10.20.20.0/22
Network Across Direct Connect - 192.168.0.0/16
OpenVPN network - 172.16.0.0/24

The direct connect will only route traffic to/from the VPC CIDR to the "across the direct connect" CIDR.
If you try to send packets to the on-premise from 172.16.0.0/24 they get dropped.

If you try to send packets from 192.168.0.0/16 to 172.16.0.0/24 they get dropped.

You will need to run a virtual gateway on the VPC side to some gateway on the other side of the direct connect. Tis gets you "up and over" the AWS VGW restrictions.

You could install strongswan/libreswan IPsec on your OpenVPN instance (if hand rolled and linux) and connect to an IPsec device across the direct connect. You would define a "tunnel" between the two sides of 192.168.0.0/16 - 172.16.0.0/24. Then your on-prem can route to your VPN.

OR if your OpenVPN server is Linux you can use GRE to make a tunnel (layer 2 tunnel) to a router/gateway across the direct connect and both sides set a static route pointing to the GRE tunnel. (note this tunnel is unencrypted)

OR use any of the appliance vendors in the AWS marketplace - depending on how many VPN credentials you need my company's free edition might meet your need.

Happy to explain the "roll your own" further if you need.

Cheers,

Pat K

답변함 4년 전
0

Hi Pat,

yes, I already thought about building a tunnel from the VPN server to an on premise system. I just wanted to make sure I'm not doing something completely stupid because of some oversight :)

Thanks a lot for your reply and for your kind offer!

Cheers,

Marc

Marc
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠