I use the following code to capture tcp inbound and outbound packets on ports:
tcpdump -i any -s 0 -vvv -A port 3727 or port 5016 or port 3724 -w /home/admin/dump1.cap
But tcpdump only captures incoming packets, I need incoming and outgoing packets at the same time. Does anyone know where my mistake is?
Thanks in advance.
source
share