zoukankan      html  css  js  c++  java
  • iptables之raw表

    防火墙iptables对于系统安装特别重要,我们知道,iptables默认有4个表5个链,表我们一般使用filter、nat表,但是raw(原始表)不怎使用

    举例:

     

    iptables -t raw -A PREROUTING -s 192.168.10.117 -j NOTRACK

    #在raw表的PREROUTING链中添加一个规则,对来自于地址 192.168.10.117的任何包不进行追踪

     

     

    iptables -t raw -D PREROUTING -s 192.168.10.117 -j NOTRACK

    删除该规则

     

     

    其他说明:

    iptables -t nat -L

    #List the nat table 列出nat的规则

    Chain PREROUTING (policy ACCEPT)

    target prot opt source destination

     

     

    Chain POSTROUTING (policy ACCEPT)

    target prot opt source destination

     

    Chain OUTPUT (policy ACCEPT)

    target prot opt source destination

     

    iptables -t nat -F F #flush the nat table

    清空nat的所有规则

  • 相关阅读:
    URLEncode解决url中有特殊字符的问题
    监控系统概览
    SpringBoot 上传文件夹
    关于postgresql报 ERROR: XXX does not exist
    postgresql学习
    git学习
    学习博客
    面试准备
    jvm
    线程池面试题
  • 原文地址:https://www.cnblogs.com/gdlinux/p/6797292.html
Copyright © 2011-2022 走看看