How to route TCP traffic through a fixed IP in Azure during local development?

dough_boat 11 Reputation points
2023-12-18T15:06:20.6033333+00:00

Hello community,

I'm working through a challenge related to accessing a third-party OPC UA server and am considering a solution using Azure's cloud infrastructure.

Background

  • Our team needs consistent access to a third-party OPC UA server. My understanding is that this server utilizes TCP for communication.
  • The dynamic IP addresses of our local development machines are causing access issues due to the third-party's firewall restrictions. In short: the firewall can only allow some IP addresses that we tell them, but we cannot ask them every couple of days to change them.

Previous Attempts

Objective

  • Our goal is to configure our network so that all outbound requests from our local development machines consistently appear to originate from one static IP address. This single IP would then be whitelisted by the third-party firewall.
    • To be clear, this is just about making the development process easier, because then we can debug from our own machines in our IDEs. Later, in production, the VM runs behind a fixed public IP address.

Specific Questions

  • Does Azure offer a capability to route our TCP traffic, making it appear to come from a fixed IP? If so, I would greatly appreciate specific guidance or links to relevant Azure documentation.
  • I am also open to non-Azure solutions. Are there tools or approaches specifically tailored for handling TCP traffic in scenarios like ours? Any recommendations would be highly valuable.

Thank you for your time and assistance!

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,798 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,777 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Luis Arias 8,621 Reputation points Volunteer Moderator
    2023-12-18T19:09:14.48+00:00

    Hi dough_boat,

    I understood you are looking for a way to whitelist your Azure VM on this 3rd party service. I think there are some services that you can test, but It will also depend on how this external service is dealing with the traffic :

    These options will depend on how this 3rd party service whitelist the communication for TCP traffic. Besides that consideration and because It is a development environment I recommend you start with Nat Gateway for a quick win.

    Cheers,

    Luis


    If the information helped address your question, please Accept the answer.


  2. dough_boat 11 Reputation points
    2024-01-02T15:02:33.07+00:00

    I solved it now by giving myself SSH access to the VM, then using the "Remote Debugging" functionality of Rider. Not optimal, but everything else was too much effort. But thanks for your input, I'll keep it in mind if this topic pops up again.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.