We have a ubuntu set up as firewall (basic iptables), the thing is we have a netmask of 255.255.0.0 i.e almost possible 65531 addresses.
Since I want to monitor download traffic per IP, I need to make thousands of rules (I have a script that can do that) but will my server support that number of rules?
configuration:
Dell optiplex 7210
core i3 2.6Ghz
4GB RAM
50GB HD
From here I gather the theoretical limit would be around 38 million on 32 bit systems, so I think 64 bit systems would be much more. But again from the afore mentioned source any thing above
25,000 rules
say27,000
would become a problem.Issues are mainly memory usage on these systems with such a large number of
iptable rules
, it's suggested one can use:ipsets
from here, andgeoip modules
for iptables from here when targeting a countryQuote from a user (pdepartida) here:
So it really depends on your available memory.