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> |
Fabrice MARIE | b0d8460 | 2002-06-14 07:39:58 +0000 | [diff] [blame] | 4 | .\" It is based on the iptables man page. |
Harald Welte | 117341a | 2001-01-05 13:54:24 +0000 | [diff] [blame] | 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 |
Jan Engelhardt | ccf3fba | 2009-03-19 17:14:49 +0100 | [diff] [blame] | 22 | iptables-save - dump iptables rules to stdout |
Harald Welte | 117341a | 2001-01-05 13:54:24 +0000 | [diff] [blame] | 23 | .SH SYNOPSIS |
Jan Engelhardt | ccf3fba | 2009-03-19 17:14:49 +0100 | [diff] [blame] | 24 | \fBiptables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP] |
| 25 | [\fB\-t\fP \fItable\fP] |
Harald Welte | 117341a | 2001-01-05 13:54:24 +0000 | [diff] [blame] | 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 |
Jan Engelhardt | fbb5639 | 2009-03-19 16:57:35 +0100 | [diff] [blame] | 32 | \fB\-M\fP \fImodprobe_program\fP |
| 33 | Specify the path to the modprobe program. By default, iptables-save will |
| 34 | inspect /proc/sys/kernel/modprobe to determine the executable's path. |
| 35 | .TP |
Harald Welte | 117341a | 2001-01-05 13:54:24 +0000 | [diff] [blame] | 36 | \fB\-c\fR, \fB\-\-counters\fR |
| 37 | include the current values of all packet and byte counters in the output |
| 38 | .TP |
Jan Engelhardt | ccf3fba | 2009-03-19 17:14:49 +0100 | [diff] [blame] | 39 | \fB\-t\fR, \fB\-\-table\fR \fItablename\fP |
Harald Welte | 117341a | 2001-01-05 13:54:24 +0000 | [diff] [blame] | 40 | restrict output to only one table. If not specified, output includes all |
| 41 | available tables. |
| 42 | .SH BUGS |
Harald Welte | 9f7fa49 | 2001-03-15 15:12:02 +0000 | [diff] [blame] | 43 | None known as of iptables-1.2.1 release |
Harald Welte | 117341a | 2001-01-05 13:54:24 +0000 | [diff] [blame] | 44 | .SH AUTHOR |
| 45 | Harald Welte <laforge@gnumonks.org> |
| 46 | .SH SEE ALSO |
| 47 | .BR iptables-restore "(8), " iptables "(8) " |
| 48 | .PP |
| 49 | The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, |
| 50 | which details NAT, and the netfilter-hacking-HOWTO which details the |
| 51 | internals. |