centos7使用iptables作为防火墙方法
2017-10-10 21:52
267 查看
centos7使用iptables作为防火墙方法
查看firewalld状态: systemctl status firewalld
将centos7默认的firewalld停止,并将iptables作为默认防火墙
关闭并禁用firewalld
systemctl stop firewalld
systemctl disable firewalld
接下来要安装iptables服务,centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。
yum install iptables-services
接下来启动并启用iptables
systemctl start iptables
systemctl enable iptables
查看当前iptables状态:systemctl status iptables
如果使用了ipv6,还需要开启ip6tables
启动并启用ip6tables
systemctl start ip6tables
systemctl enable ip6tables
更多关于linux技术分享,详见 http://www.xuecan.net/wenku/17350.html
查看firewalld状态: systemctl status firewalld
将centos7默认的firewalld停止,并将iptables作为默认防火墙
关闭并禁用firewalld
systemctl stop firewalld
systemctl disable firewalld
接下来要安装iptables服务,centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。
yum install iptables-services
接下来启动并启用iptables
systemctl start iptables
systemctl enable iptables
查看当前iptables状态:systemctl status iptables
如果使用了ipv6,还需要开启ip6tables
启动并启用ip6tables
systemctl start ip6tables
systemctl enable ip6tables
更多关于linux技术分享,详见 http://www.xuecan.net/wenku/17350.html
相关文章推荐
- 使用iptables作为网络防火墙构建安全的网络环境
- linux配置防火墙详细步骤(iptables命令使用方法)
- Centos7 禁止firewalld并使用iptables 作默认防火墙
- linux配置防火墙详细步骤(iptables命令使用方法)
- linux配置防火墙详细步骤(iptables命令使用方法)
- CentOS 7.0如何将iptables作为防火墙(默认使用的是firewall作为防火墙)
- linux配置防火墙详细步骤(iptables命令使用方法)
- linux配置防火墙详细步骤(iptables命令使用方法)
- CentOS7 防火墙(firewall)使用方法
- centos7 使用iptables配置防火墙
- CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。
- 防火墙软件iptables的使用方法(一)
- linux配置防火墙详细步骤(iptables命令使用方法)
- Centos7 禁止firewalld并使用iptables 作默认防火墙以及忘记root密码的处理方法
- CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙,配置apache
- CentOS7使用iptables防火墙开放端口
- centos7使用iptables防火墙配置
- CentOS7安装iptables防火墙的方法
- CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。
- linux防火墙iptables使用方法