I'm trying to process all server connections using tcpdump using python and it was working very well using this command:
tcpdump -tttt -nn 'tcp[tcpflags] & tcp-syn == tcp-syn'
Here is what it captures:
Here is what it doesn't:
So I'm getting all traffic from the outside in and inside out, but nothing that is happening withing the machine.
I think I got some of the flags wrong, but I'm not sure what. Any ideas? I'm simply trying to monitor server connection activity inside a machine, but only getting a log when it's external.
Use -i any
to capture data of all interfaces, including loopback ("localhost to localhost")