Score:0

How to access the VPS inside the VPC via vpn server

ca flag

Cloud provider: Digital Ocean

I want to hide my data storage server in private but connect it via a VPN server(OpenVPN) for development purposes.

Let's say there are two VPS inside the same VPC.

General Server: private IP: 10.130.0.2

Data Storage: (let's say there is a MySQL and expose port as 3306) private IP: 10.130.0.3

I've setup the VPC server on General server and it works fine on my local machine as a VPN client. then how can I connect to the data storage server through the vpn server?

I can accept both connect to the MySQL on the data storage server by 10.130.0.3:3306 or a fake domain like mysql.example.com:3306. What is the easier way to achieve the goal?

djdomi avatar
za flag
if i understood the problem, you are looking for a site to site vpn, that connects both sites like being in the same lan
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.