iptables 入门

1.iptables中的表

iptables 中的表包括:filter、nat、mangle,在iptables中如果不使用-t 参数指定表名时默认使用filter表

filter表用于过滤数据报

nat表用于做网络地址转换

mangle表用于修改数据报,mangle用的比较少,没有太关注

2. 表中使用到的链

filter表中用到的链有:input、output、forward

nat表中用到的链有:input、output、prerouting、postrouting

3. iptables命令的规则

iptables [–t table] command [match] [target]

4. 用iptables实现局域网计算机上网

你可能感兴趣的:(入门,iptables,局域网)