Skip to contentSkip to conversation

iplimit issues

DISCUSSION Ury N. Stankevich 2 participants 2 messages Nov 20, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

hi list

i have question about iplimit module. as i understand it storing all sessions.. but conntrack also do that.

i think we can use conntrack capabilities to store sessions and extent ipt_state.c to take in account number of sessions. but i see one problem:
current hash_conntrack implementation use src.u.all field..
so to count all connection from ip addressess range we need walk over all ip_conntrack_hash .. this can be quite long i think..

have anyone experiments with this approach ?
maybe we can simply change hash_conntrack to use only src_ip:dst_ip:protocol as hash key ?