Centos 7.2 配置防火墙
来源:互联网 发布:淘宝套现信用卡手续费 编辑:程序博客网 时间:2024/06/10 15:09
CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下
1、直接关闭防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、设置 iptables service
yum -y install iptables-services
如果要修改防火墙配置,如增加防火墙端口3306
vi /etc/sysconfig/iptables
增加规则
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
保存退出后
systemctl restart iptables.service #重启防火墙使配置生效
systemctl enable iptables.service #设置防火墙开机启动
最后重启系统使设置生效即可。
http://m.blog.csdn.net/article/details?id=51339539
0 1
- Centos 7.2 配置防火墙
- Centos 7.2 配置防火墙
- centos 7.2 防火墙配置
- CentOs 7.2 防火墙配置--开启端口
- centos 防火墙配置
- centos 6.2 防火墙配置
- CentOS防火墙配置
- CentOS配置iptables防火墙
- Centos 配置iptables防火墙
- Centos配置iptables防火墙
- CentOS防火墙配置
- Centos 防火墙配置
- CentOS配置防火墙
- CentOS防火墙配置
- Linux Centos 配置防火墙
- centos 6.5防火墙配置
- centos防火墙配置
- CentOS防火墙配置(转)
- iOS的MD5/SHA1加密算法的实现
- Hadoop1.x与Hadoop2的区别
- MFC消息映射机制的具体实现方法
- 浮点相等的精度问题
- SSH框架整合简介
- Centos 7.2 配置防火墙
- HashMap的实现原理
- 杨辉三角(利用二维数组)
- 习题20 函数和文件
- Xcode7 编译出错---does not contain bitcode
- Android Bluetooth开发总结-----/*自己编写*/
- ftl判断是否相等,判断是否为空,得到list长度的问题、截取字符串长度
- 【工具技巧】——EA生成架构
- 为什么使用单例模式