Skip to contentSkip to conversation

xtables/geoip vs ipset

DISCUSSION Mr Dash Four 2 participants 3 messages Dec 9, 2010 – Dec 10, 2010

lore
Share & tools
lore
#0 lore raw

Currently I am employing a large number of ipsets (about 30k+ subnets in total) which hold IP subnets fetched from whatever the latest version of the geoip database I have sourced and compiled.

I am aware that xtables also have the geoip target, though was wandering what the performance is like compared to having the same IP subnets loaded with ipset. Has anyone tested/compared these two matching methods?

I know the performance of iptables when it deals with large number of ip addresses is absolutely abysmal, so never tried to use the geoip target, so just wanted to see if that has changed?

#1 lore raw
Quoted 4 lines · Mr Dash Four

Currently I am employing a large number of ipsets (about 30k+ subnets in total) which hold IP subnets fetched from whatever the latest version of the geoip database I have sourced and compiled.

Quoted 8 lines

I am aware that xtables also have the geoip target, though was wandering what the performance is like compared to having the same IP subnets loaded with ipset. Has anyone tested/compared these two matching methods?

I know the performance of iptables when it deals with large number of ip addresses is absolutely abysmal, so never tried to use the geoip target, so just wanted to see if that has changed?

The geoip target uses a bisection search, so the US database's 19000-something entries are testable in roughly 15 steps. Since it does not need any extra structures, it only takes as much kernel memory as the .iv0 file on disk.

#2 lore raw
Quoted 4 lines

The geoip target uses a bisection search, so the US database's 19000-something entries are testable in roughly 15 steps. Since it does not need any extra structures, it only takes as much kernel memory as the .iv0 file on disk.

I was much more interested in the performance of xtables/geoip vs ipset rather than how much memory it uses.