Skip to content

Commit 26da672

Browse files
authored
Update istio.md
1 parent 5874a53 commit 26da672

File tree

1 file changed

+4
-1
lines changed
  • securing-application-communication-with-istio

1 file changed

+4
-1
lines changed

securing-application-communication-with-istio/istio.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ eth0 Link encap:Ethernet HWaddr 16:a0:0d:08:ca:09
311311
So my ip address is `10.244.0.9`
312312
Now we know the port for the traffic we want to capture is `9080` from the curl above.
313313
So tcpdump command will be
314-
`sudo tcpdump -vvv -A -i eth0 '((dst port 9080) and (net 10.244.0.9))'`
314+
```
315+
IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)
316+
sudo tcpdump -vvv -A -i eth0 '((dst port 9080) and (net $IP))'
317+
```
315318

316319
### Minikube and Azure
317320

0 commit comments

Comments
 (0)