美文网首页
linux.network.firewall

linux.network.firewall

作者: 余带盐 | 来源:发表于2018-12-26 17:45 被阅读0次
  1. 概念

in-interface:
数据包从哪个网络接口(网卡)进入
out-interface:
数据包从哪个网络接口输出
protocol:
协议类型
source:源地址
desctination:目的地址
sport:源端口号
dport:目的端口号

  1. 使用:
    iptables -A INPUT -i eth0 -p icmp -j Accept
    允许从eth0接口进入的protocolICMP的数据包

相关文章

  • linux.network.firewall

    概念 in-interface:数据包从哪个网络接口(网卡)进入out-interface:数据包从哪个网络接口输...

网友评论

      本文标题:linux.network.firewall

      本文链接:https://www.haomeiwen.com/subject/kgvaxftx.html