# man > iptables-save(8)

[_IPTABLES-SAVE_(8)](https://www.chedong.com/phpMan.php/man/IPTABLES-SAVE/8/markdown)                           iptables 1.8.10                          [_IPTABLES-SAVE_(8)](https://www.chedong.com/phpMan.php/man/IPTABLES-SAVE/8/markdown)

## NAME
       iptables-save — dump iptables rules

       ip6tables-save — dump iptables rules

## SYNOPSIS
       **iptables-save **[**-M _**modprobe_] [**-c**] [**-t _**table_] [**-f _**filename_]

       **ip6tables-save **[**-M _**modprobe_] [**-c**] [**-t _**table_] [**-f _**filename_]

## DESCRIPTION
       **iptables-save  **and **ip6tables-save **are used to dump the contents of IP or IPv6 Table in easily
       parseable format either to STDOUT or to a specified file.

### -M --modprobe _
              Specify the path to the [modprobe(8)](https://www.chedong.com/phpMan.php/man/modprobe/8/markdown) program. By default,  iptables-save  will  inspect
              _/proc/sys/kernel/modprobe_ to determine the executable's path.

### -f --file _
              Specify  a  filename to log the output to. If not specified, iptables-save will log to
              STDOUT.

### -c --counters
              Include the current values of all packet and byte counters in the output.

### -t --table _
              Restrict output to only one table. If the kernel is configured with  automatic  module
              loading,  an  attempt will be made to load the appropriate module for that table if it
              is not already there.
              If not specified, output includes all available tables. No module loading takes place,
              so in order to include a specific table in the output, the  respective  module  (some‐
              thing like **iptable_mangle **or **ip6table_raw**) must be loaded first.

## BUGS
       None known as of iptables-1.2.1 release

## AUTHORS
       Harald Welte <<laforge@gnumonks.org>>
       Rusty Russell <<rusty@rustcorp.com.au>>
       Andras Kis-Szabo <<kisza@sch.bme.hu>> contributed ip6tables-save.

## SEE ALSO
       [**iptables-apply**(8)](https://www.chedong.com/phpMan.php/man/iptables-apply/8/markdown), [**iptables-restore**(8)](https://www.chedong.com/phpMan.php/man/iptables-restore/8/markdown), [**iptables**(8)](https://www.chedong.com/phpMan.php/man/iptables/8/markdown)

       The  iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, which details NAT, and
       the netfilter-hacking-HOWTO which details the internals.

iptables 1.8.10                                                                     [_IPTABLES-SAVE_(8)](https://www.chedong.com/phpMan.php/man/IPTABLES-SAVE/8/markdown)
