Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unix 我有一个包含所有iptable设置的文件。如何将其加载到服务器中?_Unix - Fatal编程技术网

Unix 我有一个包含所有iptable设置的文件。如何将其加载到服务器中?

Unix 我有一个包含所有iptable设置的文件。如何将其加载到服务器中?,unix,Unix,我的系统管理员给了我一个包含iptables规则的文件。 我要输入什么命令来加载此文件 我听说人们可以在一行中做到这一点 类似于…iptables>thefile.dat???您可以使用iptables另存为保存当前的iptables iptables-save >thefile.dat 然后用 cat thefile.dat | iptables-restore 嗯,为什么要使用cat而不是简单的iptables还原

我的系统管理员给了我一个包含iptables规则的文件。 我要输入什么命令来加载此文件

我听说人们可以在一行中做到这一点


类似于…iptables>thefile.dat???

您可以使用iptables另存为保存当前的iptables

iptables-save >thefile.dat
然后用

cat thefile.dat | iptables-restore

嗯,为什么要使用
cat
而不是简单的
iptables还原
?出于习惯,没有其他原因。