0

I need to capture port 9090 on eth0 and port 8080 on lo (localhost or loopback). Can somebody shows me the tcpdump expression that can do that? I am current using

tcpdump -n -i any port 8080 or port 9090

Thanks,

Sean Nguyen
  • 12,528
  • 22
  • 74
  • 113

1 Answers1

5

tcpdump -n -i any '(host ip of eth0 and 9090) or (host 127.0.0.1 and 8080)'

SlackerATX
  • 66
  • 1