iptables的设置

一、filter表防火墙(过滤器)

 

iptables -A ( INPUT OUTPUT ) -s 192.1680.1.200 -p ( TCP UDP ICMP ) -i ( eth0 eth1 )  ( --dport --sport ) 80 -j (ACCEPT DROP)

 

二、nat表防火墙 (地址转换)

iptables -t nat -A PREROUTING ......

 


[root@tp ~]# iptables -F        清除预设表filter中的所有规则链的规则
[root@tp ~]# iptables -X        清除预设表filter中使用者自定链中的规则
 
查看filter表:
[root@tp ~]# iptables -L -n

查看本机关于NAT的设置情况

[root@tp rc.d]# iptables -t nat -L

 

 

 

 

 

 

dd

posted @ 2016-10-03 15:17  航飞冲天  阅读(234)  评论(0编辑  收藏  举报