# iptables-save(8) - man - phpMan

[IPTABLES-SAVE(8)](https://www.chedong.com/phpMan.php/man/IPTABLES-SAVE/8/markdown)                           iptables 1.8.7                           [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  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.

## 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.7                                                                      [IPTABLES-SAVE(8)](https://www.chedong.com/phpMan.php/man/IPTABLES-SAVE/8/markdown)
