locked
Questions about NAT rules RRS feed

  • Question

  • https://azure.microsoft.com/en-us/documentation/articles/load-balancer-get-started-internet-arm-ps/

    From the article above, we know that there are two web servers, however we created the NAT rule below, so my question is if there is a request on port 3441 on load balancer , it would forward the request to which web server on port 3389? web1 or web2? As the following command doesn't specify the web server name. so how do we known the request would be forward to which web servers?

    “a NAT rule to translate all incoming traffic on port 3441 to port 3389

    $inboundNATRule1= New-AzureRmLoadBalancerInboundNatRuleConfig -Name RDP1 -FrontendIpConfiguration $frontendIP -Protocol TCP -FrontendPort 3441 -BackendPort 3389”




    • Edited by Jacky_shen Monday, May 23, 2016 1:17 PM
    Monday, May 23, 2016 1:13 PM

Answers

  • Hi Jacky,

    In the document if you check the following portions it might explain it better:
    Create a NIC named lb-nic1-be, and associate it with the first NAT rule, and the first (and only) back end address pool.
    Here, NIC1 is associated with NATRule1 and backend address pool.
    Check the NICs.
    Use the Add-AzureRmVMNetworkInterface cmdlet to assign the NICs to different VMs.

    In this case the NAT rules are assigned to a particular NIC, and the NIC is assigned to a particular VM, so if you are using NAT rule 1, the traffic would be routed to Web 1.

    Regards,
    Malar.

    • Marked as answer by Jacky_shen Monday, June 6, 2016 8:01 AM
    Tuesday, May 24, 2016 8:38 AM