Hello,
I am attempting to build a small network on AWS for a college project. Project’s specification requires me to create a site-to-site VPN to my network. Following the guide at https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-getting-started.html?fbclid=IwAR2xnCFFyzCZNLoCdpPYP7MOwuugjoSd1G6loeeUPpBpoDKYpO_WTMdTe4w#cvpn-getting-started-config I created a VPN client endpoint assigning IP addresses from 10.0.0.0/22 range and crafted a *.ovpn* file for that endpoint. I tested the connection with the endpoint and it works fine - my Linux laptop gets assigned a *tun0* interface with an address within the aforementioned range. Next, I added a security rule, allowing to connect to instances inside that AWS subnet via SSH (TCP port 22) only from the address range of 10.0.0.0/22. However, it turned out that I cannot connect to my instance, even though I am connected to my VPN ednpoint.
Can someone guide me what could have went wrong? I am completely new to the AWS and never felt particularly proficient with routing stuff in general, so any help is greatly appreciated. I tried following the guide at https://aws.amazon.com/premiumsupport/knowledge-center/vpn-tunnel-troubleshooting/ but it didn’t really help me pinpoint the issue.