网硕互联技术交流社区

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2063|回复: 0

CentOS7 更换firewall防火墙为iptables

[复制链接]

主题

帖子

0

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
0
发表于 2016-6-23 10:48:06 | 显示全部楼层 |阅读模式
CentOS 7.0以后 默认使用的是firewall作为防火墙。为了方便使用一般建议改为iptables防火墙。
先通过yum 安装iptables 防火墙


  1. yum install iptables-services
复制代码

然后停止firewall 并禁止开机启动

#停止firewall

  1. systemctl stop firewalld.service
复制代码

#禁止firewall开机启动

  1. systemctl disable firewalld.service
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|网硕互联技术交流社区

GMT+8, 2024-5-3 13:08 , Processed in 0.271305 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表