* nftables: nf_acct and quota support ?
@ 2016-08-03 14:06 jalvarez
2016-08-10 12:34 ` Pablo Neira Ayuso
0 siblings, 1 reply; 4+ messages in thread
From: jalvarez @ 2016-08-03 14:06 UTC (permalink / raw)
To: netfilter
Hi,
I am currently trying to add quotas for traffic that matches some
nftables rules.
While looking for a solution I have found the netfiler accounting
infrastructure (nfacct) very interesting.
Problem is I didn't find anything about nfacct in the nftables code.
Is there any nftables support (or planned support) for nfacct ?
If there is not, is it "safe" to use some iptables rules in the FORWARD
chain to trigger the accounting after nftables chains (with a priority <
NF_IP_PRI_FILTER) performed the real packet filtering stuff ?
Thanks a lot :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nftables: nf_acct and quota support ?
2016-08-03 14:06 nftables: nf_acct and quota support ? jalvarez
@ 2016-08-10 12:34 ` Pablo Neira Ayuso
2016-08-10 13:14 ` jalvarez
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2016-08-10 12:34 UTC (permalink / raw)
To: jalvarez; +Cc: netfilter
On Wed, Aug 03, 2016 at 04:06:09PM +0200, jalvarez wrote:
> Hi,
>
> I am currently trying to add quotas for traffic that matches some nftables
> rules.
> While looking for a solution I have found the netfiler accounting
> infrastructure (nfacct) very interesting.
> Problem is I didn't find anything about nfacct in the nftables code.
>
> Is there any nftables support (or planned support) for nfacct ?
I have a patchset that I need to spin over again, but it's coming with
native support for nftables.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nftables: nf_acct and quota support ?
2016-08-10 12:34 ` Pablo Neira Ayuso
@ 2016-08-10 13:14 ` jalvarez
2016-08-10 13:37 ` Pablo Neira Ayuso
0 siblings, 1 reply; 4+ messages in thread
From: jalvarez @ 2016-08-10 13:14 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter
On 10/08/2016 14:34, Pablo Neira Ayuso wrote:
> On Wed, Aug 03, 2016 at 04:06:09PM +0200, jalvarez wrote:
>> Hi,
>>
>> I am currently trying to add quotas for traffic that matches some nftables
>> rules.
>> While looking for a solution I have found the netfiler accounting
>> infrastructure (nfacct) very interesting.
>> Problem is I didn't find anything about nfacct in the nftables code.
>>
>> Is there any nftables support (or planned support) for nfacct ?
> I have a patchset that I need to spin over again, but it's coming with
> native support for nftables.
Ok ! Are you refering to Ana Rey Botello's patchset ?
http://www.spinics.net/lists/netfilter-devel/msg34766.html
I looked very promising ! :)
In the end, do you think the following features could be added in nftables ?
- an expression to increment nfacct counters (maybe reusing the existing
semantic "counter xxx").
- an expression to match if the quota set on the nfacct object is
exceeded. Something like : "counter name xxx overquota".
This could lead to interesting things like starting to drop packets when
a quota is exceeded.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nftables: nf_acct and quota support ?
2016-08-10 13:14 ` jalvarez
@ 2016-08-10 13:37 ` Pablo Neira Ayuso
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2016-08-10 13:37 UTC (permalink / raw)
To: jalvarez; +Cc: netfilter
On Wed, Aug 10, 2016 at 03:14:38PM +0200, jalvarez wrote:
> In the end, do you think the following features could be added in nftables ?
> - an expression to increment nfacct counters (maybe reusing the existing
> semantic "counter xxx").
> - an expression to match if the quota set on the nfacct object is exceeded.
> Something like : "counter name xxx overquota".
>
> This could lead to interesting things like starting to drop packets when a
> quota is exceeded.
Yes, quota support is also included. And similar semantics to nfacct
will be retained.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-10 13:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-03 14:06 nftables: nf_acct and quota support ? jalvarez
2016-08-10 12:34 ` Pablo Neira Ayuso
2016-08-10 13:14 ` jalvarez
2016-08-10 13:37 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.