手机版
你好,游客 登录 注册
背景:
阅读新闻

SUSE Linux 默认的iptables防火墙配置

[日期:2008-04-23] 来源:Linux公社  作者:Linux整理 [字体: ]

SUSE Linux 默认的iptables防火墙配置,你看的懂吗?

Chain INPUT (policy DROP)
target   prot opt source        destination
ACCEPT   all -- anywhere       anywhere
ACCEPT   all -- anywhere       anywhere      state RELATED,ESTAB LISHED
input_ext all -- anywhere       anywhere
input_ext all -- anywhere       anywhere
LOG    all -- anywhere       anywhere      limit: avg 3/min bu rst 5 LOG level warning tcp-options ip-options prefix `SFW2-IN-ILL-TARGET '
DROP    all -- anywhere       anywhere
Chain FORWARD (policy DROP)
target   prot opt source        destination
LOG    all -- anywhere       anywhere      limit: avg 3/min bu rst 5 LOG level warning tcp-options ip-options prefix `SFW2-FWD-ILL-ROUTING '
Chain OUTPUT (policy ACCEPT)
target   prot opt source        destination
ACCEPT   all -- anywhere       anywhere
ACCEPT   all -- anywhere       anywhere      state NEW,RELATED,E STABLISHED
LOG    all -- anywhere       anywhere      limit: avg 3/min bu rst 5 LOG level warning tcp-options ip-options prefix `SFW2-OUT-ERROR '
Chain forward_ext (0 references)
target   prot opt source        destination
Chain input_ext (2 references)
target   prot opt source        destination
DROP    all -- anywhere       anywhere      PKTTYPE = broadcast
ACCEPT   icmp -- anywhere       anywhere      icmp source-quench
ACCEPT   icmp -- anywhere       anywhere      icmp echo-request
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp echo-reply
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp destination-unreachable
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp time-exceeded
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp parameter-problem
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp timestamp-reply
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp address-mask-reply
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp protocol-unreachable
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTAB LISHED icmp redirect
LOG    tcp -- anywhere       anywhere      limit: avg 3/min bu rst 5 tcp dpt:5801 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-op tions prefix `SFW2-INext-ACC-TCP '
ACCEPT   tcp -- anywhere       anywhere      tcp dpt:5801
LOG    tcp -- anywhere       anywhere      limit: avg 3/min bu rst 5 tcp dpt:5901 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-op tions prefix `SFW2-INext-ACC-TCP '
ACCEPT   tcp -- anywhere       anywhere      tcp dpt:5901
LOG    tcp -- anywhere       anywhere      limit: avg 3/min bu rst 5 tcp dpt:ssh flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-opt ions prefix `SFW2-INext-ACC-TCP '
ACCEPT   tcp -- anywhere       anywhere      tcp dpt:ssh
reject_func tcp -- anywhere       anywhere      tcp dpt:ident sta te NEW
LOG    all -- anywhere       anywhere      limit: avg 3/min bu rst 5 PKTTYPE = multicast LOG level warning tcp-options ip-options prefix `SFW2- INext-DROP-DEFLT '
DROP    all -- anywhere       anywhere      PKTTYPE = multicast
LOG    tcp -- anywhere       anywhere      limit: avg 3/min bu rst 5 tcp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options pre fix `SFW2-INext-DROP-DEFLT '
LOG    icmp -- anywhere       anywhere      limit: avg 3/min bu rst 5 LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
LOG    udp -- anywhere       anywhere      limit: avg 3/min bu rst 5 LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
LOG    all -- anywhere       anywhere      limit: avg 3/min bu rst 5 state INVALID LOG level warning tcp-options ip-options prefix `SFW2-INext- DROP-DEFLT-INV '
DROP    all -- anywhere       anywhere
Chain reject_func (1 references)
target   prot opt source        destination
REJECT   tcp -- anywhere       anywhere      reject-with tcp-res et
REJECT   udp -- anywhere       anywhere      reject-with icmp-po rt-unreachable
REJECT   all -- anywhere       anywhere      reject-with icmp-pr oto-unreachable
hugang:~ # iptables -L
Chain INPUT (policy DROP)
target   prot opt source        destination
ACCEPT   all -- anywhere       anywhere
ACCEPT   all -- anywhere       anywhere      state RELATED,ESTABLISHED
input_ext all -- anywhere       anywhere
input_ext all -- anywhere       anywhere
LOG    all -- anywhere       anywhere      limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-IN-ILL-TARGET '
DROP    all -- anywhere       anywhere
Chain FORWARD (policy DROP)
target   prot opt source        destination
LOG    all -- anywhere       anywhere      limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-FWD-ILL-ROUTING '
Chain OUTPUT (policy ACCEPT)
target   prot opt source        destination
ACCEPT   all -- anywhere       anywhere
ACCEPT   all -- anywhere       anywhere      state NEW,RELATED,ESTABLISHED
LOG    all -- anywhere       anywhere      limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-OUT-ERROR '
Chain forward_ext (0 references)
target   prot opt source        destination
Chain input_ext (2 references)
target   prot opt source        destination
DROP    all -- anywhere       anywhere      PKTTYPE = broadcast
ACCEPT   icmp -- anywhere       anywhere      icmp source-quench
ACCEPT   icmp -- anywhere       anywhere      icmp echo-request
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp echo-reply
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp destination-unreachable
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp time-exceeded
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp parameter-problem
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp timestamp-reply
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp address-mask-reply
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp protocol-unreachable
ACCEPT   icmp -- anywhere       anywhere      state RELATED,ESTABLISHED icmp redirect
LOG    tcp -- anywhere       anywhere      limit: avg 3/min burst 5 tcp dpt:5801 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT   tcp -- anywhere       anywhere      tcp dpt:5801
LOG    tcp -- anywhere       anywhere      limit: avg 3/min burst 5 tcp dpt:5901 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT   tcp -- anywhere       anywhere      tcp dpt:5901
LOG    tcp -- anywhere       anywhere      limit: avg 3/min burst 5 tcp dpt:ssh flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT   tcp -- anywhere       anywhere      tcp dpt:ssh
reject_func tcp -- anywhere       anywhere      tcp dpt:ident state NEW
LOG    all -- anywhere       anywhere      limit: avg 3/min burst 5 PKTTYPE = multicast LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
DROP    all -- anywhere       anywhere      PKTTYPE = multicast
LOG    tcp -- anywhere       anywhere      limit: avg 3/min burst 5 tcp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
LOG    icmp -- anywhere       anywhere      limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
LOG    udp -- anywhere       anywhere      limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
LOG    all -- anywhere       anywhere      limit: avg 3/min burst 5 state INVALID LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT-INV '
DROP    all -- anywhere       anywhere
Chain reject_func (1 references)
target   prot opt source        destination
REJECT   tcp -- anywhere       anywhere      reject-with tcp-reset
REJECT   udp -- anywhere       anywhere      reject-with icmp-port-unreachable
REJECT   all -- anywhere       anywhere      reject-with icmp-proto-unreachable

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款