Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on forwarding a SQL connection to client #3

Open
GengyiQin opened this issue Oct 21, 2024 · 1 comment
Open

Question on forwarding a SQL connection to client #3

GengyiQin opened this issue Oct 21, 2024 · 1 comment

Comments

@GengyiQin
Copy link

Hi there! I came across your work and want to try to forward a MS SQL connection on an Azure VM to my local machine using your TCP tunnel.
The binding defined on proxy-server side looks like this:
<Binding listenPort="1433" targetHost="127.0.0.2" targetPort="11433" />
And while the gateway (a separate VM with ports open, not setup with SSL/TLS) confirmed the the connection from both client and server authenticated, I cannot connect to the server from my local port.

I previously achieved similar things by using Azure Relay and azbridge (with Azure Relay hub acting as the gateway), so I wonder if I have some misunderstanding about your tool/config that this doesn't work. Please let me know what you think or if more info is needed, any help would be greatly appreciated

@kpreisser
Copy link
Owner

kpreisser commented Oct 24, 2024

Hi @GengyiQin, thanks for opening this issue!

The config of the proxy-server looks good.
Is the MS SQL server on the Azure VM actually listening on an IPv4 address like 0.0.0.0 or 127.0.0.2? (On Windows you can check it with a command like netstat -noa | find ":11433".)

Is the proxy-server instance running on your local machine where you are trying to connect with an SQL client application, and is the proxy-client instance runing on the Azure VM where the SQL Server is running?
Can you show the console output from the gateway and from the proxy-server instances?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants