How to run a script with multiple commands in linux VM

Ananya Sarkar 311 Reputation points
2021-01-04T16:58:06.56+00:00

I have an azure Linux VM which is behind a firewall and I want to generate outbound traffics automatically by running a script, so it will generate SNAT port utilization metrics of the Firewall. Is it possible in Azure and how?

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
600 questions
0 comments No comments
{count} votes

Accepted answer
  1. suvasara-MSFT 10,026 Reputation points
    2021-01-05T12:03:33.777+00:00

    @Ananya Sarkar If you are looking for actual workload for your setup then go with this integration,

    Integrate Azure Firewall with Azure Standard Load Balancer

    To generate more traffic, you can use "CURL" call to LB PIP.

    1.Open multiple terminals and log on to an Azure VM.

    for ((;;)); do curl -s x.x.219.91?[1-100];done  
    for in in {1..100000}; do curl -s x.x.219.91?[1..100]; done  
    

    2.Do CURL or telnet to LB PIP which must be added as a destination In Firewall network rule.

    for ((;;)); do echo quit| telnet x.x.219.91 33893;done  
    

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


0 additional answers

Sort by: Most helpful