Page 1 of 1

Not able to connect to AWS RDS with OpenVPN IP

Posted: Thu Dec 21, 2023 8:32 am
by thedog
Hello,

We are using OpenVPN self hosted server in AWS as EC2 instance . We attached a elastic IP address to the VPN server and once we are activating the OpenVPN Ip -> We are able to SSH to our EC2 servers with the special elastic IP address added to Security group.

But, When we are trying to connect to AWS RDS with the elastic IP address of the OpenVPN server, we are not able to connect. The RDS is public accessible, but it's protected with Security group.

How to fix it? Please help!

Re: Not able to connect to AWS RDS with OpenVPN IP

Posted: Thu Dec 28, 2023 11:16 am
by cernhowl
It sounds like there might be an issue with the security group configurations for your RDS instance. Here are some steps to troubleshoot and resolve the issue:
1. Security Group Rules for RDS:
Make sure that the security group associated with your RDS instance allows incoming connections from the OpenVPN server. You need to add an inbound rule for the OpenVPN server's elastic IP address and port.
2. Check RDS Connectivity:
Verify that the RDS instance is accessible directly (without going through the VPN) using the RDS endpoint and credentials. Ensure that the RDS security group allows traffic from your local machine.
3. Check OpenVPN Routing and Configuration:
Verify the OpenVPN server's routing configuration to ensure that it routes traffic correctly. The OpenVPN server should be configured to forward traffic from VPN clients to the RDS subnet.