一、关闭firewall防火墙1、停止firewallsystemctl stop firewalld.service2、禁止firewall开机启动systemctl disable firewalld.service二、安装iptables防火墙yum install iptables-services三、防火墙设置(ipt...
一、关闭firewall防火墙
1、停止firewall
systemctl stop firewalld.service
2、禁止firewall开机启动
systemctl disable firewalld.service
二、安装iptables防火墙
yum install iptables-services
三、防火墙设置(iptables)
1、iptables配置路径为:
/etc/sysconfig/iptables
vim /etc/sysconfig/iptables
文件内容:
// 80 为端口,可以连续如:80:83 -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
2、最后重启防火墙使配置生效
systemctl restart iptables.service
3、设置防火墙开机启动
systemctl enable iptables.service
织梦狗教程
本文标题为:Centos 7 关闭firewall防火墙启用iptables防火墙
基础教程推荐
猜你喜欢
- RFO SIG之openEuler AWS AMI 制作详解 2022-12-28
- 为Win2003服务器打造铜墙铁壁的方法步骤 2022-09-01
- P3 利用Vulnhub复现漏洞 - Apache SSI 远程命令执行漏洞 2023-09-10
- Centos 安装Django2.1 2023-09-24
- Apache CarbonData 1.0.0发布及其新特性介绍 2023-09-11
- windows环境下apache-apollo服务器搭建 2023-09-10
- Docker容器操作方法详解 2022-11-13
- 通过StatefulSet部署有状态服务应用实现方式 2022-10-01
- Apache Kafka 2.5 稳定版发布,新特性抢先看 2023-09-11
- Centos7 nginx的安装以及开机自启动的设置 2023-09-22
