首页 > 其他 > 详细

iptables之raw表

时间:2017-05-02 17:51:29      阅读:1153      评论:0      收藏:0      [点我收藏+]

防火墙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的所有规则

iptables之raw表

原文:http://www.cnblogs.com/gdlinux/p/6797292.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!