CentOS 7 使用iptables防火墙
2024-10-09 21:08:59
# 停止firewalld服务
systemctl stop firewalld
systemctl mask firewalld
# 安装iptables-services
yum install iptables-services
Enable the service at boot-time:
# 启动iptables服务
systemctl enable iptables
# 管理iptables
systemctl [stop|start|restart] iptables
# 保存规则
service iptables save 或者 /usr/libexec/iptables/iptables.init save
centos7不再使用iptables,而是使用firewalld
若不想使用firewalld,继续使用iptables,可以停掉firewalld,并且安装iptables-services包
systemctl stop firewalld
systemctl disable firewalld
yum install -y iptables-services
systemctl enable iptables
systemctl start iptables
最新文章
- iOS各种调试技巧豪华套餐
- 发布网站详细步骤(.Net)
- Quartus 编译错误
- 从系统的gallery获取图片
- [Head First Python]4.读取文件datafile.txt, 去除两边空格, 存储到列表,从列表格式化(nester.py)后输出到文件man.out,other.out
- PHP自练项目之数字分页效果
- 仿微沟道效应,主要actionbar有些知识
- Spring Data JPA 入门Demo
- Docker Win 10 安装
- linux操作系统的前世今生
- STM32L1 串口相应驱动开发
- python中的 uuid 模块使用示例
- 自动化测试基础篇--Selenium Xpath定位
- 2017-2018-2 20155309南皓芯 Exp8 WEB基础实践
- C# 线程池ThreadPool的用法简析
- java编写编译器和解释器
- 20155327 2017-2018-2 《Java程序设计》第一周学习总结
- sqlserver 修改表字段长度
- table中的td等长(不随内容大小变化)
- 精读 SBAR SDN flow-Based monitoring and Application Recognition
热门文章
- [拾 得]pipe和xargs的恩怨情仇
- 如何判断NSDictionary是否包含某个键
- [转]maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
- Java 得到泛型中得到T.class
- Jpa 本地方式实现数据的持久化【千锋】
- shell实例练习+详解
- linux_RAID
- lambda高级进阶--返回函数
- jdbc参数
- SQL SERVER 表最小行的一个纠结问题