开发者社区> 问答> 正文

云主机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 18103 0
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 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载