开发者社区 问答 正文

云主机centos写iptables出现“iptablesIndexofinsertiontoobig.”


[root@broker ~]# iptables -I INPUT 4 -m tcp -p tcp --dport 35531:65535 -m state --state NEW -j ACCEPT
iptables: Index of insertion too big.




what's wrong with centos

展开
收起
roise 2014-10-20 09:46:31 18533 分享 版权
1 条回答
写回答
取消 提交回答
  • 把4改为1 ,如果还报错直接去掉 INPUT后的数字 iptables -I INPUT 1 -m tcp -p tcp --dport 35531:65535 -m state --state NEW -j ACCEPT

    2020-04-14 22:55:34
    赞同 1 展开评论