首页 > 其他 > 详细

iptables的设置

时间:2016-10-03 16:46:57      阅读:273      评论:0      收藏:0      [点我收藏+]

一、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

iptables的设置

原文:http://www.cnblogs.com/hanggegege/p/5929158.html

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