Score:0

Nginx proxy forward to Azure Analysis Service

uz flag

Problem:

From on-premises computers I need to be able to login to Azure Analysis Service. Since AAS is publically available my split-tunnel VPN configured in on-prem computer forwards the request to AAS through the internet. At the AAS firewall we only allow connection from internal IPs and if the request is forwarded through the internet, the public IP address of our on-prem computers is offered and blocked at the firewall.

Solution idea:

We put a proxy forwarder inside our VNET. This proxy Nginx forwarder forwards all TCP traffic to AAS. This forwarding works, but I keep hitting this error message:

enter image description here

Here is my nginx.conf:

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
        worker_connections 768;
        # multi_accept on;
}

stream {

        server  {
                listen 3389;
                proxy_pass 10.194.32.229:3389;
        }
        server {
        listen 2382 ssl ;
        ssl_certificate  wilcard-dev-2023.crt;
        ssl_certificate_key  wilcard-dev-2023.key;
        ssl_password_file ssl-passwort;
        proxy_ssl on;
        proxy_pass aspaaseastus2.asazure.windows.net:2382;
        }

        server {
        listen 2383 ssl;
        ssl_certificate  wilcard-dev-2023.crt;
        ssl_certificate_key  wilcard-dev-2023.key;
        ssl_password_file ssl-passwort;
        proxy_ssl on;
        proxy_pass aspaaseastus2.asazure.windows.net:2383;
        }

        server  {
        listen 4430 ssl;
        proxy_ssl on;
        ssl_certificate  wilcard-dev-2023.crt;
        ssl_certificate_key  wilcard-dev-2023.key;
        ssl_password_file ssl-passwort;
        proxy_pass aspaaseastus2.asazure.windows.net:443;
        }

       server {
       listen 80 ;
       proxy_pass aspaaseastus2.asazure.windows.net:80;
       }

}

http {
... }

In the config file above, you can see that I have (successfully) added a pass-through proxy for RDP connection to a computer in the VNET)

Here is the solution idea in a diagram:

enter image description here

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.