sudo apt update sudo apt install tcpdump
windump -i 2 port 80 # HTTP windump -i 2 port 443 # HTTPS windump -i 2 port 53 # DNS
You can also use tcpdump with other tools like Wireshark for more advanced analysis.