Pages

Friday, December 29, 2023

Azure Relay Bridge

Azure Relay Bridge is a simple command line tool that allows creating TCP, UDP, HTTP and Unix socket tunnels between any pair of hosts, allowing to traverse NATs and Firewalls without requiring VPNs, only using outbound HTTPS (443) Internet connectivity from either host. Neither of those hosts must be running in Azure; the Azure Relay helps facilitating the connection.

Requirements for this tool - Microsoft Azure Subscription and Azure Relay namespace.


Reference - https://github.com/Azure/azure-relay-bridge


Use-case - If you run a DB server somewhere in your on-premises DC, that you need to reach from a cloud application, azbridge can make that database server securely reachable from the cloud application without you having to make any changes on your on-premises network, so long as azbridge is running on or near the DB server machine can establish an outbound HTTPS/websocket connection to the Azure Relay namespace.

On the DB server (on-premises), the bridge is bound in the reverse, mapping "db" to the local TCP port 16161 as a client connecting to the database with the -T option. All traffic through the bridge is forwarded end-to-end.

More details can be found here - https://github.com/Azure/azure-relay-bridge

Read about - Hostnames and Addresses, multiplexing, HTTP and K8s scenario.

https://learn.microsoft.com/en-us/azure/azure-relay/relay-what-is-it

No comments:

Post a Comment