CentOS下iptables的用法
iptables的用法 基本用法: iptables [-t table] [subcommand] chain [rulenum] [options...] [match] [target] iptables [-t 表名] <-A|-I|-D|-R> 链名 [规则编号][-i|o 网卡名称][-p 协议类型][-s 源ip地址][源子网][--sport 源端口号][-d 目标ip地址|目标子网][--dport 目标端口号][-j 处理动作] 详细用法说明: 1)table filter:一般的过滤功能,包含input,forward,output。默认选项 nat:用于地址转换、映射、端口映射等,包含prerouting,postrouting mangle:用于对特定数据包的修改,包含prerouting,output,forward,input,postrouting raw:一般是为了不再让iptables做数据包的连接跟踪处理,从而提供性能,包含prerouting,output 2)subcommand选项 1》链管理 -N :new,...
