lokad-azure-tcp-tunnel


Redirect Tcp Connections in Windows Azure

This extremely simple project is a Tcp Tunnel for hosting in Windows Azure. It demonstrates how to:

  • Bundle non .NET executable in Windows Azure Worker
  • Deal with service endpoints and pass them to the processes
  • Use Cloud settings to configure the internal process

You can configure you worker role to route all incoming requests to the port and address defined in the ServiceConfiguration.cscfg:

<ConfigurationSettings> <Setting name="Host" value="microsoft.com" /> <Setting name="Port" value="80" /> </ConfigurationSettings>

Essentially you can efficiently redirect connections from one IP address/port combination to another. It is useful when operating virtual servers, firewalls and the like. This, for example, will allow you to connect to the firewalled SQL Azure instance from your notebook, while traveling.

You'll just need to configure deployment to use address of your SQL Azure host and port 1433. Then, connect Sql Server Management Console to your-deployed-name.cloudapp.net,1001

Community for this project is located at ask.lokad.com (don't forget to tag your questions with lokad-azure-tcp-tunnel). This project is brought to you by Lokad.com.

Project relies on rinetd to perform the actual routing.

If you like this project, you can also check out:

  • Lokad.CQRS - build scalable web apps and enterprise apps in .NET on Windows Azure.
  • Lokad.Cloud - award-winning .NET O/C mapper (object to cloud) for Windows Azure.
  • Lokad Shared Libraries - patterns and guidance for building .NET applications efficiently.

Project Information

Labels:
Azure TCP Routing Tunnel Lokad Windows .NET CSharp DotNet