跳过导航链接 | |
退出打印视图 | |
手册页第 1M 部分:系统管理命令 Oracle Solaris 11.1 Information Library (简体中文) |
- 保存和恢复 NAT 和状态表的信息
ipfs [-nv] -l
ipfs [-nv] -u
ipfs [-nv] [-d dirname] -R
ipfs [-nv] [-d dirname] -W
ipfs [-nNSv] [-f filename] -r
ipfs [-nNSv] [-f filename] -w
ipfs [-nNSv] -f filename -i <if1>,<if2>
ipfs 实用程序允许在重新引导时保存状态信息。具体而言,该实用程序允许锁定(阻止修改)使用“保持状态”为 NAT 条目和规则创建的状态信息,然后将其保存到磁盘。然后,在重新引导后恢复该信息。保存状态的结果是不会中断连接。
支持以下选项:
更改与 -R 和 -W 选项一起使用的缺省目录,以用于保存状态信息。
请勿执行任何可能影响存储在内核或磁盘上的信息的操作。
提供 ipfs 活动的详细说明。
对 NAT 信息执行操作。
对过滤状态信息执行操作。
对内核中的状态表解除锁定。
锁定内核中的状态表。
读取指定文件中的信息并将其装入内核。这要求状态表已处于锁定状态,并且在完成后不会更改锁定。
从内核将信息写入指定的文件。这要求状态表已处于锁定状态,并且在完成后不会更改锁定。
从存储在 /var/db/ipf 目录中的 ipstate.ipf 和 ipnat.ipf 这两个文件恢复所有保存的状态信息(如果有)。该目录可以使用 -d 选项进行更改。状态表在该操作的一开始就锁定,并在完成后解除锁定。
将内核内状态信息(如果有)保存到存储在 /var/db/ipf 目录中的 ipstate.ipf 和 ipnat.ipf 这两个文件。该目录可以使用 -d 选项进行更改。状态表在该操作的一开始就锁定,并在完成后解除锁定。
/var/db/ipf/ipstate.ipf
/var/db/ipf/ipnat.ipf
/dev/ipl
/dev/ipstate
/dev/ipnat
有关下列属性的说明,请参见 attributes(5):
|
ipf(1M)、ipmon(1M)、ipnat(1M)、attributes(5)
-W 和 -R 操作会设置锁定,然后将其恢复到之前的状态,而不是撤消锁定。
当前未保存片段表信息。