Skip to contentSkip to conversation

Logging process ID

DISCUSSION John Lange 2 participants 2 messages Jul 16, 2005 netfilter

lore
Share & tools
lore

John Lange

author
#0 lore raw

Does iptables have the ability (or is there a patch available) to log the process id that generated a packet that was blocked? Obviously we are talking about internally generated packets only. This would be similar to --log-uid.

Google and a quick look through patch-o-matic didn't turn up anything.

This would probably be easy to add wouldn't it?

Signature · 3 lines
John Lange
OpenIT ltd. www.Open-IT.ca (204) 885 0872
VoIP, Web services, Linux Consulting, Server Co-Location
#1 lore raw
Quoted 9 lines

Does iptables have the ability (or is there a patch available) to log the process id that generated a packet that was blocked? Obviously we are talking about internally generated packets only. This would be similar to --log-uid.

Google and a quick look through patch-o-matic didn't turn up anything.

This would probably be easy to add wouldn't it?

This was just recently discussed on nf or nf-dev mailing list (matching a process's pid).
Problem is the bh locking on SMP, as usual :)

Jan Engelhardt