Skip to content

Commit

Permalink
修改防火墙相关
Browse files Browse the repository at this point in the history
  • Loading branch information
91yun committed May 2, 2016
1 parent b543c80 commit f0f1c74
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vpn_centos_pptpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ function installVPN(){
elif [ "$ver1" == "7" ]; then
rpm -Uvh http://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#centos7要安装iptables把默认防火墙关了。
yum install iptables-services -y
yum install policycoreutils -y
systemctl stop firewalld
systemctl mask firewalld
systemctl stop firewalld.service
systemctl disable firewalld.service
yum install iptables-services -y
#centos7需要加这个权限,否则不会开机自动执行
chmod +x /etc/rc.d/rc.local
fi
Expand Down

0 comments on commit f0f1c74

Please sign in to comment.