Date: Fri, 26 Jun 2020 14:56:46 +0300 From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= <ozkan.kirik@gmail.com> To: freebsd-pf@freebsd.org Subject: pf - state counter tracking like pfsync Message-ID: <CAAcX-AFzvUMGpqf7joXgTV-gx9QLm8EEwS%2BfPhfYVjC5pqgpgA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, My goal is save pkt/byte counters of each expired/killed/closed states into a txt file. What is the right way to do this in userspace ? Is it possible to do something with ioctl & poll ? Alternatively is it possible to create multiple pfsync interfaces, first one for real purpose to send state changes to slave host, the second one for sending this log collect process lo1? Following lines prevents cloning second pfsync interface: /usr/src/sys/netpfil/pf/if_pfsync.c on line 331 (pfsync_clone_create function) if (unit != 0) return (EINVAL); If I remove these lines, do I hit any error ? Best regards, Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAcX-AFzvUMGpqf7joXgTV-gx9QLm8EEwS%2BfPhfYVjC5pqgpgA>