Score:0

Create SSH tunnel and route MySQL traffic through using NGINX reverse proxy

fj flag

My company's goal is to route MySQL traffic through an SSH tunnel, but using a reverse proxy through NGINX. We created a Linux box in our Azure environment, but are struggling to complete the process.

I was going to open an SSH tunnel locally, and then route the reverse proxy to the local ssh tunnel address, however I am not sure that will work...

Thoughts?

cn flag
Why do you need nginx? SSH port forwarding/tunneling should handle everything.
jp flag
How stable are you expecting this to be? Surely you are not using it for backend connections in production?
Sam Taber avatar
fj flag
@EsaJokinen Unfortunately, we were planning on using it in production to connect to our cloud based SQL server for Magento. We figured running a cronjob to close and reopen the tunnel every evening would stabilize the tunnel enough.
I sit in a Tesla and translated this thread with Ai:

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.