Hello, On Fri, 2014-01-03 at 03:52 +0330, Mehran Kholdi wrote: > So, I've got my code in userland (using netfilter_queue) that tries to > handle packets according to different attributes (sort of a firewall). > Is it possible to get the pid of sender program? > I'm aware that it is possible to apply pid-based rules with iptables > directly, but how could I access that property in the NFQUEUE? You can't for now. Patches to access to UID GID have been made available recently: http://www.spinics.net/lists/netfilter-devel/msg29355.html I don't think it should be too complex to propose the same for PID. BR, -- Eric Leblond <eric@xxxxxxxxx> Blog: https://home.regit.org/ -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html