iptables-save和iptables-restore
iptables-save用来把当前的规则存入一个文件里以备iptables-restore使用。它的使用很简单,只有两个参数:
iptables-save [-c] [-t table]
参数-c的作用是保存包和字节计数器的值。这可以使我们在重启防火墙后不丢失对包和字节的统计。带-c参数的iptables-save命令使重启防火墙而不中断统计记数程序成为可能。这个参数默认是不使用的。
参数-t指定要保存的表,默认是保存所有的表。下面给出未装载任何规则的情况下iptables-save的输出。
iptables-restore用来装载由iptables-save保存的规则集。不幸的是,它只能从标准输入接受输入,而不能从文件接受。下面是它的事方法:
iptables-restore [-c] [-n]
参数-c要求装入包和字节计数器。如果你用iptables-save保存了计数器,现在想重新装入,就必须用这个参数。它的另一种较长的形式是--counters。
参数-n告诉iptables-restore不要覆盖已有的表或表内的规则。默认情况是清除所有已存的规则。这个参数的长形式是--noflush。
iptables-save和iptables-restore的更多相关文章
- centos7中没有service iptables save指令来保存防火墙规则
		1.任意运行一条iptables防火墙规则配置命令: iptables -P OUTPUT ACCEPT 2.对iptables服务进行保存: service iptables save 如果上述命令 ... 
- CentOS7 执行 service iptables save 报错 The service command supports only basic LSB actions xxxxxx
		现象描述 在 CentOS 7.6.1810 下执行 service iptables save 命令,出现如下错误: [root@test ~]# service iptables save The ... 
- How can i use iptables save on centos 7?
		I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for ht ... 
- 新装云服务器没有iptables 文件,并且无法通过service iptables save操作
		在安装zookeeper时,需要放开端口2181 按照视频教程在 /etc/sysconfig/ 下对iptables 文件进行编辑,但是该目录下没有此文件 通过强行写iptables -P OUT ... 
- 解决service iptables save出错please try to use systemctl
		# service iptables save The service command supports only basic LSB actions (start, stop, restart, t ... 
- centos7 中没有service iptables save指令来保存防火墙规则
		解决方法: systemctl stop firewalld 关闭防火墙yum install iptables-services 安装 iptables 服务systemctl enable ip ... 
- 解决 service iptables save 报错 please try to use systemctl
		本文档根据 service iptables save 报错 please try to use systemctl 提供解决方案.报错 [root@Jaking ~]# service iptabl ... 
- centos .7x  service iptables save 错误解决方案
		保存转发规则的时候,发现service iptables save 无效,而且报错[root@localhost bin]# service iptables saveThe service comm ... 
- centos 7 中没有iptables 和service iptables save 指令使用失败问题解决方案
		1.任意运行一条iptables防火墙规则配置命令: iptables -P OUTPUT ACCEPT 2.对iptables服务进行保存: service iptables save 如果上述命令 ... 
- 3.centos 7执行service iptables save报错问题
		1.报错 [root@localhost ~]# service iptables save The service command supports only basic LSB actions ( ... 
随机推荐
- [Mysql]查看版本号的五种方式
			[Mysql]查看版本号的五种方式 目录(?)[+] 查看版本信息 #1 使用命令行模式进入mysql会看到最开始的提示符 Your MySQL connection id is 3Serve ... 
- python 字体颜色的设置
			实现过程: 终端的字符颜色是用转义序列控制的,是文本模式下的系统显示功能,和具体的语言无关. 转义序列是以ESC开头,即用\033来完成(ESC的ASCII码用十进制表示是27 ... 
- tornado-输入
			获取输入的信息: *** get_argument get_arguments 兼顾以下两种常用 能从url中获取 ?name=xiaoming 能从body中获取 form表 ... 
- HTML5  Canvas ( 事件交互, 点击事件为例 ) isPointInPath
			<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ... 
- leetcode166
			public class Solution { public String fractionToDecimal(int numerator, int denominator) { HashMap< ... 
- UI5-文档-4.30-Debugging Tools
			虽然我们在前面的步骤中添加了一个基本的测试覆盖率,但是我们似乎不小心破坏了我们的应用程序,因为它不再显示价格到我们的发票上.我们需要调试这个问题,并在有人发现之前修复它. 幸运的是,SAPUI5提供了 ... 
- JAVA WEB开发中的会话跟踪
			常用的会话跟踪技术是Cookie与Session.Cookie通过在客户端记录信息确定用户身份,Session通过在服务器端记录信息确定用户身份. Http协议是一种无状态的协议,一旦数据交换完毕,客 ... 
- <U+FEFF> character showing up in files. How to remove them?
			You can easily remove them using vim, here are the steps: 1) In your terminal, open the file using v ... 
- 解决IE下载 apk/ipa 变成zip:Android 手机应用程序文件下载服务器 配置解决方法
			解决IE apk/ipa变成zip:Android 手机应用程序文件下载服务器 配置解决方法 APK文件其实是zip格式,但后缀名被修改为apk,通过UnZip解压后,可以看到Dex文件,Dex是Da ... 
- MySQL修改编码设置及乱码问题
			源地址:http://blog.csdn.net/millia/article/details/5806774 昨天尝试把自己用php编写的第一个糙站发布到网上..结果出现了因为编码不统一而导致乱 ... 
