Re: meter directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 28/09/2020 18.21, Pablo Neira Ayuso wrote:

> On Mon, Sep 28, 2020 at 06:12:21PM +0200, Devin Bayer wrote:

>>

>> How do I get the behavior like in the wiki, which uses maps?

>

> What example are you referring to?


https://wiki.nftables.org/wiki-nftables/index.php/Meters



% nft list map my_filter_table my_ssh_meter

table ip my_filter_table {

	map my_ssh_meter {

		type ipv4_addr . inet_service

                size 65535

		flags dynamic,timeout

elements = { 64.62.190.36 . 55000 expires 38s : counter packets 2 bytes 220, 83.98.201.47 . 35460 expires 39s : counter packets 10 bytes 5988, 172.217.7.142 . 43254 expires 46s : counter packets 1 bytes 98}

	}

}






[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux