iptables-1.8.4 版本 -m state模块加载出错

iptables-1.8.4 版本 -m state模块加载出错

问题:

iptables stopped working with “Couldn't load match `state':No such file or directory”

解决办法:


Replace "-m state --state " with "-m conntrack --ctstate"

即:

原有:
-m state --state ESTABLISHED,RELATED

替换为

-m conntrack --ctstate ESTABLISHED,RELATED