The service command supports only basic LSB actions (start, stop, restart, try-restart, reload,force-reload, status)
2024-09-01 11:56:43
# service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments.
It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service:
systemctl stop firewalld
systemctl mask firewalld
Then, install the iptables-services package:
yum install iptables-services
Enable the service at boot-time:
systemctl enable iptables
Managing the service
systemctl [stop|start|restart] iptables
Saving your firewall rules can be done as follows:
service iptables save
or
/usr/libexec/iptables/iptables.init save
最新文章
- LeetCode: Nim Game
- php 数组定义、取值和遍历
- PHP获取当前日期或指定日期的所在月的第一天和最后一天
- Raft详解分析
- 在Caffe中实现模型融合
- 不用EF框架,完成完美实体映射,且便于维护!(AutoMapper,petapoco)
- 一年iOS工作经验,如何一举拿下百度、美团、快手等Offer面经(附面试题)
- tensorbordX使用
- Visual Studio编辑器“智能提示(IntelliSense)”异常的解决方案
- js实现table表格相同内容按需合并
- 【Jmeter】api性能测试总结
- windows开启powershell在此系统中禁止执行脚本
- @RequestParam注解使用:Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
- C++ 第十一课 标准c内存函数
- Oralce分析函数
- vue报错 Uncaught TypeError: Cannot read property ‘children ’ of null
- LintCode 407: Plus One
- Java 线程内异常处理
- sql语句中charindex的用法
- JavaScript有限状态机实现方式
热门文章
- 缓冲区 粘包 029 send 和sendall 的区别 find 和 findall 的区别
- js Form表单转json格式,及后台接收(多种方法)
- hive distcp数据同步
- IP分片 与 TCP分段的区别 !!!!careful========以及udp中一个包大小究竟为多大合适 ==========三次握手四次挥手细节
- Maven 的setting.xml
- HBuilder的常用快捷键
- 使用Dockerfile docker tomcat部署
- MATLAB顺序结构程序和switch实现选择结构
- Misc1
- HDU5366——The mook jong——dp