iptables−save — iptables ルールを標準出力にダンプする
ip6tables−save — iptables ルールを標準出力にダンプする
iptables−save [−M modprobe] [−c] [−t table]
ip6tables−save [−M modprobe] [−c] [−t table]
iptables−save と ip6tables−save は IP/IPv6 テーブルの内容を簡単に解析できる形式で 標準出力にダンプするために使われる。 ファイルに書き出すためには、 シェルで提供されている I/O リダイレクションを使うこと。
−M modprobe_program
modprobe プログラムのパスを指定する。デフォルトでは、 iptables−save は /proc/sys/kernel/modprobe の内容を確認して実行ファイルのパスを決定する。
−c, −−counters
全てのパケットカウンタとバイトカウンタの現在の値を出力する。
−t, −−table tablename
出力を 1 つのテーブルのみに制限する。 指定されない場合、得られた全てのテーブルを出力する。
iptables−1.2.1 リリースでは知られていない。
Harald Welte <laforge AT gnumonks DOT org>
Rusty Russell <rusty AT rustcorp DOT com DOT au>
Andras Kis−Szabo <kisza AT sch DOT bme DOT hu> は ip6tables−save に貢献した。
iptables−restore(8), iptables(8)
より多くの iptables の使用法について 詳細に説明している iptables−HOWTO。 NAT について詳細に説明している NAT−HOWTO。 内部構造について詳細に説明している netfilter−hacking−HOWTO。