问题原文
原帖链接 · tomsk · CC BY-SA 3.0
I would like to ask you what is performance of iptables.
Let's say that I whitelist and blacklist some IP addresses, I block about 10 000+ IP addresses, so every IP is like new rule.
I don't know how fast it is, because let's say that someone DDoS me width bandwidth of some Gbps, can iptables handle it?
CPU: 1 core of Intel ® Xeon® E5-2650L v4
And is possible to make iptables faster? For example that I would "bundle" all these IP addresses into 1 rule.
已采纳解答
原帖链接 · Cristian Matthias Ambæk · CC BY-SA 3.0
DDoS me width bandwidth of some Gbps, can iptables handle it?
Iptables can handle anything aslong as you give it enough resources to work with, and it will probably outlast your physical connection anyway.
is possible to make iptables faster? For example that I would "bundle" all these IP addresses into 1 rule.
This is called address summarization, and yes you can do that.
Iptables is very effective, if you would like to test this i would probably advice allowing everything, put the machine on a private network and setup a loader. What is system process load at 1 Gbp/s? what is it a 2, 3, 4 and so on? And from their get an idea of what Iptables can and cannot.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
