Chinaunix首页 | 论坛 | 博客
  • 博客访问: 222252
  • 博文数量: 253
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 3
  • 用 户 组: 普通用户
  • 注册时间: 2014-09-21 12:29
文章分类

全部博文(253)

文章存档

2014年(253)

我的朋友

分类: LINUX

2014-09-21 13:02:18

操作系统:ubuntu 11.10 / CentOS 6.3


firewall_close.sh:

#!/bin/bash

#centos begin

#check the firewall status 
#/etc/init.d/iptables stutas 

#Temporary closed firewall
#/etc/init.d/iptables stop

#Permanent closed firewall
#chkconfig iptables off

#centos end


#ubuntu begin

#check the firewall status 
ufw status

#Temporary closed firewall
ufw disable

#ubuntu end


exit


firewall_open.sh:

#!/bin/bash

#centos begin

#check the firewall status 
#/etc/init.d/iptables stutas 

#Temporary closed firewall
#/etc/init.d/iptables start

#Permanent closed firewall
#chkconfig iptables on

#centos end


#ubuntu begin

#check the firewall status 
ufw status

#Temporary open firewall
ufw enable


#ubuntu end


exit


阅读(426) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~