大网数据广告活动
服务器运维问答

Performance of iptables

· 52CE 我爱测

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…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-04-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。