summaryrefslogtreecommitdiffstats
path: root/tests/py/any/quota.t
Commit message (Collapse)AuthorAgeFilesLines
* src: add quota statementPablo Neira Ayuso2016-08-291-0/+24
This new statement is stateful, so it can be used from flow tables, eg. # nft add rule filter input \ flow table http { ip saddr timeout 60s quota over 50 mbytes } drop This basically sets a quota per source IP address of 50 mbytes after which packets are dropped. Note that the timeout releases the entry if no traffic is seen from this IP after 60 seconds. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>