Bruce Asked: 2013-02-17 12:05:33 +0800 CST2013-02-17 12:05:33 +0800 CST 2013-02-17 12:05:33 +0800 CST iptables 可以支持多少条规则? 772 最近有人问我这个,我没有回答。我知道这是一个开放式问题,但是您可以在表/链中安装的规则数量是否有限制?如果是这样,我怎样才能找到它?我想它会因机器而异。 iptables 2 个回答 Voted Best Answer R. S. 2013-02-17T12:10:44+08:002013-02-17T12:10:44+08:00 引用自Jan Engelhardt The theoretical upper limit of maximum number of rules for a 32-bit environment would be somewhere around 38 million, but you could also construct a rule that is so crowded with matches that even it won't fit, so the lower limit of max rules is 0. http://www.spinics.net/lists/netfilter/msg51895.html Lucas Kauffman 2013-02-17T12:09:49+08:002013-02-17T12:09:49+08:00 根据linuxquestions.org,在 32 位机器上,IPTables 将支持大约 25,000 条规则。超过这个数,尤其是从 27,000 开始,事情就开始变得不稳定了。
引用自
Jan Engelhardt
http://www.spinics.net/lists/netfilter/msg51895.html
根据linuxquestions.org,在 32 位机器上,IPTables 将支持大约 25,000 条规则。超过这个数,尤其是从 27,000 开始,事情就开始变得不稳定了。