CentOS7防火墙设置
来源:互联网 发布:网络餐饮监管存在问题 编辑:程序博客网 时间:2024/06/05 16:40
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://www.cnblogs.com/silent2012/archive/2015/07/28/4682770.html
0 0
- Centos7 关闭防火墙设置
- CentOS7防火墙设置
- Centos7 防火墙设置
- 修改centos7防火墙设置
- Centos7-firewall<防火墙设置>
- CentOS7如何设置防火墙
- Centos7防火墙设置
- centos7防火墙设置
- centos7 firewalll防火墙中的设置
- CentOS7 NFS 服务器防火墙的端口设置
- [CentOs7]iptables防火墙安装与设置
- centos7 代理 镜像 防火墙设置
- CentOS7防火墙
- centos7 防火墙
- centos7 防火墙
- CentOS7防火墙
- centos7防火墙
- CentOS7防火墙
- Android Launcher3 强制横屏
- UIView与CALayer的区别,很详细
- 【LeetCode-21】 Merge Two Sorted Lists(C++)
- Eclipse项目小红叉
- 怎么实现EDIUS中倒影的制作
- CentOS7防火墙设置
- eclipse打包apk时遇到的问题
- 直播系统的准备工作-android版开源播放器ijkplayer
- 理解Fragment生命周期
- Java compiler level does not match解决方法
- Android进程间通信(IPC)
- leetcode 185. Department Top Three Salaries
- Java图形用户接口
- play framework自定义标签