红联Linux门户
Linux帮助

iptables 规则问题

发布时间:2012-10-24 08:59:19来源:红联作者:qq22049023
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited


centos默认的iptables规则是这个第1条跟第3,第4是什么意思呢,不是接收所以包吗?
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
可是为什么http在这种情况下还是访问不了?
文章评论

共有 3 条评论

  1. yilidannufen 于 2012-11-06 17:02:34发表:

    你这个是http服务器还是客户机??

  2. yuxiaofeng_2011 于 2012-10-26 13:39:48发表:

    学习一下

  3. glsow 于 2012-10-24 11:03:46发表:

    对这个不熟悉