Logging packet owner
Hi folks, I browsed the last 7 months of archives and didn't see this question addressed.
Are there plans to allow logging the packet owner? For example, I get rogue DNS requests eminating from my workstation and I'd like to know which process is doing this.
And for that matter, is there a place on the netfilter.org website that lists the completed and upcoming features?
Thanks,
jlg
Quoted 6 lines · John E. Leon Guerrero
Hi folks, I browsed the last 7 months of archives and didn't see this question addressed.
Are there plans to allow logging the packet owner? For example, I get rogue DNS requests eminating from my workstation and I'd like to know which process is doing this.
you can do full user filtering and activity logging with the nufw project which is based on netfilter :
http://www.nufw.org/
Complete logging of dropped packets will be available on the next release (0.6.1), which is planned to be available on monday (code is in cleaning and testing phase).
BR,
Signature · 2 lines
Eric Leblond Nufw, Now User Filtering Works (http://www.nufw.org)
Try my patch:
It adds uid and gid (if applicable) of the socket that sent the packet. It will show you who is sending whcih packets.
It would be easy to add the information about the process that handles that packet (if applicable)
http://www.soltysiak.com/linux/LOG-ids.patch
Regards,
Maciej
hi eric, thanks for pointing out that project. it's a little much for my immediate needs, but i do see it's usefulness in a larger context :)
for those would be interested in what i did in the meantime, here's my workaround for finding the process that was issuing rogue dns queries:
1. log and allow outgoing DNS packet
2. deny incoming DNS packets
-hopefully the process waits around long enough for a response
3. issue lsof -n -i UDP:53 as soon as the outgoing log message hits
-the -n is important or it can hang waiting for DNS as well :)
4. ps fax is a good idea if it's not obvious what the parent process is
good luck out there,
jlg
Quoted 19 lines · Eric Leblond
Quoted 5 lines · John E. Leon Guerrero
Hi folks, I browsed the last 7 months of archives and didn't see this question addressed.
Are there plans to allow logging the packet owner? For example, I get rogue DNS requests eminating from my workstation and I'd like to know which process is doing this.
you can do full user filtering and activity logging with the nufw project which is based on netfilter :
http://www.nufw.org/Complete logging of dropped packets will be available on the next release (0.6.1), which is planned to be available on monday (code is in cleaning and testing phase).
BR,