码迷,mamicode.com
首页 > 其他好文 > 详细

防火墙配置

时间:2015-04-17 17:52:59      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:

[root@bmspay ~]# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.7 on Fri Apr  3 14:16:25 2015
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [97343:15548348]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9107 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9090 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9106 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9102 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9103 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9099 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 6379 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5001 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 1521 -j ACCEPT
-A INPUT -s 192.168.103.0/24 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.103.0/24 -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -s 192.168.103.0/24 -p tcp -m tcp --dport 1521 -j ACCEPT
-A INPUT -s 192.168.104.0/24 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.75.91/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.35.79/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.76.67/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.76.68/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.76.76/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.76.77/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.76.78/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.76.79/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.76.80/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 172.16.44.163/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.131.94/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -s 192.168.50.237/32 -p tcp -m tcp --dport 6022 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-port-unreachable
COMMIT
# Completed on Fri Apr  3 14:16:25 2015
# Generated by iptables-save v1.4.7 on Fri Apr  3 14:16:25 2015
*nat
:PREROUTING ACCEPT [74522:40425345]
:POSTROUTING ACCEPT [5792:304986]
:OUTPUT ACCEPT [5792:304986]
COMMIT
# Completed on Fri Apr  3 14:16:25 2015

防火墙配置

标签:

原文地址:http://www.cnblogs.com/lubing666666/p/4435422.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!