Re: Banning IP addresses with extended timeout

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

 



On 06/04/2019 22:13, Florian Westphal wrote:
> Should work:
> 
> table inet filter {
> 	set test {
> 		type ipv4_addr
> 		size 65535
> 		timeout 1h
> 	}
> 
> 	chain input {
> 		type filter hook input priority filter; policy accept;
> 		ip saddr @test update @test { ip saddr timeout 1d } drop
> 		meta iif not "lo" tcp dport { 25, 80, 443 } add @test { ip saddr } drop
> 	}
> }
> 

I had to use *!=* instead of *not* . Other than 
that it works nice.

Attachment: signature.asc
Description: OpenPGP digital signature


[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