CentOS 7 防火墙设置/配置
2016-01-27 20:31
627 查看
With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments.It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service:
I had the problem that rebooting wouldn't start iptables.This fixed it:
systemctl stop firewalld systemctl mask firewalldThen, install the iptables-services package:
yum install iptables-servicesEnable the service at boot-time:
systemctl enable iptablesManaging the service
systemctl [stop|start|restart] iptablesSaving your firewall rules can be done as follows:
service iptables saveor
/usr/libexec/iptables/iptables.init save
I had the problem that rebooting wouldn't start iptables.This fixed it:
yum install iptables-services systemctl mask firewalld systemctl enable iptables systemctl enable ip6tables systemctl stop firewalld systemctl start iptables systemctl start ip6tables
相关文章推荐
- linux: 查询局域网内在线的主机ip
- qemu-kvm virtio 虚拟化-----Linux客户机 virtio设备初始化
- Linux下 ln 命令详解
- linux下java环境的配置
- Linux下 mkdir 命令详解
- OpenStack入门之【OpenStack-havana】之单网卡-All In One 安装(基于CentOS6.4)
- javaEE+Linux学习总结
- linux,chmod如何更改所有子目录的权限,要包括隐藏文件
- Linux 设备驱动中的并发控制
- Linux命令提示符显示格式的配置
- linux gdb 没有符号表被读取。请使用 "file" 命令。
- 使用Maven打包项目并上传到Linux服务器
- linux 测试端口是否开启
- linux 下vi中关于删除某段,某行,或者全部删除的命令
- 存储系统-Linux磁盘分区管理
- Linux nexus 搭建私服和安装索引
- linux下获取系统内存信息
- ZZ How to Flush Memory Cache on Linux Server
- linux编程之C语言代码执行时间测试方法
- CentOS安装scp命令的软件包openssh-clients