ipset bug?

Bill Shirley bshirley at memphis.apirx.biz
Mon Nov 5 03:57:18 UTC 2012


Notice the timeout value is wrong in the ipset created below:

[root at moses bin]# rpm -q ipset
ipset-6.11-1.fc17.x86_64
[root at moses bin]# ipset x HTTPhacker
[root at moses bin]# ipset create HTTPhacker hash:ip timeout 86400
[root at moses bin]# ipset list HTTPhacker
Name: HTTPhacker
Type: hash:ip
Header: family inet hashsize 1024 maxelem 65536 timeout 4294967
Size in memory: 16504
References: 0
Members:
[root at moses bin]# ipset add HTTPhacker 10.0.0.1
[root at moses bin]# ipset add HTTPhacker 10.0.0.2 timeout 3600
[root at moses bin]# ipset list HTTPhacker
Name: HTTPhacker
Type: hash:ip
Header: family inet hashsize 1024 maxelem 65536 timeout 4294967
Size in memory: 16632
References: 0
Members:
10.0.0.2 timeout 4294960
10.0.0.1 timeout 4294953

Have I got the syntax wrong or is this a bug?

Bill



More information about the users mailing list