Not able to connect to AWS RDS with OpenVPN IP

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
thedog
OpenVpn Newbie
Posts: 1
Joined: Thu Dec 21, 2023 8:28 am

Not able to connect to AWS RDS with OpenVPN IP

Post by thedog » Thu Dec 21, 2023 8:32 am

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!

cernhowl
OpenVpn Newbie
Posts: 1
Joined: Thu Dec 28, 2023 11:11 am

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

Post by cernhowl » Thu Dec 28, 2023 11:16 am

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.

Post Reply