About How to take packet capture which including global ip address.

Michiteru Sugitani 70 Reputation points

Hi All,

I need take packet capture which including global ip address of Linux VM.

If I taken capture using tcpdump on Linux VM, source and destination are local address of Linux VM.

I would like to take capture which source and destination are glocal ip address of VM(it mean outside of NAT)

If I use network watcher is it possible this?

Best regards.


Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
160 questions
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 24,086 Reputation points Microsoft Employee

    @Michiteru Sugitani

    Thank you sharing the details here, I am sorry I got confused with your set-up here.

    As per the screenshot shared I can see that the Publc IP is assigned to the VM itself and when you did a Tcpdump the Public IP address is not present and the packet capture shows the private IP instead.
    This is an expected behavior by design, by default in Azure the VM's private IP address will be NATed to Public IP when you are reaching out to the internet as described here.

    Even Network watchers packet capture functionality will not capture the Public IP address in this case. The packet capture will contain private IP addresses of the VM.

    Hope this answers your question. Thank you for your patience here. Please let me know if you have any further questions. Thank you!

    0 comments No comments

0 additional answers

Sort by: Most helpful