阡陌博客 - firewall规则
type: channel
link: https://www.kinmor.com/tag/firewall规则/
items: CentOS7中firewall防火墙详解和配置

CentOS7中firewall防火墙详解和配置
type: item
date: 2018-06-01T10:33:00+08:00
description: 笔记：开启防火墙systemctl start firewalld 关闭防火墙systemctl stop firewalld 禁用防火墙服务systemctl make firewalld添加规则：开放80端口firewall-cmd --permanent --add-port=80/tcp开放443端口firewall-cmd --permanent --add-port=443/tcp开放22端口firewall-cmd --permanent --add-port=22/tcp开放21端口firewall-cmd --permanent --add-port=21/tcp开放23560端口firewall-cmd --permanent --add-port=23560/tcp开放8080端口firewall-cmd --permanent --add-port=8080/tcp【旧防火墙机制】安装iptablesyum -y install iptables-services开启iptablessystemctl enable iptables