[pkg-netfilter-team] Bug#918471: ipset restore fails to restore timeout of each member

Frank Myhr fmyhr at larkmoor.net
Sun Jan 6 11:21:45 GMT 2019


Package: ipset
Version: 6.30-2

$ ipset -f testset.save save testset

$ more testset.save
create testset hash:ip family inet hashsize 1024 maxelem 65536 timeout 
4294967 counters comment
add testset b1.b2.b3.b4 timeout 4253474 packets 1 bytes 40
add testset b5.b6.b7.b8 timeout 4245200 packets 7 bytes 280
...

$ ipset destroy testset

$ ipset -f testset.save restore

$ ipset list testset
...
b1.b2.b3.b4 timeout 4294967 packets 1 bytes 40
b5.b6.b7.b8 timeout 4294967 packets 7 bytes 280
...

Note that testset members and packet & byte counters are restored 
correctly, but each member is assigned the *default* timeout rather than 
the saved timeout.

$ uname -a
Linux mack 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 
GNU/Linux



More information about the pkg-netfilter-team mailing list