Harald Welte | 117341a | 2001-01-05 13:54:24 +0000 | [diff] [blame^] | 1 | .TH IPTABLES-SAVE 8 "Jan 04, 2001" "" "" |
| 2 | .\" |
| 3 | .\" Man page written by Harald Welte <laforge@gnumonks.org> |
| 4 | .\" It is based on the ipptables man page. |
| 5 | .\" |
| 6 | .\" This program is free software; you can redistribute it and/or modify |
| 7 | .\" it under the terms of the GNU General Public License as published by |
| 8 | .\" the Free Software Foundation; either version 2 of the License, or |
| 9 | .\" (at your option) any later version. |
| 10 | .\" |
| 11 | .\" This program is distributed in the hope that it will be useful, |
| 12 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | .\" GNU General Public License for more details. |
| 15 | .\" |
| 16 | .\" You should have received a copy of the GNU General Public License |
| 17 | .\" along with this program; if not, write to the Free Software |
| 18 | .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 19 | .\" |
| 20 | .\" |
| 21 | .SH NAME |
| 22 | iptables-save \- Save IP Tables |
| 23 | .SH SYNOPSIS |
| 24 | .BR "iptables-save " "[-c] [-t table]" |
| 25 | .br |
| 26 | .SH DESCRIPTION |
| 27 | .PP |
| 28 | .B iptables-save |
| 29 | is used to dump the contents of an IP Table in easily parseable format |
| 30 | to STDOUT. Use I/O-redirection provided by your shell to write to a file. |
| 31 | .TP |
| 32 | \fB\-c\fR, \fB\-\-counters\fR |
| 33 | include the current values of all packet and byte counters in the output |
| 34 | .TP |
| 35 | \fB\-t\fR, \fB\-\-table\fR \fBtablename\fR |
| 36 | .TP |
| 37 | restrict output to only one table. If not specified, output includes all |
| 38 | available tables. |
| 39 | .SH BUGS |
| 40 | .B iptables-save |
| 41 | doesn't order user-defined chains and builtin chains in any specific manner. |
| 42 | This raises some dependency problems when using the unmodified output of |
| 43 | .B iptables-save |
| 44 | as input for |
| 45 | .B iptables-restore. |
| 46 | Expect this to be fixed in the next iptables release. |
| 47 | To make it work, reorder the output in a way that in every table, all |
| 48 | user-defined chains are created before any other chain uses this chain |
| 49 | as target. |
| 50 | .SH AUTHOR |
| 51 | Harald Welte <laforge@gnumonks.org> |
| 52 | .SH SEE ALSO |
| 53 | .BR iptables-restore "(8), " iptables "(8) " |
| 54 | .PP |
| 55 | The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, |
| 56 | which details NAT, and the netfilter-hacking-HOWTO which details the |
| 57 | internals. |