I can see from a tcpdump that an internal linux server is trying to contact an outside computer approximately every 15 min: one udp-packet on port 6881
(bittorrent), that's all.
As this server isn't supposed to contact anyone, I want to find out what evil soul generated this packet, i.e. I need some information about the process (e.g. pid
, file, ...).
Because the timespan is so short, I can't use netstat
or lsof
.
The process is likely to be active about half of a microsecond, then it gets a destination unreachable (port unreachable)
from firewall.
I have ssh access to the machine.
How can I capture network packets per PID? suggests to use the tcpdump
option -k
, however, linux tcpdump
has no such option.