【操作系统】CentOS 7 防火墙配置
2016-06-22 15:42
489 查看
CentOS 7 防火墙配置
在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。
假如采用传统请执行一下命令:
systemctl stop firewalld
systemctl mask firewalld
并且安装iptables-services:
yum install iptables-services
设置开机启动:
systemctl enable iptables
systemctl [stop|start|restart] iptables
#or
service iptables [stop|start|restart]
service iptables save
#or
/usr/libexec/iptables/iptables.init save
在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。
假如采用传统请执行一下命令:
systemctl stop firewalld
systemctl mask firewalld
并且安装iptables-services:
yum install iptables-services
设置开机启动:
systemctl enable iptables
systemctl [stop|start|restart] iptables
#or
service iptables [stop|start|restart]
service iptables save
#or
/usr/libexec/iptables/iptables.init save
相关文章推荐
- Linux 中常用的文本(行)处理命令
- Linux系统的终端特殊设备文件
- Linux中使用C语言的fork()函数创建子进程的实例教程
- UNIX/Linux系统取证之信息采集案例
- Linux下查看文件权限、修改文件权限的方法
- mysql 5.7.13 安装配置方法图文教程(linux)
- 【操作系统】CentOS 7 图形界面下关闭屏幕保护
- Linux设备驱动之字符设备(一)
- centos7 安装zabbix-agent
- linux系统Ubuntu下简易安装mqtt
- CentOS 7 扩展根目录空间操作步骤
- JDB2导致磁盘io使用率高
- linux--参数修改--修改最大文件打开书
- linux下/etc/hosts 和hostname文件的区别
- Python安装(Linux)
- Linux/Ubuntu 怎么设置打开远程桌面登录连接
- LVM知识详解
- centos7安装xrdp
- Linux 定时任务
- centos 之 mail